Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

Bamboo build fails at a deploy to AWS task (Remote SCP error)

I have a build in Bamboo that used to run successfully, but now stops at one point:

Failed to upload /usr/share/tomcat7/webapps, Remote SCP command had error: scp: /usr/share/tomcat7/webapps/target/api-1.0.0: set times: Operation not permitted
Copy Failed. Some files were not uploaded successfully.

After getting this error, I immediately git bashed into the AWS server and used the chmod command to grant all the permissions on that folder. I also checked the Bamboo permissions, and those are all good as well.

The SCP task that fails is set up in the following way: The correct AWS IP, username, key without passphrase authentication, Artifact set to "Local files", Local Path set to "**/target/*", and the remote Path set to "/usr/share/tomcat7/webapps"

Again, I have full permissions on "/usr/share/tomcat7/webapps".

Also, since the operation that fails is "set times", I WinSCP'd into the server and I can copy files in there just fine, and I can also use the timestamp prevention function that I read about.

Here's a little more logging from the build:

simple  06-Nov-2020 22:46:27    Uploading 'target/api-1.0.0/WEB-INF/lib/aws-java-sdk-elasticsearch-1.11.26.jar'...
simple  06-Nov-2020 22:46:27    Uploading 'target/api-1.0.0/WEB-INF/lib/spring-web-4.2.5.RELEASE.jar'...
simple  06-Nov-2020 22:46:27    Uploading 'target/api-1.0.0/WEB-INF/lib/aws-java-sdk-storagegateway-1.11.26.jar'...
simple  06-Nov-2020 22:46:27    Uploading 'target/api-1.0.0/WEB-INF/lib/aws-java-sdk-simpleworkflow-1.11.26.jar'...
simple  06-Nov-2020 22:46:27    Uploading 'target/api-1.0.0/WEB-INF/lib/bndlib-1.15.0.jar'...
error   06-Nov-2020 22:46:29    Failed to upload /usr/share/tomcat7/webapps, Remote SCP command had error: scp: /usr/share/tomcat7/webapps/target/api-1.0.0: set times: Operation not permitted
error   06-Nov-2020 22:46:29    Copy Failed. Some files were not uploaded successfully.
simple  06-Nov-2020 22:46:29    Finished task 'Deploy Code to AWS' with result: Error

How can I bypass this error for a successful Bamboo build ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events