Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity forgotten admin password - where to look?

Tags:

teamcity

I need to recover/reset the admin password for JetBrain's TeamCity.

I have full RDP access to the server so no problems there. It's just been 2 months since we used it so now I have forgotten my login - my usual ones don't work.

It is setup without a database at the moment, so was hoping the usernames would just be in a file somewhere, but no luck finding it so far.

like image 744
Jack Ukleja Avatar asked Feb 03 '09 05:02

Jack Ukleja


2 Answers

From TeamCity 8 you can log in as a super user and change the password that way. You just need to use an empty username and last occurrence of the "super user authentication token" found in the logs\teamcity-server.log file as your password.

Please see the following for more information:

  • TeamCity 8 - http://confluence.jetbrains.com/display/TCD8/Super+User
  • TeamCity 9 - http://confluence.jetbrains.com/display/TCD9/Super+User
  • TeamCity 10 - https://confluence.jetbrains.com/display/TCD10/Super+User
like image 181
tentonipete Avatar answered Sep 23 '22 16:09

tentonipete


In case none of those works, see http://sebastienlachance.com/post/Resetting-TeamCity-Password.aspx.

Open a command prompt and go to \webapps\ROOT\WEB-INF\lib folder. Now type the following :

..\..\..\..\jre\bin\java.exe -cp server.jar;common-api.jar;commons-codec-1.3.jar;util.jar;hsqldb.jar ChangePassword username newpassword 
like image 42
Sebastien Lachance Avatar answered Sep 20 '22 16:09

Sebastien Lachance