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

Login fails on windows #106

Closed
myakeen opened this issue Nov 2, 2020 · 4 comments
Closed

Login fails on windows #106

myakeen opened this issue Nov 2, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@myakeen
Copy link

myakeen commented Nov 2, 2020

Currently experiencing issues on aws-actions/amazon-ecr-login@v1. via a build script using aws-actions/configure-aws-credentials@v1. The build was perfect as of 3 days ago. The error is:

 Error: Could not login: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: The stub received bad data.

The virtual env info is

2020-11-02T15:08:23.2642617Z Microsoft Windows Server 2019
2020-11-02T15:08:23.2642970Z 10.0.17763
2020-11-02T15:08:23.2643321Z Datacenter
2020-11-02T15:08:23.2643642Z ##[endgroup]
2020-11-02T15:08:23.2644020Z ##[group]Virtual Environment
2020-11-02T15:08:23.2644535Z Environment: windows-2019
2020-11-02T15:08:23.2644904Z Version: 20201021.0

This wasn't happening as of 3 days ago and I believe this may be a related issue. Still haven't found any work around yet.

@allisaurus allisaurus added the bug Something isn't working label Nov 5, 2020
@bulebuk
Copy link

bulebuk commented Nov 12, 2020

Here's my temporary workaround:

      - name: Alternative Amazon ECR Login
        id: login-ecr
        run: |
          echo '{"auths": {"https://index.docker.io/v1/": {}}, "HttpHeaders": { "User-Agent": "Docker-Client/19.03.12 (windows)"}}' > ~/.docker/config.json
          aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 1234567890.dkr.ecr.us-east-1.amazonaws.com

@feinoujc
Copy link

I'm thinking the root issue may be docker/docker-credential-helpers#190

@CSG-richard
Copy link

Any updates on this issue?

@Vlaaaaaaad
Copy link

Funnily enough, this action works for me, while docker/login-action fails: docker/login-action#125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants