cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Mehta <Nitin.Me...@citrix.com>
Subject Re: MS fails to start due - Incorrect code version
Date Tue, 20 Aug 2013 13:50:58 GMT
I would suggest playing around with 4.2 branch, should be much more stable

On 20/08/13 7:18 PM, "SuichII, Christopher" <Chris.Suich@netapp.com> wrote:

>Master.
>
>Then, after commenting out the offending code, rebuilding, redeploying
>the db and rerunning, this exception is thrown when attempting to start
>the MS:
>
>ERROR [o.s.w.c.ContextLoader] (main:null) Context initialization failed
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'dataMotionServiceImpl': Injection of autowired
>dependencies failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: java.util.List
>org.apache.cloudstack.storage.motion.DataMotionServiceImpl.strategies;
>nested exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'ancientDataMotionStrategy': Injection of autowired
>dependencies failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: 
>org.apache.cloudstack.engine.subsystem.api.storage.StorageCacheManager
>org.apache.cloudstack.storage.motion.AncientDataMotionStrategy.cacheMgr;
>nested exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'storageCacheManagerImpl': Injection of autowired
>dependencies failed; nested exception is
>org.springframework.beans.factory.BeanCreationException: Could not
>autowire field: 
>org.apache.cloudstack.storage.cache.manager.StorageCacheReplacementAlgorit
>hm 
>org.apache.cloudstack.storage.cache.manager.StorageCacheManagerImpl.cacheR
>eplacementAlgorithm; nested exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'StorageCacheReplacementAlgorithm': Invocation of init
>method failed; nested exception is
>com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
>com.mysql.jdbc.JDBC4PreparedStatement@29f9aaf0: SELECT
>configuration.instance, configuration.component, configuration.name,
>configuration.value, configuration.default_value,
>configuration.description, configuration.category,
>configuration.is_dynamic, configuration.scope, configuration.updated FROM
>configuration WHERE configuration.name =
>_binary'storage.cache.replacement.lru.interval'  ORDER BY RAND() LIMIT 1
>	at 
>org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostPr
>ocessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.jav
>a:287)
>	at 
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
>ry.populateBean(AbstractAutowireCapableBeanFactory.java:1106)
>	at 
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
>ry.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
>	at 
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
>ry.createBean(AbstractAutowireCapableBeanFactory.java:456)
>	at 
>org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
>AbstractBeanFactory.java:294)
>	at 
>org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
>Singleton(DefaultSingletonBeanRegistry.java:225)
>	at 
>org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
>stractBeanFactory.java:291)
>	at 
>org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
>ractBeanFactory.java:193)
>	at 
>org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
>stractBeanFactory.java:284)
>	at 
>org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
>ractBeanFactory.java:193)
>	at 
>org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
>stantiateSingletons(DefaultListableBeanFactory.java:609)
>	at 
>org.springframework.context.support.AbstractApplicationContext.finishBeanF
>actoryInitialization(AbstractApplicationContext.java:918)
>	at 
>org.springframework.context.support.AbstractApplicationContext.refresh(Abs
>tractApplicationContext.java:469)
>	at 
>org.springframework.web.context.ContextLoader.configureAndRefreshWebApplic
>ationContext(ContextLoader.java:383)
>	at 
>org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
>ntextLoader.java:283)
>	at 
>org.springframework.web.context.ContextLoaderListener.contextInitialized(C
>ontextLoaderListener.java:111)
>	at 
>org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:
>549)
>	at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
>	at 
>org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:128
>2)
>	at 
>org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
>	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
>	at 
>org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWeb
>AppContext.java:115)
>	at 
>org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>	at 
>org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java
>:152)
>	at 
>org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerC
>ollection.java:156)
>	at 
>org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>	at 
>org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java
>:152)
>	at 
>org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>	at 
>org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>	at org.mortbay.jetty.Server.doStart(Server.java:224)
>	at 
>org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>	at 
>org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:
>132)
>	at 
>org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.ja
>va:454)
>	at 
>org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:
>396)
>	at 
>org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo
>.java:210)
>	at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
>	at 
>org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuild
>PluginManager.java:101)
>	at 
>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>:209)
>	at 
>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>:153)
>	at 
>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>:145)
>	at 
>org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Li
>fecycleModuleBuilder.java:84)
>	at 
>org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Li
>fecycleModuleBuilder.java:59)
>	at 
>org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(L
>ifecycleStarter.java:183)
>	at 
>org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStar
>ter.java:161)
>	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>57)
>	at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>pl.java:43)
>	at java.lang.reflect.Method.invoke(Method.java:601)
>	at 
>org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.
>java:290)
>	at 
>org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230
>)
>	at 
>org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launche
>r.java:409)
>	at 
>org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>On Aug 20, 2013, at 9:41 AM, Chip Childers <chip.childers@sungard.com>
> wrote:
>
>> What branch?
>> 
>> 
>> On Tue, Aug 20, 2013 at 8:48 AM, SuichII, Christopher <
>> Chris.Suich@netapp.com> wrote:
>> 
>>> I started a fresh clean install this morning and am unable to start the
>>> management server:
>>> 
>>> Error [c.c.u.c.ComponentContext] (Timer-3:null) System integrity check
>>> failed. Refuse to startup
>>> com.cloud.utils.exception.CloudRuntimeException: Database version
>>>4.3.0 is
>>> higher than management software version 1.7.0_19
>>>        at
>>> 
>>>com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.ja
>>>va:384)
>>>        Š
>>> 
>>> 
>>> So, it appears that the DatabaseUpgradeChecker is actually looking at
>>>my
>>> Java JDK version, not the code version. Is this something wrong with my
>>> environment setup?
>>> 
>


Mime
View raw message