Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,040
Community Members
 
Community Events
168
Community Groups

Unable to start bamboo server - permissions issue

Hi,

I am getting the following issue when tried to start the Bamboo server.

 

2018-05-14 09:36:14,559 WARN [localhost-startStop-1] [DefaultListableBeanFactory] Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'immutablePlanManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.plan.cache.ImmutablePlanManagerImpl#2b3ab7ac' of type [com.atlassian.bamboo.plan.cache.ImmutablePlanManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.plan.cache.ImmutablePlanManagerImpl#2b3ab7ac' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'labelManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'labelManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.labels.LabelManagerImpl#a94eb50' of type [com.atlassian.bamboo.labels.LabelManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.labels.LabelManagerImpl#a94eb50' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'buildResultsIndexer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultsIndexer' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#14a437ac' of type [com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.index.buildresult.DefaultBuildResultsIndexer#14a437ac' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'buildResultLuceneConnection' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildResultLuceneConnection' defined in class path resource [applicationContextManagers.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: org.apache.lucene.store.LockReleaseFailedException: Cannot forcefully unlock a NativeFSLock which is held by another indexer component: /media/atlassian-data/data/bamboo/current/index/results/write.lock

 

Please let me know what is causing it?

 

Warm regards,

Javed Gardezi

1 answer

0 votes
Robert W Atlassian Team May 14, 2018

Hi Javed,

 

 

We most often see this error when an incorrect or incompatible version of Java is installed on the system.  What version of the JAVA jdk do you have installed?

Hi @Robert W

Thank you for your reply. Below are the details of the JAVA jdk version installed on Bamboo server.

JDK 1.8
atlassian-bamboo-6.4.0

However, I have resolved the problem. Still time to time I get issue on the Bamboo server when I restart the server.

The way I have resolved the issue is, first in the installation directory search for all the `write.lock`

find . -name "write.lock"

After that I have delete the lock file

> rm -r ./data/bamboo/current/index/search/write.lock
> rm -r ./data/bamboo/current/index/version/write.lock
> rm -r ./data/bamboo/current/index/results/write.lock

 

Warm regards,

Javed Gardezi

Suggest an answer

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

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

311 views 0 7
Read article

Atlassian Community Events