You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm experiencing intermittent errors when attempting to log in to Docker on GitHub Enterprise using a self-hosted runner.
The error resembles the one discussed in this issue.
I am trying to log in to Harbor, but there are no error traces in the Harbor logs corresponding to these login attempts.
When login information is incorrect, I expect an unauthorized error, but instead, I receive an error message saying "Docker login for [harbor url] failed with exit code 1".
I suspect the problem might be related to the runner. Notably, the workflow works correctly if I re-run the failed job.
To Reproduce
Steps to reproduce the behavior:
Go to the job configuration.
Run the GitHub Actions workflow.
Observe the error.
Re-run the failed workflow.
Observe that it runs successfully the second time.
Expected behavior
This docker login should succeed every time without exception
Runner Version and Platform
Version of your runner? 2.311.0
OS of the machine running the runner? Amazon Linux 2
What's not working?
The intermittent error occurs during the Docker login command to Harbor. The specific error is:
Docker login for [harbor url] failed with exit code 1
Can confirm that the same error is happening with ECR as well:
Checking docker version
Clean up resources from previous jobs
Create local container network
Starting job container
/usr/local/bin/docker --config /runner/_work/_temp/.docker_23e[8](https://github.com/***/***/actions/runs/9921460081/job/27410175185#step:3:9)bb56-03f0-455f-ad36-3bb699f691cc login ***.dkr.ecr.us-east-1.amazonaws.com -u *** --password-stdin
Warning: Docker login for '0[15](https://github.com/***/***/actions/runs/9921460081/job/27410175185#step:3:18)551053535.dkr.ecr.us-east-1.amazonaws.com' failed with exit code 1, back off 2.521 seconds before retry.
/usr/local/bin/docker --config /runner/_work/_temp/.docker_23e8bb56-03f0-455f-ad36-3bb699f691cc login ***.dkr.ecr.us-east-1.amazonaws.com -u *** --password-stdin
Warning: Docker login for '***.dkr.ecr.us-east-1.amazonaws.com' failed with exit code 1, back off 3.036 seconds before retry.
/usr/local/bin/docker --config /runner/_work/_temp/.docker_23e8bb56-03f0-455f-ad36-3bb699f691cc login ***.dkr.ecr.us-east-1.amazonaws.com -u *** --password-stdin
Error: Docker login for '***.dkr.ecr.us-east-1.amazonaws.com' failed with exit code 1
This I have tested and tried so far:
Refreshed credentials for ECR, updated the secrets
Made sure that the secrets and development environment are intact
Describe the bug
I'm experiencing intermittent errors when attempting to log in to Docker on GitHub Enterprise using a self-hosted runner.
The error resembles the one discussed in this issue.
I am trying to log in to Harbor, but there are no error traces in the Harbor logs corresponding to these login attempts.
When login information is incorrect, I expect an unauthorized error, but instead, I receive an error message saying "Docker login for [harbor url] failed with exit code 1".
I suspect the problem might be related to the runner. Notably, the workflow works correctly if I re-run the failed job.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This docker login should succeed every time without exception
Runner Version and Platform
Version of your runner? 2.311.0
OS of the machine running the runner? Amazon Linux 2
What's not working?
The intermittent error occurs during the Docker login command to Harbor. The specific error is:
Docker login for [harbor url] failed with exit code 1
The workflow works correctly when re-run.
The text was updated successfully, but these errors were encountered: