Hello,
i have an old bamboo (v 6.0.0) running on a linux machine - setup is done by someone long time ago. No documentation nothing so i plan do migrate to a newer version.
After restarting the server the bamboo was not able to start. I get a lot of errors like that:
2018-10-27 14:41:14,479 WARN [localhost-startStop-1] [DefaultListableBeanFactory] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletionService' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.deletion.DeletionServiceImpl#3244e3f0' of type [com.atlassian.bamboo.deletion.DeletionServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.deletion.DeletionServiceImpl#3244e3f0' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'stopBuildManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stopBuildManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManager' while setting bean property 'planExecutionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.plan.PlanExecutionManagerImpl#769b1391' of type [com.atlassian.bamboo.plan.PlanExecutionManagerImpl] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.plan.PlanExecutionManagerImpl#769b1391' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'executionLimitsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'executionLimitsService' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'serverLifecycleProvider' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverLifecycleProvider' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'serverLifecycleManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverLifecycleManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'indexerManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'environmentIndexer' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environmentIndexer' defined in class path resource [applicationContextDeploymentsServices.xml]: Cannot resolve reference to bean 'environmentLuceneConnection' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'environmentLuceneConnection' defined in class path resource [applicationContextDeploymentsServices.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bamboo.index.LuceneConnectionImpl]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: java.io.FileNotFoundException: /bamboo_home/index/environment/segments_q1 (No such file or directory)
and at the end
2018-10-27 14:41:16,175 FATAL [localhost-startStop-1] [UpgradeLauncher] Failed to initialise Bamboo container
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:92)
at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Container is not setup
at com.atlassian.spring.container.LazyComponentReference.create(LazyComponentReference.java:41)
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
... 12 more
Have no idea what to to. Tried to kill and restart but nothing worked. Also try to create the file by touching it - even knowing thats stupid :-) restarting the server is no option cause its hosted somewhere and i'm not able to do this.
Thx in advance
Hi Oliver,
These errors seem to indicate Bamboo's index has become corrupted (as explained here). The solution is to remove the contents inside this directory $BAMBOO_HOME/index and start Bamboo.
Let us know if that helped you.
Cheers,
Jey
I had the same error message. Clearing content of index folder and restarting bamboo service didn't fix the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.