Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login to ECR for container image since last night #10648

Open
3 of 13 tasks
FredericEgmorte opened this issue Sep 19, 2024 · 1 comment
Open
3 of 13 tasks

Unable to login to ECR for container image since last night #10648

FredericEgmorte opened this issue Sep 19, 2024 · 1 comment

Comments

@FredericEgmorte
Copy link

Description

We are unable to pull container image from ECR with credentials during the initialize container step

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Runner Image
Image: ubuntu-20.04
Version: 20240915.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20240[9](https://github.com/tudigo-tech/tudigo-api/actions/runs/10938156540/job/30365611067#step:1:10)15.1/images/ubuntu/Ubuntu2004-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20240915.1

Or with this one
Runner Image
Image: ubuntu-22.04
Version: 20240915.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240[9](https://github.com/tudigo-tech/tudigo-api/actions/runs/10936558159/job/30360449854#step:1:10)15.1/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240915.1

Is it regression?

no

Expected behavior

We log in ECR and the container image is pulled during the "Initialize container"

Actual behavior

We get this log

/usr/bin/docker --config /home/runner/work/_temp/.docker_16415668-888d-4830-b07b-840a20743dc0 login 905418340137.dkr.ecr.eu-west-3.amazonaws.com -u AWS --password-stdin
  Warning: Docker login for '905418340137.dkr.ecr.eu-west-3.amazonaws.com' failed with exit code 1, back off 4.035 seconds before retry.
  /usr/bin/docker --config /home/runner/work/_temp/.docker_[16](https://github.com/tudigo-tech/tudigo-api/actions/runs/10938156540/job/30365611067#step:2:19)415668-888d-4830-b07b-840a20743dc0 login 905418340137.dkr.ecr.eu-west-3.amazonaws.com -u AWS --password-stdin
  Warning: Docker login for '905418340137.dkr.ecr.eu-west-3.amazonaws.com' failed with exit code 1, back off 8.616 seconds before retry.
  /usr/bin/docker --config /home/runner/work/_temp/.docker_16415668-888d-4830-b07b-840a20743dc0 login 9054[18](https://github.com/org/repo/actions/runs/10938156540/job/30365611067#step:2:21)340137.dkr.ecr.eu-west-3.amazonaws.com -u AWS --password-stdin
  Error: Docker login for '905418340137.dkr.ecr.eu-west-3.amazonaws.com' failed with exit code 1

Repro steps

Set up a workflow as follow
The configuration of the workflow:

jobs:
  destroy:
    runs-on: ubuntu-latest
    container:
      image: 905418340137.dkr.ecr.eu-west-3.amazonaws.com/gh-runner:latest
      credentials:
          username: AWS
          password: ${{ secrets.AWS_ECR_PW }}
    steps:
.....

The secret is correctly set up and rotated regularly.

I succeeded last night and this morning, I have this error.
I tried on both ubuntu-latest and ubuntu-20.04

@kishorekumar-anchala
Copy link
Contributor

Hi @FredericEgmorte ,

Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@vidyasagarnimmagaddi @FredericEgmorte @kishorekumar-anchala and others