I have finally decided to move away from wordpress. WordPress has been a good companion to start my blogging and I have been here for well over 2 years now.

My new blog is now at ashutoshraina.github.io.

I have migrated most of the posts but not all as some of them are no longer relevant technically. This also gives me an opportunity to revisit those topics and look at them with fresh eyes. I plan to do that over the coming few months.



Team City – Recover Admin Password

The trials and tribulations of this world are beyond me. Sometimes, a simple gesture can save your life.
I lost(forgot, forgive my small brain it has to keep up with a day job) my TeamCity login details.
Searching online will lead you to this place Forgot Team City Password.

The solution there is mighty correct barring two things. One, your TeamCity data directory path is likely to C:\ProgramData\JetBrains\TeamCity\ on a windows box and not C:\users\foo\TeamCity. Second, you need to run CMD as admin.

Step 1 Stop TeamCity service ( either through services.msc or the bat files ).

(don't forget the admin part you will go bonkers trying to figure out what is happening)
and go to C:\TeamCity\webapps\ROOT\WEB-INF\lib

Step 3 type -cp server.jar; hsqldb.jar ChangePassword USERNAME PASSWORD C:\ProgramData\JetBrain\TeamCity

If all is successful then you password has been reset and you can login. Here’s hoping to a few hours saved for anyone who comes around to reading this.