TeamCity stuck on "Connecting to the database" after upgrade to 8.1
Similar to this issue, I just upgraded TeamCity from 7.2 to 8.1. The server is stuck on the "Connecting to the database" screen. The server log shows only the info below. I do have backups of the system if I need to revert to them. Any advice?
OS: Ubuntu 13.04
Teamcity version: 8.1 (build 29879)
Database: MySQL 5.5.34-0ubuntu0.13.04.1 (Ubuntu)
[2014-02-20 12:18:47,916] INFO - jetbrains.buildServer.STARTUP - =========================================================== [2014-02-20 12:18:47,916] INFO - jetbrains.buildServer.STARTUP - Starting TeamCity server [2014-02-20 12:18:48,335] INFO - jetbrains.buildServer.STARTUP - TeamCity version: 8.1 (build 29879), data format version 658 [2014-02-20 12:18:48,342] INFO - jetbrains.buildServer.STARTUP - OS: Linux, JRE: 1.7.0_51-b00 [2014-02-20 12:18:48,342] INFO - jetbrains.buildServer.STARTUP - Servlet real path: /var/teamcity/TeamCity/webapps/ROOT/ [2014-02-20 12:18:48,343] INFO - jetbrains.buildServer.STARTUP - Current stage: Looking for the TeamCity Data Directory [2014-02-20 12:18:48,343] INFO - jetbrains.buildServer.STARTUP - TeamCity Data Directory path is determined using the environment variable TEAMCITY_DATA_PATH [2014-02-20 12:18:48,343] INFO - jetbrains.buildServer.STARTUP - Data Directory "/var/teamcity/buildserver" exists [2014-02-20 12:18:48,380] INFO - jetbrains.buildServer.STARTUP - The main configuration file "/var/teamcity/buildserver/config/main-config.xml" exists [2014-02-20 12:18:48,380] INFO - jetbrains.buildServer.STARTUP - The database properties file "/var/teamcity/buildserver/config/database.properties" exists [2014-02-20 12:18:48,380] INFO - jetbrains.buildServer.STARTUP - The internal database data file "/var/teamcity/buildserver/system/buildserver.data" exists [2014-02-20 12:18:48,480] INFO - jetbrains.buildServer.STARTUP - Data Directory version: 544 [2014-02-20 12:18:48,481] WARN - jetbrains.buildServer.STARTUP - The Data Directory contains non-TeamCity files or directories [2014-02-20 12:18:48,481] INFO - jetbrains.buildServer.STARTUP - Current stage: Looking for the database configuration [2014-02-20 12:18:48,481] INFO - jetbrains.buildServer.STARTUP - Database properties file "/var/teamcity/buildserver/config/database.properties" exists [2014-02-20 12:18:48,486] INFO - jetbrains.buildServer.STARTUP - Internal HSQL database file (/var/teamcity/buildserver/system/buildserver.data) exists, version: 1.8.1 [2014-02-20 12:18:48,486] INFO - jetbrains.buildServer.STARTUP - Database connection URL: jdbc:mysql://localhost:3306/teamcity [2014-02-20 12:18:48,487] INFO - jetbrains.buildServer.STARTUP - Using database connection URL from the database properties file. The URL is: jdbc:mysql://localhost:3306/teamcity [2014-02-20 12:18:48,488] INFO - jetbrains.buildServer.STARTUP - Using external (MYSQL) database [2014-02-20 12:18:48,488] INFO - jetbrains.buildServer.STARTUP - Current stage: Connecting to the database
Please sign in to leave a comment.
Correction: I was upgrading from TeamCity version: TeamCity 7.1.4 (build 24331)
I reverted to TeamCity 7.1.4.
I successfully upgraded to 7.1.5.
I then attempted the upgrade to 8.1.1. Symptoms appear to be identical to my first attempt (failure).
This time the server log reads as follows:
catalina.out contains this information:
Tried again, this time deleting the contents of the TeamCity directory as advised by the upgrade notes. I'm getting further. But this time, I get the following log content, but the web service does not seem to be accessible on the expected port 8111. I direct the web browser to that port, I just get a message from the browser saying "waiting for teamcity".
Resolved with a reboot. Thanks for the complete lack of support JetBrains.