Bamboo fails to start: The system cannot open the file

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

Summary

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

Environment

  • Bamboo version 9 and newer

  • Java 11

  • Java 17

Diagnosis

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

1 2 3 4 5 6 7 8 9 [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."

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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.

Cause

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.

Solution

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.

Updated on February 25, 2025

Still need help?

The Atlassian Community is here for you.