upgrading to 4.5.5

I've tried upgrading to 4.5.5 (my previous version was from build 8222).
Whenever I start the TeamCity service, I see this in teamcity-server.log:
[2009-10-08 11:08:11,652]   INFO -   jetbrains.buildServer.SERVER - Starting TeamCity server
[2009-10-08 11:08:14,725]   INFO - dServer.serverSide.ServerPaths - TeamCity data path was read from teamcity.data.path
[2009-10-08 11:08:14,725]   INFO - dServer.serverSide.ServerPaths - TeamCity data directory:C:/.BuildServer4.5.5
[2009-10-08 11:08:14,756]   INFO - rverSide.impl.DatabaseSettings - External database settings not specified: cannot find C:\.BuildServer4.5.5\config\database.properties
[2009-10-08 11:08:15,146]   INFO - erver.serverSide.impl.DBFacade - Connection pool configured (org.hsqldb.jdbcDriver, maximum number of connections: 50)
[2009-10-08 11:08:15,146]   INFO - erver.serverSide.impl.DBFacade - Connection pool URL: jdbc:hsqldb:file:C:/.BuildServer4.5.5/system/buildserver
[2009-10-08 11:08:16,722]   INFO -   jetbrains.buildServer.SERVER - Loading roles from the configuration file: C:\.BuildServer4.5.5\config\roles-config.xml
[2009-10-08 11:08:17,346]   INFO -   jetbrains.buildServer.SERVER - Start initializing build durations cache...
[2009-10-08 11:08:17,346]   INFO -   jetbrains.buildServer.SERVER - Finished initializing build durations cache
[2009-10-08 11:08:17,626]   INFO -   jetbrains.buildServer.SERVER - Shutdown Server Start
[2009-10-08 11:08:19,280]   INFO -   jetbrains.buildServer.SERVER - Server shutdown complete

and this in the localhost.log:
08/10/2009 11:08:11 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
08/10/2009 11:08:19 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class jetbrains.buildServer.web.impl.ServerContextLoaderListener
java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectsDBMirror' defined in URL [jar:file:/C:/TeamCity4.5.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.serverSide.impl.ConfigurationMirror]: Constructor threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error executing update with params:[]; uncategorized SQLException for SQL [DELETE FROM projects]; SQL state [S1000]; error code [40]; S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]; nested exception is java.sql.SQLException: S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]
    at jetbrains.buildServer.web.impl.ServerContextLoaderListener.contextInitialized(ServerContextLoaderListener.java:4)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectsDBMirror' defined in URL [jar:file:/C:/TeamCity4.5.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.serverSide.impl.ConfigurationMirror]: Constructor threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error executing update with params:[]; uncategorized SQLException for SQL [DELETE FROM projects]; SQL state [S1000]; error code [40]; S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]; nested exception is java.sql.SQLException: S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:243)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
    at jetbrains.buildServer.web.impl.ServerContextLoaderListener.contextInitialized(ServerContextLoaderListener.java:30)
    ... 24 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [jetbrains.buildServer.serverSide.impl.ConfigurationMirror]: Constructor threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: Error executing update with params:[]; uncategorized SQLException for SQL [DELETE FROM projects]; SQL state [S1000]; error code [40]; S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]; nested exception is java.sql.SQLException: S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:99)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237)
    ... 42 more
Caused by: org.springframework.jdbc.UncategorizedSQLException: Error executing update with params:[]; uncategorized SQLException for SQL [DELETE FROM projects]; SQL state [S1000]; error code [40]; S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]; nested exception is java.sql.SQLException: S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]
    at jetbrains.buildServer.serverSide.impl.query.GenericQuery.executeUpdate(GenericQuery.java:2)
    at jetbrains.buildServer.serverSide.impl.query.GenericQuery$3.run(GenericQuery.java:2)
    at jetbrains.buildServer.serverSide.impl.query.GenericQuery$3.run(GenericQuery.java:1)
    at jetbrains.buildServer.serverSide.impl.DBFacade$3.doInConnection(DBFacade.java)
    at jetbrains.buildServer.serverSide.impl.DBFacade$4.doInConnection(DBFacade.java:1)
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:341)
    at jetbrains.buildServer.serverSide.impl.DBFacade._runSql(DBFacade.java:199)
    at jetbrains.buildServer.serverSide.impl.DBFacade.runSql(DBFacade.java:160)
    at jetbrains.buildServer.serverSide.impl.query.GenericQuery.executeUpdate(GenericQuery.java:59)
    at jetbrains.buildServer.serverSide.impl.ConfigurationMirror.<init>(ConfigurationMirror.java:7)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
    ... 44 more
Caused by: java.sql.SQLException: S1000 General error java.util.NoSuchElementException in statement [DELETE FROM projects]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
    at jetbrains.buildServer.serverSide.impl.query.GenericQuery.executeUpdate(GenericQuery.java:96)
    ... 58 more
08/10/2009 11:08:19 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext


why the server is shutting down?

2 comments
Comment actions Permalink

Did you see any exceptions when 4.5.5 was started for the first time? Can you provide all log files? You can send them to teamcity-feedback[at]jetbrains.com

0
Comment actions Permalink

It loaded fine at first.
Problem started only after I've migrated the data from my previous version.
Sent log files.

0

Please sign in to leave a comment.