Failed upgrading to 9.0 from 8.1.5

Trying to upgrade to newer version, i have the follow error when applying the upgrade.

jetbrains.buildServer.maintenance.exceptions.UnknownServerStartupError: Could not create the main application servlet: Error creating bean with name 'jetbrains.buildServer.serverSide.impl.beans.CreateAllBeans#0' defined in URL [jar:file:/D:/TeamCity/webapps/teamcity/WEB-INF/lib/server.jar!/META-INF/buildServerSpringCreateAll.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.Collection]: : Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:30)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:23)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:189)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:423)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:452)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:228)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Thread.java:745)
caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jetbrains.buildServer.serverSide.impl.beans.CreateAllBeans#0' defined in URL [jar:file:/D:/TeamCity/webapps/teamcity/WEB-INF/lib/server.jar!/META-INF/buildServerSpringCreateAll.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.Collection]: : Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at jetbrains.buildServer.maintenance.WebDispatcherServlet.createWebApplicationContext(WebDispatcherServlet.java:15)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:4)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:23)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:189)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:423)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:452)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:228)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Thread.java:745)
caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:912)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at jetbrains.buildServer.maintenance.WebDispatcherServlet.createWebApplicationContext(WebDispatcherServlet.java:15)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:4)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:23)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:189)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:423)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:452)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:228)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Thread.java:745)
caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:970)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:912)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1017)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at jetbrains.buildServer.maintenance.WebDispatcherServlet.createWebApplicationContext(WebDispatcherServlet.java:15)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at jetbrains.buildServer.maintenance.TeamCityDispatcherServlet$WebApplicationCreatorAndDestroyer.createApplication(TeamCityDispatcherServlet.java:4)
at jetbrains.buildServer.maintenance.StartupProcessor.doApplicationStarting(StartupProcessor.java:23)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:189)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:423)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:452)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:228)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Thread.java:745)

8 comments
Comment actions Permalink

Hello,

Have you removed the previous TeamCity installation? If this is the case, please reinstall by following our installation instructions: http://confluence.jetbrains.com/display/TCD9/Upgrade. If not, then please attach teamcity-server.log file.

0
Comment actions Permalink

I have executed the installer, and before the installation has detected the previous version and it has been uninstalled.

I've attached the file.



Attachment(s):
teamcity-server.log.zip
0
Comment actions Permalink

Did you stop the server before upgrade? Please make sure there are no java processes running on your machine, and try reinstalling 9.0. Please let us know if it helps or not.

0
Comment actions Permalink

It worked! Thank you!!!

0
Comment actions Permalink

I also have failed upgrade from 8.1.2 to 9.0.3; the TeamCity installation directory is /teamcity/ and data directory is /teamcity/.BuildServer/

Old installation is /teamcity/TeamCity-8.1.2 with symlink /teamcity/TeamCity
When upgrading, we stop the server, remove the symlink, and un-tar the package to /teamcity/TeamCity-9.0.3 and symlink /teamcity/TeamCity to that directory. I checked /teamcity/.BuildServer/plugins and found I needed to update three of them; after doing so, I re-started and provided Manager key when prompted. I observed the d/b upgrade, the server started to come up. Then the java exception was thrown:

[2015-04-06 10:55:30,744]   INFO -  jetbrains.buildServer.STARTUP - Database version is 709
[2015-04-06 10:55:30,745]   INFO -  jetbrains.buildServer.STARTUP - Current stage: Initializing TeamCity server components
[2015-04-06 10:55:30,789]   INFO -  jetbrains.buildServer.STARTUP - Starting the main application
[2015-04-06 10:55:31,165]   INFO - ebDispatcherApplicationContext - Refreshing jetbrains.buildServer.maintenance.WebDispatcherApplicationContext@d7e770: startup date [Mon Apr 06 10:55:31 CDT 2015]; root of context hierarchy
[2015-04-06 10:55:31,236]   INFO - MainTeamCityApplicationContext - Refreshing WebApplicationContext for namespace 'buildServer-servlet': startup date [Mon Apr 06 10:55:31 CDT 2015]; parent: jetbrains.buildServer.maintenance.WebDispatcherApplicationContext@d7e770
[2015-04-06 10:55:45,733]   INFO -   jetbrains.buildServer.SERVER - Build history cache size is set to 10000 entries
[2015-04-06 10:55:49,075]   INFO -   jetbrains.buildServer.SERVER - Loading roles from the configuration file: /teamcity/.BuildServer/config/roles-config.xml
[2015-04-06 10:55:57,466]   INFO -   jetbrains.buildServer.SERVER - Applying memory thresholds for Memory Usage Monitor: storing 100 last measurements; time between measurements: 3000ms. Thresholds: {TC_TOTAL_MEMORY_USAGE_KEY=90.0, PS Old Gen=90.0, PS Perm Gen=95.0}
[2015-04-06 10:56:05,759]   INFO -   jetbrains.buildServer.SERVER - Shutdown Spring components
[2015-04-06 10:56:05,759]   INFO - tbrains.buildServer.ACTIVITIES - Shutdown Spring components
[2015-04-06 10:56:06,017]   INFO -   jetbrains.buildServer.SERVER - Cannot schedule running builds status re-calculation task, executor is stopped
[2015-04-06 10:56:06,083]   INFO - tbrains.buildServer.ACTIVITIES - Spring components are shut down
[2015-04-06 10:56:06,119]   INFO - rShutdownProcessTerminatorImpl - Start killing all child processes. To disable it set 'teamcity.kill.child.processes.on.shutdown' JVM property to 'false'
[2015-04-06 10:56:06,147]   INFO - rocesses.ProcessTreeTerminator - Using jetbrains.buildServer.processes.ProcessTreeTerminatorLinux
[2015-04-06 10:56:06,332]   INFO - ses.ProcessTreeTerminatorLinux - Second thread id is 16659
[2015-04-06 10:56:06,332]   INFO - ses.ProcessTreeTerminatorLinux - Thread is Process thread model: false
[2015-04-06 10:56:06,333]   INFO - .ProcessTreeTerminatorImplBase - Collecting processes from the current one, current process PID 16659
[2015-04-06 10:56:06,344]   INFO - .ProcessTreeTerminatorImplBase - No processes to kill
[2015-04-06 10:56:06,378]   INFO -   jetbrains.buildServer.SERVER - Spring components are shut down
[2015-04-06 10:56:06,453]  ERROR - intenance.WebDispatcherServlet - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jetbrains.buildServer.serverSide.impl.beans.CreateAllBeans#0' defined in URL [jar:file:/teamcity/TeamCity-9.0.3/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpringCreateAll.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.Collection]: : Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agentStatisticsController' defined in ServletContext resource [/WEB-INF/build-server-plugin-agents-statistics-web.xml]: Unsatisfied dependency expressed through constructor argument with index 3 of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping]: : No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGrouping] is defined: expected single matching bean but found 2: jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#0,jetbrains.buildServer.controllers.agent.statistics.AgentStatisticsGroupingImpl#1
 at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)


Message was edited by: Mark Jaffe I have uploaded zipped installation directories: TC9.0.3-dirs.zip to ftp://ftp.intellij.net/.uploads/



Attachment(s):
TC9.0.3-log.zip
0
Comment actions Permalink

Could you please try to start TeamCity server under the Java 1.7?

0
Comment actions Permalink

It was started under java 1.7:

[root@tul1wwptc2 home]# java -version
java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)


[root@tul1wwptc2 home]# ls -l /usr/bin | grep java
lrwxrwxrwx  1 root root          22 Aug 30  2013 java -> /etc/alternatives/java

[root@tul1wwptc2 home]# ls -l /etc/alternatives/ | grep java

lrwxrwxrwx  1 root root 46 Aug 30  2013 java -> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java

According to available repos for this host, there are some upgrades available for the JRE:

java-1.7.0-ibm.x86_64                  1:1.7.0.8.0-1jpp.1.el6_6     rhel6-64bit
java-1.7.0-ibm-devel.x86_64            1:1.7.0.8.0-1jpp.1.el6_6     rhel6-64bit
java-1.7.0-openjdk.x86_64              1:1.7.0.75-2.5.4.0.el6_6     rhel6-64bit
java-1.7.0-openjdk-devel.x86_64        1:1.7.0.75-2.5.4.0.el6_6     rhel6-64bit
java-1.7.0-oracle.x86_64               1:1.7.0.75-1jpp.1.el6        rhel6-64bit
java-1.7.0-oracle-devel.x86_64         1:1.7.0.75-1jpp.1.el6        rhel6-64bit
java-1.7.1-ibm.x86_64                  1:1.7.1.2.10-1jpp.3.el6_6    rhel6-64bit
java-1.7.1-ibm-devel.x86_64            1:1.7.1.2.10-1jpp.3.el6_6    rhel6-64bit


Which of the above is recommended for TeamCity 9 ?
0
Comment actions Permalink

I have filed bug TW-40730

0

Please sign in to leave a comment.