Error when running Bamboo as a Windows Service
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
Running Bamboo with "BambooConsole.bat" and "start-bamboo.bat" works fine, but running the service fails, and re-installing it doesn't make any difference in most cases. Following error shows up in the logs:
1
2
3
The service name is invalid.
More help is available by typing NET HELPMSG 2185.
Press any key to continue . . .
Cause
Incompatible Java version
JAVA_HOME variable is not set up correctly
Resolution
Follow the "Troubleshooting & Resolution" steps in this document: Running Bamboo as a Windows Service-Troubleshooting Guide
Referring to Bamboo Supported platforms page, make sure a compatible Java version is installed for your version of Bamboo and JAVA_HOME is configured correctly to point to the root of the JDK directory.
Note: Re-start Bamboo after any changes to the Java version or JAVA_HOME settings.
Was this helpful?