Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot start Bamboo - Could not create the Java Virtual Machine

Gabor Szabo September 16, 2018

I've just installed Bamboo 6.6.2 and I cannot start it:

 

$ ./bin/start-bamboo.sh

To run Bamboo in the foreground, start the server with start-bamboo.sh -fg

Server startup logs are located in /opt/atlassian-bamboo-6.6.2/logs/catalina.out

Bamboo Server Edition
Version : 6.6.2


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

Using CATALINA_BASE: /opt/atlassian-bamboo-6.6.2
Using CATALINA_HOME: /opt/atlassian-bamboo-6.6.2
Using CATALINA_TMPDIR: /opt/atlassian-bamboo-6.6.2/temp
Using JRE_HOME: /usr/lib/jvm/java-10-oracle
Using CLASSPATH: /opt/atlassian-bamboo-6.6.2/bin/bootstrap.jar:/opt/atlassian-bamboo-6.6.2/bin/tomcat-juli.jar
Tomcat started.

 

but 

$ curl http://localhost:8085/

curl: (7) Failed to connect to localhost port 8085: Connection refused

 

Java was installed following these instructions: https://www.linuxuprising.com/2018/04/install-oracle-java-10-in-ubuntu-or.html

 

$ java --version

java 10.0.2 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

 

$ echo $JAVA_HOME
/usr/lib/jvm/java-10-oracle

 

$ cat logs/catalina.out
-Djava.endorsed.dirs=/opt/atlassian-bamboo-6.6.2/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.

 

Any pointer how could I fix this?

 

1 answer

0 votes
Gabor Szabo September 16, 2018

Replacing the Oracle Java with Open JDK solved the problem.

 

sudo apt-get install openjdk-8-jdk

rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2018

Hi @Gabor Szabo,

The issue reported is not related to replacing Oracle Java with OpenJDK as Atlassian Bamboo runs with both. Instead, the issue was related to the Java version you were running:

$ java --version

java 10.0.2 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

When you installed the suggested Java version (1.8) as per described in our https://confluence.atlassian.com/display/BAMBOO/Supported+platforms this resolved the issue.

Thanks,

Rafael

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events