Importing into docker with 3rd party login

Hey everyone, so I'm currently trying to set up youtrack onto a test server, moving to a docker container. Docker container is up and running smoothly, and I can import my former backup without issue using image jetbrains/youtrack:2025.3.110568 . The issue I run into is the server it is backed up on is currently using an okta login service, which currently is not set up for the dev server, so at login it immidately redirects to the login service which is not functioning

 

So far it seems the only way I've found to be able to log into the backup, first I attempted

 

docker run --rm -it --user (usernumber) \
-v /opt/youtrack/conf:/opt/youtrack/conf \
jetbrains/youtrack:2025.3.110568 \
configure-next-start \
 --J-Djetbrains.youtrack.admin.restore=true

 

which does give me a prompt to actually use a local username and password

Which, when logging in with the default admin/admin, it just halts saying that the password is too common. So the next step I found was that if I shut down the container, rename the /data/hub directory, as well as doing a admin.restore… unfortunately when that happens, in the logs I saw a “admin already exists” error, and while it does let me log in, and the admin options are there… they all bring me to a 403 not authorized, and the profile lists admin as a “Standard User”. 

 

I'm hitting my head trying to find a workaround to at least allow a direct login as administrator, while I don't currently have access to the original youtrack, or the 3rd party login service, and so far nothing currently has let me log in with admin privilages, beyond setting up the container without importing the production servers data.

0
1 comment
Official comment

Hi Patrick, your approach with applying admin.restore=true is the recommended one, but I'd suggest omitting the --user (usernumber) part. Here is the full command from Reset the Default Administrator Account:

docker run --rm -it \
-v <path to conf directory>:/opt/youtrack/conf \
jetbrains/youtrack:<version> \
configure-next-start --J-Djetbrains.youtrack.admin.restore=true

You should then be able to log in as admin/admin through the built-in auth method. We don't expect that it should return any errors, so if this does happen, please reach out to us for further investigation by submitting a support ticket.

Please sign in to leave a comment.