Update from 3.1 to 4.5.1

Hi I've tried to update TC without success.
That was the procedure I followed :
1) set up a new machine on wich I installed mysql and TC 4.5.1 and mysqlserver 5
2) made a sqldump of the db used by TC3.1
3) imported on the new installation.
4) configured TC4.5.1 with mysql jar to connect to the db
5) started TC4.5.1

That's what I got :

Failed to initialize TeamCity server, due to error (enable debug to see the whole stacktrace):
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'teamcity.usergroup_notification_events' doesn't exist
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildServer' defined in URL [jar:file:/opt/TeamCity-4.5/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:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Cannot resolve reference to bean 'hiddenProjectManager' while setting bean property 'projectManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hiddenProjectManager' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Cannot resolve reference to bean 'copyProjectHelper' while setting bean property 'copyProjectHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'copyProjectHelper' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Cannot resolve reference to bean 'notificationRulesManager' while setting bean property 'notificationRulesManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'notificationRulesManager' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [jetbrains.buildServer.notification.impl.NotificationRulesManagerImpl]: Constructor threw exception; nested exception is org.springframework.jdbc.BadSqlGrammarException: ConnectionCallback; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'teamcity.usergroup_notification_events' doesn't exist
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serverPaths' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dbSettings' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'serverPaths' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dbSettings' defined in URL [jar:file:/opt/TeamCity-4.5/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean


What did I do wrong ?
Thanks in advance for any comment

1 comment
Comment actions Permalink

Please take a look at our documentation: http://www.jetbrains.net/confluence/display/TCD4/Upgrade
In brief, TeamCity needs to apply converters to the database, but current version of the TeamCity data/config files is not stored in the database, it is in the version.dat file located in .BuildServer/system. Without that file TeamCity thinks that conversion is not required.

0

Please sign in to leave a comment.