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

  1. Incompatible Java version

  2. JAVA_HOME variable is not set up correctly

Resolution

  1. Follow the "Troubleshooting & Resolution" steps in this document: Running Bamboo as a Windows Service-Troubleshooting Guide

  2. 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.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.