Teamcity restore of 6x backup to 7x fails

According to the documentation, restoring of a 6.x backup to a later version of teamcity is possible.

I have production server running 6.5.4 (build 18046).
I have a mirror server with 7.0.3 installed.

command line to restore database was:
"maintainDB.cmd restore -F  F:\TeamCity\.BuildServer\backup\ -A  F:\TeamCity\.BuildServer -T F:\TeamCity\ConfigBackup\"

This restored to a new database instance with no errors. After restoring the backup to a new database with maintainDB, I receive the following error on startup of the TeamCity web server:

"Data format between data directory and the database does not match: configuration version is 514 but database version is 454.
This probably means you changed TeamCity data directory or database in an inconsistent way.
Both database and data directory should be in a consistent state and upgraded at the same time. Please reconfigure the settings or restore the data from backup and restart TeamCity server. ".

Please advise.

Comment actions Permalink

It looks like after restore F:\TeamCity\.BuildServer\ file still points to original database, not to new one.
Look at Create a copy of TeamCity server with all data article for complete procedure description.

Comment actions Permalink

OK, it turns out that in copying the backed up ntlm and database properties files I was also accidentally copying the main config. Skipping this leaves the config file as version 454, prompting upgrade on startup.


Please sign in to leave a comment.