AWS CLI calls broken during change from 2.169.1 to 2.262.1
See original GitHub issueDescribe the bug To preface, I know this seems like an AWS bug, but the issue has only occurred when GitHub Actions upgraded its runner version, while the AWS CLI version has stayed the same. The only thing that I have been able to find different between passing and failing runs was the runner version.
Calls to the AWS CLI (namely s3 sync
, installed in a GitHub Action in ubuntu-latest
(currently 18.04) previously worked with the runner version 2.169.1
, but fail with the error code 255
beginning in version 2.262.1
.
When reproducing the steps one by one in a EC2 instance, the process works as it did previously in GitHub Actions without any errors.
Please see the following actions for examples: https://github.com/NateSeymour/studymandar.in/blob/master/.github/workflows/deploy.yml https://github.com/Simonwep/intl-demo/blob/master/.github/workflows/deploy.yml
To Reproduce Steps to reproduce the behavior:
- Use a call to the AWS CLI inside of a GitHub Action
- Error will appear in the Action with a status of 255
Expected behavior The calls to the AWS CLI should perform as normally, just like they do in a EC2 VM running the same OS.
Runner Version and Platform
Version of your runner? 2.262.1
OS of the machine running the runner? GitHub Actions
What’s not working?
The AWS s3 sync
command fails with:
<botocore.awsrequest.AWSRequest object at 0x7f34780fd390>
134
##[error]Process completed with exit code 255.
Job Log Output
Current runner version: '2.262.1'
Operating System
Ubuntu
18.04.4
LTS
Virtual Environment
Environment: ubuntu-18.04
Version: 20200518.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200518.1/images/linux/Ubuntu1804-README.md
Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@v2'
Download action repository 'actions/setup-node@v1'
Runner and Worker’s Diagnostic Logs
More relevant information can be found here:
Passing Runs: https://github.com/Simonwep/intl-demo/runs/531009403?check_suite_focus=true
Failing runs: https://github.com/NateSeymour/studymandar.in/runs/703639126?check_suite_focus=true https://github.com/Simonwep/intl-demo/runs/703653450?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top GitHub Comments
I ran the aws cli command with
--debug
on our failing workflow and was able to get the following output:Running on
ubuntu-latest
(20.04.2 LTS) with runner version2.277.1
, we were able to get aws cli s3 uploads to work by setting:as suggested here https://github.com/aws/aws-cli/issues/5262#issuecomment-705832151
Hope that helps
Closing this as it’s not a runner issue and seems to work now.