Build Plan Never Runs


EDITED:  Updated after more research.


Build was working fine on Aug 27th.  Got the Elastic Bamboo Error shown below on the 31st.  

Since then, the elastic instance starts but the build never runs.  From the log on the "Manage Elastic Instances" page:


Sep 4, 2015 3:16:11 PM Currently there are no agents that can build: MV-MB-JOB1. New elastic instance(s) will be started (providing the configuration allows it).
Sep 4, 2015 3:16:12 PM 1 elastic instance(s) will be started for those builds that cannot be build on currently connected agents.
Sep 4, 2015 3:16:13 PM Requested that new elastic instance be created for configuration: Windows Bamboo Agent / ami-abc2a1ce
Sep 4, 2015 3:16:13 PM Spot Instance request [sir-02e83hjk] has been placed.
Sep 4, 2015 3:18:55 PM Elastic instance [i-905d9333] transitioned from BIDDING to IDENTIFIED.
Sep 4, 2015 3:19:35 PM Elastic instance [i-905d9333] transitioned from IDENTIFIED to RUNNING.
Sep 4, 2015 3:25:24 PM An elastic agent is loading on instance: [i-905d9333]


The image is for a windows instance.  The agent is the Default Windows Agent.  

The JDK  in the config is 1.6.0. 


Thanks in advance for your assistance.


Elastic Bamboo Error : Failed on updating stock images ami-963b56fe,ami-963b56fe; expected 0 or 1 stock images for windows - x86_64 - EBS on region US_EAST_1. 

(java.lang.IllegalArgumentException : Failed on updating stock images ami-963b56fe,ami-963b56fe; expected 0 or 1 stock images for windows - x86_64 - EBS on region US_EAST_1. )


java.lang.IllegalArgumentException: Failed on updating stock images ami-963b56fe,ami-963b56fe; expected 0 or 1 stock images for windows - x86_64 - EBS on region US_EAST_1. 
	at com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationManagerImpl.updateOrCreateImageData(
	at com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationManagerImpl.updateDefaultElasticImageConfiguration(
	at com.atlassian.bamboo.container.BambooContainer.start(
	at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(
	at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(
	at org.apache.catalina.core.StandardContext.listenerStart(
	at org.apache.catalina.core.StandardContext.start(
	at org.apache.catalina.core.ContainerBase.addChildInternal(
	at org.apache.catalina.core.ContainerBase.addChild(
	at org.apache.catalina.core.StandardHost.addChild(
	at org.apache.catalina.startup.HostConfig.deployDescriptor(
	at org.apache.catalina.startup.HostConfig.deployDescriptors(
	at org.apache.catalina.startup.HostConfig.deployApps(
	at org.apache.catalina.startup.HostConfig.start(
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
	at org.apache.catalina.core.ContainerBase.start(
	at org.apache.catalina.core.StandardHost.start(
	at org.apache.catalina.core.ContainerBase.start(
	at org.apache.catalina.core.StandardEngine.start(
	at org.apache.catalina.core.StandardService.start(
	at org.apache.catalina.core.StandardServer.start(
	at org.apache.catalina.startup.Catalina.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.catalina.startup.Bootstrap.start(
	at org.apache.catalina.startup.Bootstrap.main(

2 answers

1 accepted

0 votes
Accepted answer

Hi, Bill.

Your instances are using JDK 1.6 only? 

Due to a recent update, the agents in the instances require JDK8 and JAVA_HOME correctly set to this installation, otherwise they won't start and the builds won't run. This is the bug report:

Installing JDK8 and setting the variable should fix it.

Kind regards,
Jaime Kirch da Silveira
Atlassian Cloud Support

Hi - I thought that might be the case. I've installed JDK 8 and was just looking at what variables need to be set to pick up the new version. Thanks!

Apologies if this is obvious, but how do we install JDK8 and set the environment variable for this AMI (ami-963b56fe), given that it's an Atlassian-owned image? Or is there an alternative, working image we can switch to instead? Thanks!

Look under Bamboo Administration - Image Configurations. There is a Windows Stock Image and a Windows Bamboo Agent. The image you have referenced is the Stock Image. I see 3 versions of the Stock Image on my Config page. Two are disabled. The most recent has JDK8 installed. The only way that I see to tell them apart is to click on the Capabilities link. The Bamboo Agent, for us, is a server that we set up. I needed to install JDK8 on that server. You need to launch the EC2 image, remote into the machine, install JDK8 (from the oracle site), and then set JAVA_HOME. It's a Windows ENV Variable. Right click Computer - Properties - Advanced Settings - Environment Variables. Before terminating that instance, create a new image and then update the Bamboo Agent settings to point to the new instance.

Hi, Bill. So, did that fix the problem? If so, could you mark that this answer as correct? This way other users will know. Hi, Andy. When you say that it's an 'Atlassian-owned image', do you mean that this is a stock image? If so, you should not be affected by this problem, because all stock images were modified to use JDK8. If you're using a customized image, even if it was customized from a stock image, you should do as Bill said, install and change the variable. If it's not a Windows instance, you'll need to change some file to have the variable be set system-wide to the right place.

Hi Jaime, Just completed the configuration and testing this morning. I have marked the answer as correct. Thanks, Bill

Thanks for the help Bill, I'll give that a go. It just seems a shame that Atlassian's changes break their system and it's up to the user to fix it - to me it seems like Atlassian should at least provide a base working stock image.

I had to enable the most recent stock image which had JDK8 installled.


image2015-9-8 9:33:52.png


Then I had to update our Windows Bamboo Agent by installing JDK8 and setting the JAVA_HOME ENV variable to point to the new JDK.  Save the image.  Edit the Bamboo Agent and plug in the new AMI ID.

image2015-9-8 9:56:11.png


This did fix the issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

588 views 2 6
View question

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you