The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo does not start (java.io.FileNotFoundException: index/environment/segments_q1)

Oliver Eckle
Contributor
October 27, 2018

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

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2018

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

Application Services
September 22, 2020

I had the same error message. Clearing content of index folder and restarting bamboo service didn't fix the problem.

TAGS
AUG Leaders

Atlassian Community Events