Bamboo fails to start: Unable to enable plugin

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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

Summary

Bamboo fails to run as a Windows service, whereas it works properly from the command line through BambooConsole.bat. The logs show errors while enabling plugins.

Environment

Bamboo running as a Windows service.

Diagnosis

The logs show this:

2012-07-02 11:13:12,857 ERROR [WrapperSimpleAppMain] [PluginEnabler] Unable to enable plugin com.atlassian.activeobjects.bamboo.spi
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.activeobjects.bamboo.spi
	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:445)
	at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:237)
	at com.atlassian.plugin.impl.AbstractDelegatingPlugin.enable(AbstractDelegatingPlugin.java:215)
	at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:114)

...

Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle com.atlassian.activeobjects.bamboo.spi [21]: Unable to resolve 21.0: missing requirement [21.0] package; (&(package=javax.sql)(version>=0.0.0.1_006_JavaSE)(version<=0.0.0.1_006_JavaSE))
	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1709)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
	at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:417)
	... 27 more

Cause

An unsupported JDK gets picked up, and that's why plugins cannot be enabled.

Solution

Please verify if the JDK got changed on your machine and if the correct JDK gets picked up. Do you have your JAVA_HOME set up? If you have multiple JDKs and want to choose the one that Bamboo should use, you can edit the file conf/wrapper.conf and make changes to the line wrapper.java.command=java. An example is wrapper.java.command=C:\Program Files\Java\jdk1.6.0_35\bin\java

In addition, you might want to confirm that you are using a local user and that this user is allowed to run services as per this document: https://confluence.atlassian.com/display/BAMBOO/Running+Bamboo+service+on+Windows+as+the+local+user

Also, please verify that there are no file permission issues.

Last modified on Aug 11, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.