Bamboo fails to start: The system cannot open the file

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

要約

Bamboo fails to start and shows the following error in the logs: "The system cannot open the file."

If running Bamboo as a service, the service fails to start and throws "The Atlassian Bamboo Bamboo service terminated with the following service-specific error: The system cannot open the file."

環境

  • Bamboo version 9 and newer
  • Java 11
  • Java 17

診断

The following error appears in the <BAMBOO_INSTALL_DIR>/logs/catalina.out file while you start Bamboo: "The system cannot find the file specified"

[2023-11-08 13:30:37] [info]  [ 4484] Apache Commons Daemon procrun (1.3.4.0 64-bit) started.
[2023-11-08 13:30:37] [info]  [ 4484] Running Service 'Bamboo'...
[2023-11-08 13:30:37] [info]  [ 2376] Starting service...
[2023-11-08 13:30:37] [error] [ 3848] CreateJavaVM Failed with error [-6]
[2023-11-08 13:30:37] [error] [ 3848] The system cannot find the file specified.
[2023-11-08 13:30:37] [error] [ 2376] Failed to start Java
[2023-11-08 13:30:37] [error] [ 2376] ServiceStart returned 4.
[2023-11-08 13:30:37] [info]  [ 4484] Run service finished.
[2023-11-08 13:30:37] [info]  [ 4484] Apache Commons Daemon procrun finished.

When trying to start Bamboo from the command line, the following error is present: "endorsed is not supported. Endorsed standards and standalone APIs in modular form will be supported via the concept of upgradeable modules."

E:\ProgramFiles\Bamboo\bin>start-bamboo.bat /fg

Bamboo Data Center
   Version : 9.3.4


If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+Bamboo+on+Windows

Using CATALINA_BASE:   "E:\ProgramFiles\Bamboo"
Using CATALINA_HOME:   "E:\ProgramFiles\Bamboo"
Using CATALINA_TMPDIR: "E:\ProgramFiles\Bamboo\temp"
Using JRE_HOME:        "E:\BambooJava\Java\jdk-11"
Using CLASSPATH:       "E:\ProgramFiles\Bamboo\bin\bootstrap.jar;E:\ProgramFiles\Bamboo\bin\tomcat-juli.jar"
Using CATALINA_OPTS:   ""
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
-Djava.endorsed.dirs=E:\ProgramFiles\Bamboo\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

原因

After Java 8, the parameter -Djava.endorsed.dirs is no longer supported nor needed and the JVM will not start if this option is included.

ソリューション

When upgrading the Java version, manually remove the Java option.

  • Windows: open the QIE Service Manager, and click the Startup tab. In the Arguments section remove the line which contains the -Djava.endorsed.dirs, then click Apply. It is very important that only -Djava.endorsed.dirs line is deleted. Also, make sure that each of the other arguments remains on their own line;
  • MacOS and Linux: go to your QIE home directory and edit the start.sh file. Remove the line that contains the -Djava.endorsed.dirs and Save the file.

Alternatively, when running Bamboo as a Windows service, you can configure the Java options directly in the service.

最終更新日 2023 年 11 月 10 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.