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

AWS Spot instance create failed with Invalid BASE64 encoding of user data

Hey, Atlassian Team

We starting to hit Spot Instance create failure with Invalid BASE64 encoding of user data since 2AM Nov 5th 2019 GMT time. 
We are using Bamboo 6.7.2 build 60706. 

We were hitting random issue like this before, maybe 2 out of 100 times, but we worked around it by store most of the userdata into S3 bucket. 

Since this morning, when we enable Spot Instance Support in Bamboo, we will start hit this error 100% time. This feels like some AWS side change. Do you have any suggestion? 


We noticed this JIRA


This JIRA is saying deliver a fix in Bamboo 6.9.


Will update to 6.9 gives back the ability to use Spot Agent for bamboo? 





Errors logs

System Error Details
Elastic Bamboo Error : EC2 Instance failed to start: EC2 instance order for image ami-XXXXXXX failed.
( : Invalid BASE64 encoding of user data (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterValue; Request ID: ab6ad633-d10d-4a79-a725-e9e5c2049af1))

Occurred: 05 Nov 2019, 6:54:33 AM Invalid BASE64 encoding of user data (Service: AmazonEC2; Status Code: 400; Error Code: InvalidParameterValue; Request ID: ab6ad633-d10d-4a79-a725-e9e5c2049af1)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(
at com.amazonaws.http.AmazonHttpClient.execute(
at sun.reflect.GeneratedMethodAccessor3136.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.proxy.$Proxy1639.requestSpotInstances(Unknown Source)
at java.util.concurrent.Executors$
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Nov 5, 2019 6:54:33 AM Requested that new elastic instance be created for configuration: Quick Test / ami-XXXXXXX
Nov 5, 2019 6:54:33 AM Detected that a pending instance request for image [Quick Test], ami: ami-XXXXXXX has been abandoned.




1 answer

1 accepted

2 votes
Answer accepted

Hi @Lei P

I saw you opened a ticket with our support team for this issue and it was already resolved.
I'm adding the findings here in case other users face the same issue.


This problem may happen eventually. The issue is caused by the following bug which was fixed in Bamboo 6.9.0:


Upgrade the Bamboo instance to 6.9.0 or any newer version.

Suggest an answer

Log in or Sign up to answer
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...

57 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