Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,877
Community Members
 
Community Events
176
Community Groups

S3 deployment failing in pipelines

I'm trying to run the pipeline using pipe: atlassian/aws-s3-deploy:1.1.0  to deploy to S3.

It was pushing all the files as expected, but the end its giving deployment failed error.

Please can someone throw some light on the issue.

Below is the screenshot of the debug logimage.png

This the was the step in use

 - step:

          name: Deploy to S3

          deployment: uat

          script:

          - pipe: atlassian/aws-s3-deploy:1.1.0

            variables:

              LOCAL_PATH: 'dist/'

              AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID

              ACL: 'bucket-owner-full-control'

              AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY

              AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION

              S3_BUCKET: $S3_BUCKET

              DELETE_FLAG: 'true'

              DEBUG: 'true'

 

1 answer

Hey Sri,

If it's transferring the files then authentication is working and so is uploading to the bucket. Do you see any other error message except "Deployment failed" as that's quite generic?

Hi Ankit,

Thanks for the reply.

As you can see in the screenshot, there was some debug info if it can be any help

 

2022-03-02 11:24:55,741 - Thread-1 - awscli.customizations.s3.results - DEBUG - Shutdown request received in result processing thread, shutting down result thread.
status=1
set -e
[[ 1 -eq 0 ]]
fail 'Deployment failed.

Hi Sri,

This seems like the sync failed with those credentials. You can locally try running the command for sync from here: https://bitbucket.org/atlassian/aws-s3-deploy/src/master/pipe/pipe.sh

It would be able to tell you why the deployment failed.

Issue was resolved.

Basically there was a file with name which has a non-utf8 character and it was causing the issue.

Thank you

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events