How to reset your administrator password in Teamcity 8.0

Yeah, it could happen to any of us. You setup TeamCity 8.0 as a continuous integration server a while ago. It runs perfectly fine, it runs so fine that you never need to log on as an administrator any more. You even forget that it exists, you even forget YOUR PASSWORD!panic

Now what? Reinstall everything? Try to hack the database? Use some cryptic java commands? What? What?

SupermanNo panic needed, the nice people at JetBrains already thought about this. There is a Super-user token that allow you to get back to the server UI with system administrator permissions.

Go and get the token from the teamcity-server.log file (search for “Super user authentication token” text).

After that you just need to:

  1. Go to <TeamCity server URL>/login.html?super=1
  2. Enter the Super-user token.
  3. Enjoy the rest of your day

References: