Error when starting the 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
Following error appears in the logs when running Bamboo as a service:
1
2
3
4
5
6
7
8
9
10
11
12
....
[2013-10-31 22:36:07] [info] [16228] Commons Daemon procrun (1.0.15.0 32-bit) started
[2013-10-31 22:36:07] [info] [16228] Running 'Bamboo' Service...
[2013-10-31 22:36:07] [info] [13160] Starting service...
[2013-10-31 22:36:07] [error] [13160] %1 is not a valid Win32 application.
[2013-10-31 22:36:07] [error] [13160] Failed creating java C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll
[2013-10-31 22:36:07] [error] [13160] %1 is not a valid Win32 application.
[2013-10-31 22:36:07] [error] [13160] ServiceStart returned 1
[2013-10-31 22:36:07] [error] [13160] %1 is not a valid Win32 application.
[2013-10-31 22:36:07] [info] [16228] Run service finished.
[2013-10-31 22:36:07] [info] [16228] Commons Daemon procrun finished
....
Cause
Above error shows up if:
A 32 bit JDK is installed, instead of a supported 64 bit. Please refer to this page for more information about Bamboo's supported Platforms: Supported platforms.
You are running a 64-bit installation of Bamboo, while your OS (Windows) is 32-bit.
It may be related to the fact that Bamboo is using Tanuki's Java Service Wrapper 3.2.0 which doesn't provide native 64-bit support on Windows platform.
Resolution
Please make sure that your have installed the correct Bamboo package for your operating system.
Please download and install a 64 bit JDK and configure your JAVA_HOME variable to look at the jdk folder (If you run "echo %JAVA_HOME%" in cmd after these settings, you should see C:\Program Files\Java\jdk1.7.0_10, for example). Then restart Bamboo and follow the instructions to install and run the service with a local admin account. Make sure that you install a JDK and not a JRE.
Modify Bamboo installation by replacing the old version with most recent one that will provide 64 bit compatibility (https://wrapper.tanukisoftware.com/doc/english/download.jsp). From BAM-19683 - Bamboo service does not start on Windows with 64-bit Java.
Additional guidelines for installing and troubleshooting the Windows service:.
Was this helpful?