Problem moving TC to a new server


I have Team City 4.0.2 (build 8222) running on one server and I am trying to move it to a new one.  I did a clean install on the new server.  I stopped the web and agent services on the old and new servers and copied the .buildServer directory and buildAgent directories over but no projects are showing.  Is there anything I am missing?


Comment actions Permalink

I should add that I am using the internal database.

Comment actions Permalink

Additional info:

Old Server:
Microsoft Windows Server 2003 32 bit
Standard Edition
Service Pack 2

New Server:
Microsoft Windows Server 2008 R2 Standard 64 bit

Any gotchas I'm missing?  I'm about to start manually setting up the projects.


Comment actions Permalink

Could you please check that TeamCity data directory is set corretly after upgrade? You could simple check it at Server Cofiguration page in admin section.

Kind regards,

Comment actions Permalink

To be able to work with configuration files from old server, TeamCity needs to convert them. Conversion is done if TeamCity sees old database schema and old configuration files. I suspect that in your case you started the new server without old configs, it created the new database, then you copied config files. The conversion was not performed.

What you need to do is:
- create database in MSSQL 2008
- copy schema and data from the old SQL server to new database
- copy old .BuildServer to the new server
- modify .BuildServer/config/ file to point to new SQL server database
- start new server

Watch for teamcity-server.log, there must be records about db/config files conversion. After the conversion the server should start.


Please sign in to leave a comment.