MaintainDB.cmd Restore error with SQL 2005 - restore successful, error shown in Web GUI

Hi

I get the following error when restoring all data with SQL 2005 database, I am restoring from another database that is SQL 2005; database properties are the same (the source database works fine).  Originally I accidently set my Collation on target database to: SQL_Latin1_General_CP1_CS_AS, looked up the error I was getting and someone said that pre TeamCity 7.0 it does not support case sensitive database.  I am using TeamCity version 6.0.1.  I created a clean database with no tables then set Collation to case insensitive: SQL_Latin1_General_CP1_CI_AS and run the restore again, but I am still getting the same error.  Is something else wrong?  The source database I took backup from is also SQL_Latin1_General_CP1_CI_AS.  Restore completes and says it was successful but when I look at the  server it is showing the following error.  I tried re-starting the  TeamCity web service, but that made no difference.

TeamCity Version: 6.0.1 (build 15816)
Database: SQL 2005
Collation: SQL_Latin1_General_CP1_CI_AS
Command Line: maintainDB.cmd restore -T c:\TeamCity\.buildserver\config\database.properties -F c:\TC-backups\nameofbackup.zip --all


I followed the following notes:
For setting up datbase: http://confluence.jetbrains.net/display/TCD6/Setting+up+an+External+Database
For restoring data:http://confluence.jetbrains.net/display/TCD6/Restoring+TeamCity+Data+from+Backup


1st few lines of error:
Error creating bean with name 'buildRunnerDescriptorFactory' defined in  URL  [jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]:  Cannot resolve reference to bean 'runTypeRegistry' while setting bean  property 'runTypeRegistry'; nested exception is  org.springframework.beans.factory.BeanCreationException: Error creating  bean with name 'runTypeRegistry' defined in URL  [jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]:  Cannot resolve reference to bean 'buildServer' while setting bean  property 'extensionHolder'; nested exception is  org.springframework.beans.factory.BeanCreationException: Error creating  bean with name 'buildServer' defined in URL  [jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]:  Cannot resolve reference to bean 'userModel' while setting bean  property 'userModelEx'; nested exception is  org.springframework.beans.factory.BeanCreationException: Error creating  bean with name 'userModel' defined in URL  [jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]:  Cannot resolve reference to bean 'hiddenProjectManager' while setting  bean property 'projectManager';

Thanks
Tara

2 comments
Comment actions Permalink

Tara,

Could you please find full trace log inside teamcity-server.log file, and post it here.

Thanks

0
Comment actions Permalink

Hi Michael

I ran the restore on 21/07/2012.  I have four teamcity-server.log's under the 'logs' folder (teamcity-server.log, teamcity-server.log.1, teamcity-server.log.2 and teamcity-server.log.3)

All of them were last modified on 06/02/2012, so these files don't appear to have been updated when running the restore?  Do you want them anyway and do you want all four?  Or do I need to change a setting for the log to be updated and re-run restore?

Many Thanks
Tara

0

Please sign in to leave a comment.