Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TeamCity Username / password

Hi I installed teamcity longtime ago, on my home computer. I am trying to re-use it again now, but I forgot the admin username and password Is there a default admin user name? and how can I get the password?

Thank

like image 208
Ghassan Karwchan Avatar asked Oct 30 '10 08:10

Ghassan Karwchan


People also ask

How do I reset my TeamCity password?

If you are a TeamCity system administrator and lost or forgot your local admin password to the server, there are still ways to access it. If your user account has an email address assigned to it, you can reset your password via email – the reset link is located below the login form.

How do I access TeamCity?

All you have to do is use https:// links to the TeamCity server instead of http:// . To enable HTTPS connections from the TeamCity Visual Studio Add-in, point your Internet Explorer to the TeamCity server using https:// URL and import the server certificate into the browser.

How do I get an authentication token for TeamCity?

The token is printed in the server console and teamcity-server. log under the TeamCity\logs directory (search for the "Super user authentication token" text). The line is printed on the server start and on any login page submit without a username specified.


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
like image 91
tentonipete Avatar answered Nov 10 '22 18:11

tentonipete


Ok, so you've forgot username and password in your teamcity instance.
How to reset password: described here.
How to get username:

  • go to the teamcity data directory
  • open config\database.properties file
  • there is connectionUrl property which points out to database which stores some teamcity settings
  • take a look at users table

Update

After you get the user name you can reset reset its password via the following(copied from linked answer):

  • Open a command prompt and go to \webapps\ROOT\WEB-INF\lib folder
  • Run 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 25
3 revs Avatar answered Nov 10 '22 18:11

3 revs