Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot start Bamboo - Could not create the Java Virtual Machine

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

Replacing the Oracle Java with Open JDK solved the problem.

 

sudo apt-get install openjdk-8-jdk

rsperafico Atlassian Team Sep 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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

67 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you