Bamboo fails to startup, due to multiple deployments
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Bamboo fails to start and this error is written in the logs:
1
2
3
4
5
6
2009-02-16 06:08:00,244 WARN [main] [ActiveManagementCoordinator] A C3P0Registry mbean is already registered.
...
2009-02-16 06:08:04,643 INFO [main] [KahaStore] Kaha Store using data directory /home/ci-admin/bamboo/jms-store/kaha.db
2009-02-16 06:08:04,655 ERROR [main] [BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: org.apache.activemq.kaha.impl.StoreLockedExcpetion: Kaha Store kaha.db is already opened by this application.
org.apache.activemq.kaha.impl.StoreLockedExcpetion: Kaha Store kaha.db is already opened by this application.
at org.apache.activemq.kaha.impl.KahaStore.lock(KahaStore.java:437)
Cause
Deploying Bamboo twice on the same application container.
For instance Tomcat's default server.xml
has the following entry, which deploys any .war
file in the webapps
folder:
server.xml
1
2
3
4
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
If there is another entry in server.xml
like:
1
2
3
<Host name="my.business.org" appBase="">
<Context path="/" docBase="/usr/local/tomcat/apache-tomcat-6.0.18/webapps/bamboo" />
</Host>
then both the exploded WAR and the application given in the context above are deployed.
Resolution
Unpack WAR manually to a place outside of Tomcat.
Specify the the location in the
<Context ... docBase="..." />
setting.
Was this helpful?