Stock windows image Elastic Agent stuck as 'Pending'

We are currently trialling Bamboo On Demand. Initially, we were able to create a stock windows instance and have an elastic agent run on it.

In the past couple of days, when creating an instance from the 'stock windows instance' image, the elastic agent stays as 'Pending' until the instance eventually terminates itself.

Out of curiosity I started up a stock Ubuntu image and that works fine.

Searching for similar problems has only yielded troubleshooting for custom images... this is happening from the stock windows image.

Any idea what I can do to troubleshoot... or any idea why this is happening?


2 answers

1 accepted

2 votes
Accepted answer

It's a fault in Bamboo's default Windows AMI creation.


I've provided a solution here:

Thanks very much. We ended up moving on from Bamboo due to this issue. It looks like a fine product but we have moved on to appveyor and aren't looking back. Cheers

Good to know :)

I'd check AWS EC2 console. If you are using spot requests your bid might be too low and not succeed. Or AWS might be out of Windows based spot instances (generally happens when available Windows license numbers are capped during some rush hours), which means you will have to increase the bid to the amount of OnDemand usage. I recommend checking EC2 console for the AMI of Windows stock image Bamboo uses and launch that same image directly in EC2.

Thanks for your reply. We aren't using spot requests but thanks for thinking about that. I am able to launch the stock AMI directly in EC2. It only shows up as a 'disconnected instance' in Bamboo. As far as comparing the instances side-by-side in EC2, they look the same. I have noticed that when the Bamboo launched instance is running and the agent is pending... RDP into the instance, navigate to the bamboo-elastic-agent directory and try and launch it manually via the .bat script... I get errors about file paths. Manually executing the elastic agent .jar file in the same directory actually 'resolves' the pending status in Bamboo. When I try to run a build however, the build throws errors about trying to find paths within the build directory. When further investigated, the build wasn't copying files into the C:\build\ directory. All that has really told me is that manually executing the .jar file isn't a work around. Is there a way I can try and manually start the elastic agent on the stock instance?

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

475 views 2 5
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