TeamCity forgotten admin password - where to look?

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

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

Tags:

Teamcity