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
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.
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.
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.
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:
Ok, so you've forgot username and password in your teamcity instance.
How to reset password: described here.
How to get username:
config\database.properties
fileconnectionUrl
property which points out to database which stores some teamcity settingsusers
tableUpdate
After you get the user name you can reset reset its password via the following(copied from linked answer):
\webapps\ROOT\WEB-INF\lib
folder..\..\..\..\jre\bin\java.exe -cp server.jar;common-api.jar;commons-codec-1.3.jar;util.jar;hsqldb.jar ChangePassword username newpassword
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With