Error when starting the service

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Following error appears in the logs when running Bamboo as a service:

....
[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:

  1. 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.
  2. You are running a 64-bit installation of Bamboo, while your OS (Windows) is 32-bit.
  3. I 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

  1. Please make sure that your have installed the correct Bamboo package for your operating system.
  2. 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. 
  3. 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 - Getting issue details... STATUS .



Additional guidelines for installing and troubleshooting the Windows service:.

Last modified on Dec 27, 2018

Was this helpful?

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