Agent fails to load after failure on startup due to unsupported java version

Jeremy W Walker
Contributor
November 2, 2015

AMI: ami-17f7a772

Agent loads then produces this error:

Running startup scripts...
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/atlassian/bamboo/agent/elastic/startup/RunStartupScripts : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Starting Elastic Bamboo Agent...

Following this, no custom startup scripts run.

UPDATE:

This appears to only effect instances that have custom startup scripts.

We were able to work around this by manually running the scripts on the instances.

**This is not an acceptable long term work around as it forces us to not be able to use spot instances reliably as it considerably drives up our working costs*****

 

UPDATE 2: 

Received new temporary AMI as a workaround from Atlassian support. Appears to have added java 8.

 

9 answers

1 vote
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 2, 2015

The problem should be fixed now.

shanehopcroft
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2015

What do you mean 'fixed'. Do we have to use an updated AMI?

Hans van den Bogert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 4, 2015

image configurations get updated with the new AMI automatically for this supplied Ubuntu image. Being automatic introduced the problem in the first place, in our case

Anderson Queiroz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2015

What is the updated AMI? I tried the ami-55f5a530 and I still getting the exactly same problem

Jeremy W Walker
Contributor
November 9, 2015

I was able to switch back to the Stock S3 image and it is working. that image does not have the jdk-8 capability but it has java 8 on it.

0 votes
rjsang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

Not encouraging when the makers of our Continuous Deployment tool make this sort of mistake with a deployment.

0 votes
Chris Dostert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

same issue

0 votes
Jeremy W Walker
Contributor
November 2, 2015

I was able to place a ticket with Atlassian Support and they supplied me a work around AMI that has corrected the issue.

0 votes
InterProse Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

We are having the same issue as everyone else. No changes were made by us. It was working yesterday.

0 votes
Jerry Henley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

We are seeing the same also. Just started this morning (11/2).

0 votes
Hans van den Bogert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

Seems sudo uses java7 and the bamboo agent needs java 8

0 votes
Jeremy W Walker
Contributor
November 2, 2015

We began seeing it starting this morning. We have made no changes to configuration on our side. Is this reflective of your experience as well?

0 votes
ishmael_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 2, 2015

I'm seeing that same error, in our instances also

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events