Server won't restart after crashing due to a lock file issue

I noticed that our Bamboo server was down. When I went to restart it, the bamboo.log contained the following line repeatedly:

2011-10-27 08:00:28,120 INFO main MessageDatabase Database /xchip/cga2/bamboo/bamboo-home/jms-store/bamboo/KahaDB/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: File '/xchip/cga2/bamboo/bamboo-home/jms-store/bamboo/KahaDB/lock' could not be locked.

Is this an issue with my database, or with Bamboo itself? Can I just delete the lock file and then restart?

6 answers

This widget could not be displayed.

You can shut down your Bamboo, make sure that there are no other Bamboo instances running (ps -ax | grep bamboo), delete 'BambooHome/jms-store' directory and start your Bamboo instance.


I didn't need to delete bambooHome/jms-store. With (ps -ax | grep bamboo), i see many instances running. i've killed all the process, and bamboo starts normally. Thanks, Armen.

worked for me as well.  Thanks Armen.

This widget could not be displayed.

KahaDB is a persistence component that's part of Apache ActiveMQ. Bamboo uses ActiveMQ for inter-process communication. So no, it's not part of your Build Plan data.

If this lockfile is being found that means that there's probably already an instance of JMS (Java Message Service) running. Do you have two instances of Bamboo accidentally running? Did you stop Bamboo and restart it and perhaps didn't not shutdown cleanly?

You should definitely contact and provide them your server logs for this kind of situation. If you do have two Bamboo instances running or orphaned java processes they'll want to know about it and can help you to resolve it.

This widget could not be displayed.

For me I just had extra Bamboos running somehow. Compared to JIRA and Confluence they really haven't spent much time making Bamboo a simple administrative experience. :/ Lots of manual stuff going on.

Its absolutely terrible, no installer, no automatic install as service ...

Also had this. I agree with the terrible administrative experience.

This widget could not be displayed.

This also happened to me. Extra Bamboos running somehow.


This widget could not be displayed.

I have the same problem. There are no extra instances running, and deleting the JMS-Store directory does not help either.

and using all the methods documented in this thread, I still cannot start my bamboo instance.




Works now.

This widget could not be displayed.

I managed to cause this problem by adding a <context> to the wrong place in service.xml. I was trying to add GMail support to Bamboo, but struggled with the doc for that, which caused this problem.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

178 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you