Second TeamCity instance detected
Unable to start server as getting Second TeamCity instance detected error
After checking the server logs it appears, that when the the server is starting up it starts a first instance of the “MAIN_SERVER” and connected to the database with no issues, then the start server script immediately attempts to start a second instance of “MAIN_SERVER” which fails due to the previous instance having already connected. Generating the error.
Where in the configuration is the 2nd start up being triggered
Please sign in to leave a comment.
What operating system are you running and how are you starting your TeamCity server service?
Ubuntu 24.04.
On initial boot service is started via systemd that calls “/opt/TeamCity/bin/runAll.sh start”
When attempting to restart I have used both the systemd service and the “teamcity-server.sh stop 30 -force” and “teamcity-server.sh start” shell scripts
Could you share your systemd service file?