Teamcity Upgrade from 5.x to 7.1
Just finished the upgrade and have a big issue. I don't know what user this was installed under (not sure if it matters) but when I upgraded it will no longer start with:
TeamCity has failed to start
TeamCity server startup error
The Data Directory contains files or directories that don't belong to TeamCity.
Current Startup State
Startup status
Next step: not defined yet
Data Directory
Directory path: e:\TeamCity exists
Database properties file not found
Internal database file not found
Database
Not connected to the database yet.
Versions
Software version: 544
Data directory version: unknown
Database version: unknown
---------------------------------------------------------------------
Somewhere along the line we had to move the data files to the E: drive due to space, so in the upgrade, I selected that drive. Is that the problem?
Here is what is the teamcity-server.log:
[2012-11-19 14:12:33,657] INFO - jetbrains.buildServer.SERVER - Starting TeamCity server
[2012-11-19 14:12:33,985] INFO - jetbrains.buildServer.SERVER - TeamCity version: 7.1.2 (build 24170), data format version 544
[2012-11-19 14:12:33,985] INFO - jetbrains.buildServer.STARTUP - Servlet real path: e:\TeamCity\bin\..\webapps\ROOT\
[2012-11-19 14:12:33,985] INFO - jetbrains.buildServer.STARTUP - Current stage: Looking for the TeamCity Data Directory
[2012-11-19 14:12:33,985] INFO - jetbrains.buildServer.STARTUP - TeamCity Data Directory path is determined using the environment variable TEAMCITY_DATA_PATH
[2012-11-19 14:12:33,985] INFO - jetbrains.buildServer.STARTUP - Data Directory e:\TeamCity exists
[2012-11-19 14:12:44,032] INFO - jetbrains.buildServer.STARTUP - The main configuration file doesn't exist
[2012-11-19 14:12:44,032] INFO - jetbrains.buildServer.STARTUP - The database properties file doesn't exist
[2012-11-19 14:12:44,032] INFO - jetbrains.buildServer.STARTUP - The internal database data file doesn't exist
[2012-11-19 14:12:44,032] ERROR - jetbrains.buildServer.STARTUP - The Data Directory contains files or directories that don't belong to TeamCity.
[2012-11-19 14:12:44,032] INFO - jetbrains.buildServer.STARTUP - Current stage: TeamCity server startup error
[2012-11-19 14:12:44,032] INFO - jetbrains.buildServer.STARTUP - Administrator login is required from web UI using authentication token: <token>
help?
thx!
Please sign in to leave a comment.
well... the envrinment variable was pointing to the wrong data directory... now i get to have fun upgrading MySQL... :(
and to finish this off, there were a couple of other issues that might help others in their upgrade.
one, in which we chased our tails for a little bit, was that for some reason there was two entries, one under [mysql] and one under [mysqld] that were the same:
default-character-set=utf8
AFTER we figured out that this was the issue (and commented out one of them): the version of mysql wasn't compatible with the newer version of TC...
just be sure to back up everything (program files, programdata & the data files for the db) before upgrading... :)
hope this helps... good luck!