Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

190 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you