Server Error on Startup after Migration

Completed

I migrated my TeamCity server from Windows to Linux.  Steps I took:

 

1. Installed same version on linux that I had in windows.

2. Copied over the backup of the database.

3. Created a database.properties file based on mysql

4. Ran maintaindb.sh 

5. Copied over system/artifacts from old to new

6. Copied over system/plugindata from old to new

7. Copied over plugins from old to new.

Started server.   Failed, with the following log.

 

[2016-08-28 20:35:00,298] INFO - jetbrains.buildServer.STARTUP - ===========================================================
[2016-08-28 20:35:00,298] INFO - jetbrains.buildServer.STARTUP - Starting TeamCity server
[2016-08-28 20:35:00,604] INFO - jetbrains.buildServer.STARTUP - TeamCity version: 10.0 (build 42002), data format version 787
[2016-08-28 20:35:00,607] INFO - jetbrains.buildServer.STARTUP - OS: Linux, User: teamcity, Java: 1.8.0_101, Java HotSpot(TM) 64-Bit Server VM (25.101-b13, mixed mode), Java(TM) SE Runtime Environment (1.8.0_101-b13), Oracle Corporation
[2016-08-28 20:35:00,607] INFO - jetbrains.buildServer.STARTUP - JVM parameters: -Djava.util.logging.config.file=/var/opt/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx512m -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/var/opt/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true -Djava.endorsed.dirs=/var/opt/TeamCity/endorsed -Dcatalina.base=/var/opt/TeamCity -Dcatalina.home=/var/opt/TeamCity -Djava.io.tmpdir=/var/opt/TeamCity/temp
[2016-08-28 20:35:00,607] INFO - jetbrains.buildServer.STARTUP - Garbage collection: Copy, MarkSweepCompact
[2016-08-28 20:35:00,609] INFO - jetbrains.buildServer.STARTUP - Web server version: Apache Tomcat/7.0.68
[2016-08-28 20:35:00,609] INFO - jetbrains.buildServer.STARTUP - Server IP address: 127.0.1.1
[2016-08-28 20:35:00,610] INFO - jetbrains.buildServer.STARTUP - Web server ports: 8080 (protocol: org.apache.coyote.http11.Http11NioProtocol, scheme: http), 8105 (shutdown port)
[2016-08-28 20:35:00,611] INFO - jetbrains.buildServer.STARTUP - TeamCity server work mode: Main TeamCity Server
[2016-08-28 20:35:00,613] INFO - jetbrains.buildServer.STARTUP - Version file lock was successfully obtained: /var/opt/TeamCity/webapps/ROOT/BUILD_42002
[2016-08-28 20:35:00,624] INFO - jetbrains.buildServer.STARTUP - Servlet real path: /var/opt/TeamCity/webapps/ROOT/
[2016-08-28 20:35:00,632] INFO - jetbrains.buildServer.STARTUP - Current stage: Looking for the TeamCity Data Directory
[2016-08-28 20:35:00,633] INFO - jetbrains.buildServer.STARTUP - The TeamCity Data Directory path is determined using the environment variable TEAMCITY_DATA_PATH
[2016-08-28 20:35:00,636] INFO - jetbrains.buildServer.STARTUP - The TeamCity Data Directory "/var/opt/.BuildServer" exists
[2016-08-28 20:35:00,636] INFO - jetbrains.buildServer.STARTUP - Bypassing the First Start screen because the 'database.properties' file exists
[2016-08-28 20:35:00,638] INFO - jetbrains.buildServer.STARTUP - Current stage: Initializing the TeamCity Data Directory
[2016-08-28 20:35:00,686] INFO - jetbrains.buildServer.STARTUP - Bypassing asking a user for DB settings because the 'database.properties' file exists
[2016-08-28 20:35:00,686] INFO - jetbrains.buildServer.STARTUP - Current stage: Creating a new database
[2016-08-28 20:35:00,686] INFO - jetbrains.buildServer.STARTUP - Creating a new database
[2016-08-28 20:35:00,687] INFO - jetbrains.buildServer.STARTUP - JDBC loader: loading JDBC drivers (for the first time)
[2016-08-28 20:35:01,182] INFO - ide.db.TeamCityDatabaseManager - Database character set: latin1_swedish_ci
[2016-08-28 20:35:01,182] INFO - ide.db.TeamCityDatabaseManager - Database collation: latin1_swedish_ci
[2016-08-28 20:35:01,253] INFO - jetbrains.buildServer.STARTUP - JDBC driver version: 5.1 (MySQL Connector Java)
[2016-08-28 20:35:01,253] INFO - jetbrains.buildServer.STARTUP - Database system version: 5.7.13 (MySQL)
[2016-08-28 20:35:01,253] INFO - jetbrains.buildServer.STARTUP - Connected to the database successfully
[2016-08-28 20:35:01,327] INFO - jetbrains.buildServer.STARTUP - Database contains 123 tables.
[2016-08-28 20:35:01,336] INFO - jetbrains.buildServer.STARTUP - Database version is 787
[2016-08-28 20:35:01,336] ERROR - jetbrains.buildServer.STARTUP - Found a TeamCity internal database when no system directory or an empty system directory is expected
[2016-08-28 20:35:01,336] INFO - jetbrains.buildServer.STARTUP - Current stage: TeamCity server startup error

 

 

It's the second to last night "[2016-08-28 20:35:01,336] ERROR - jetbrains.buildServer.STARTUP - Found a TeamCity internal database when no system directory or an empty system directory is expected" that has me completely thrown off. Anyone have any ideas?

1 comment

Nevermind.  ran it manually and found out it was complaining about a port in use.

0

Please sign in to leave a comment.