Database error after server machine hosting TC crashed

The server machine that host my Teamcity Server crashed and now when I start up TC I get the following error below. How can I resolve it?

An error was encountered during TeamCity server startup

Attempt to start more than one TeamCity server connected to the same database.

Stacktrace copied!

jetbrains.buildServer.serverSide.db.SecondTeamCityInstanceException:  Attempt to start more than one TeamCity server connected to the same  database.

   at jetbrains.buildServer.serverSide.db.TeamCityDatabaseManager.lock(

   at  jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerInternal(

   at  jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.processStartupServerSafe(

   at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.access$400(

   at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet$


Comment actions Permalink

Hi Paul

This error usually means two TeamCity instances are started in parallel. Evaluate running processes.

Comment actions Permalink

It that doesn't help, please tell me

  • your TeamCity version
  • OS
  • Database type and version
  • setup type (exe/gz/war)


Comment actions Permalink

All the processes were not killed, the problem is resolved.


Please sign in to leave a comment.