Error when starting the service
症状
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
....
原因
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.
ソリューション
- 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:.
最終更新日: 2025 年 1 月 23 日
Powered by Confluence and Scroll Viewport.