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!
Now what? Reinstall everything? Try to hack the database? Use some cryptic java commands? What? What?
No 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:
- Go to <TeamCity server URL>/login.html?super=1
- Enter the Super-user token.
- Enjoy the rest of your day
References: