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

Waiter Deployment Successful failed: Max attempts exceeded

Hi,

we are getting the below error with code-deploy pipeline through Bitbucket pipeline,

How can we resolve this, I;ve checked it successfully run in Code-Deploy AWS but failed at bitbucket, it happens with last 2 deployments with the same scenario.

 

Waiter DeploymentSuccessful failed: Max attempts exceeded

ERROR: Deployment failed. Fetching deployment information...

 

bitbucket-pipelines.yml

pipelines:
branches:
master:
- step:
name: AWS CodeDeploy
image: python:3.7.2
script:
- apt-get update
- apt-get install -y zip curl wget
- echo "'"$UT_AWS_REGION"'"
- wget -O - https://$UT_S3_BUCKET.s3.amazonaws.com/replace-env-vars.sh | bash -s prod.env .env UT_
- zip -r s-app.zip .
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $UT_AWS_REGION
AWS_ACCESS_KEY_ID: $UT_CODEDEPLOY_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $UT_CODEDEPLOY_SECRET_ACCESS_KEY
APPLICATION_NAME: $AWS_CODEDEPLOY_APP
S3_BUCKET: $UT_S3_BUCKET
COMMAND: 'upload'
ZIP_FILE: 's-app.zip'
VERSION_LABEL: $BUILD_VERSION
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $UT_AWS_REGION
AWS_ACCESS_KEY_ID: $UT_CODEDEPLOY_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $UT_CODEDEPLOY_SECRET_ACCESS_KEY
APPLICATION_NAME: $AWS_CODEDEPLOY_APP
DEPLOYMENT_GROUP: $AWS_DEPLOYMENT_GROUP
S3_BUCKET: $UT_S3_BUCKET
COMMAND: 'deploy'
WAIT: 'true'
VERSION_LABEL: $BUILD_VERSION
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'

 

1 answer

0 votes

Hi @Noman Ahmed

Thank you for your question!

We are investigating this issue and notify you.

 

Cheers,
Oleksandr Kyrdan

I found that it happens due to maximum instances like I had 4 instances where deployment should run but it failed after third one. now I had to reduce the instances but it is not a solution. hope it will help you investigate the issues.

P.S i don't want to alter the aws/.config file because the its run through autoscalling group on aws. 

Like Oleksandr Kyrdan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

3,782 views 64 20
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