Giter VIP home page Giter VIP logo

Comments (11)

RobinFrcd avatar RobinFrcd commented on June 25, 2024 2

Same issue when running multiple pushes on different actions on the same runner instance.

from amazon-ecr-login.

RobinFrcd avatar RobinFrcd commented on June 25, 2024 1

Nothing really more useful than OP provided sadly :/

The push refers to repository [***.dkr.ecr.eu-west-3.amazonaws.com/***]
00ae2f02e451: Preparing
e9857ac559f9: Preparing
a70a5126b72f: Preparing
4cdb6e4a61: Preparing
d8009a0aa7: Preparing
2421911654: Preparing
435699713645: Preparing
2231911654: Waiting
4b4b8ae407af: Preparing
6e8b10052d: Preparing
435699713645: Waiting
0d7f412381ae: Preparing
954edfb465a4: Preparing
47ad77: Preparing
4b4b8ae407af: Waiting
no basic auth credentials
Error: Process completed with exit code 1.

But I can easily reproduce it.

  1. Install 2 runners on the same server
  2. Run 2 CIs at the same time that will both try to push an image to ECR

from amazon-ecr-login.

rahul799 avatar rahul799 commented on June 25, 2024

Facing the same issue too.

from amazon-ecr-login.

arjraman avatar arjraman commented on June 25, 2024

Could you paste the exact error from your logs here, covering any sensitive information?

from amazon-ecr-login.

arjraman avatar arjraman commented on June 25, 2024

Could it be any of the issues mentioned here: https://docs.aws.amazon.com/AmazonECR/latest/userguide/common-errors-docker.html#error-403?

from amazon-ecr-login.

RobinFrcd avatar RobinFrcd commented on June 25, 2024

Pretty sure it's not:

  • You have authenticated to a different region: Always using the same region, eu-west-3
  • You have authenticated to push to a repository you don't have permissions for: If I retry a few seconds later, it works so the runner has the right permission
  • Your token has expired: I always do the ecr login before trying to push, so no
  • Bug in wincred credential manager: The runner is on Linux

from amazon-ecr-login.

davi020 avatar davi020 commented on June 25, 2024

Got the same error for me in our GitHub self-hosted server having 3 runners in the same server. Can someone help? There is no issue with authentication creds with AWS.
My setup is using assume_role.

from amazon-ecr-login.

nerdeveloper avatar nerdeveloper commented on June 25, 2024

@RobinFrcd what was your workaround concerning this issue

from amazon-ecr-login.

RobinFrcd avatar RobinFrcd commented on June 25, 2024

@nerdeveloper To have the 2 runners on 2 different instances ...

from amazon-ecr-login.

nerdeveloper avatar nerdeveloper commented on June 25, 2024

OMG! I just knew it. but I thought you'd be able to make it work without having to do that. The solution to this is to increase costs.

@arjraman, any time to fix this issue

from amazon-ecr-login.

nerdeveloper avatar nerdeveloper commented on June 25, 2024

This is my workaround. I used the native docker login; you can use this if you choose to have multiple runners in one VM pending when this issue is fixed.

      - name: Login into ECR 
        run: echo ::set-output name=logged-in::$(aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin [private ECR repo URL])

from amazon-ecr-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.