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

401 error from docker.io #47

Open
stephengold opened this issue Sep 27, 2024 · 1 comment
Open

401 error from docker.io #47

stephengold opened this issue Sep 27, 2024 · 1 comment

Comments

@stephengold
Copy link

I've been using not-grep for years, and I think it's great.

This authorization failure started occurring today:


2024-09-27T21:01:57.4305191Z ##[group]Build container for action use: '/home/runner/work/_actions/mattsb42/not-grep/master/Dockerfile'.
2024-09-27T21:01:57.4549904Z ##[command]/usr/bin/docker build -t 61aaf0:b7c7bf63647f4139a970018cb8354ba0 -f "/home/runner/work/_actions/mattsb42/not-grep/master/Dockerfile" "/home/runner/work/_actions/mattsb42/not-grep/master"
2024-09-27T21:01:57.9902630Z #0 building with "default" instance using docker driver
2024-09-27T21:01:57.9903123Z 
2024-09-27T21:01:57.9904012Z #1 [internal] load build definition from Dockerfile
2024-09-27T21:01:57.9905154Z #1 transferring dockerfile: 212B done
2024-09-27T21:01:57.9905959Z #1 DONE 0.0s
2024-09-27T21:01:57.9906271Z 
2024-09-27T21:01:57.9906715Z #2 [internal] load metadata for docker.io/library/python:3-slim
2024-09-27T21:01:58.2443030Z #2 ...
2024-09-27T21:01:58.2443703Z 
2024-09-27T21:01:58.2444091Z #3 [auth] library/python:pull token for registry-1.docker.io
2024-09-27T21:01:58.2445011Z #3 DONE 0.0s
2024-09-27T21:01:58.3944966Z 
2024-09-27T21:01:58.3946021Z #2 [internal] load metadata for docker.io/library/python:3-slim
2024-09-27T21:01:58.6625037Z #2 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:01:58.6764130Z ------
2024-09-27T21:01:58.6764940Z  > [internal] load metadata for docker.io/library/python:3-slim:
2024-09-27T21:01:58.6765829Z ------
2024-09-27T21:01:58.6778391Z Dockerfile:1
2024-09-27T21:01:58.6779161Z --------------------
2024-09-27T21:01:58.6779618Z    1 | >>> FROM python:3-slim
2024-09-27T21:01:58.6780116Z    2 |     ADD . /app
2024-09-27T21:01:58.6780551Z    3 |     WORKDIR /app
2024-09-27T21:01:58.6780965Z --------------------
2024-09-27T21:01:58.6783452Z ERROR: failed to solve: python:3-slim: failed to resolve source metadata for docker.io/library/python:3-slim: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:01:58.6836421Z ##[warning]Docker build failed with exit code 1, back off 4.015 seconds before retry.
2024-09-27T21:02:02.6999398Z ##[command]/usr/bin/docker build -t 61aaf0:b7c7bf63647f4139a970018cb8354ba0 -f "/home/runner/work/_actions/mattsb42/not-grep/master/Dockerfile" "/home/runner/work/_actions/mattsb42/not-grep/master"
2024-09-27T21:02:03.2284784Z #0 building with "default" instance using docker driver
2024-09-27T21:02:03.2285630Z 
2024-09-27T21:02:03.2286033Z #1 [internal] load build definition from Dockerfile
2024-09-27T21:02:03.2287031Z #1 transferring dockerfile: 212B done
2024-09-27T21:02:03.2287748Z #1 DONE 0.0s
2024-09-27T21:02:03.2288057Z 
2024-09-27T21:02:03.2288498Z #2 [auth] library/python:pull token for registry-1.docker.io
2024-09-27T21:02:03.2289630Z #2 DONE 0.0s
2024-09-27T21:02:03.2289902Z 
2024-09-27T21:02:03.5552519Z #3 [internal] load metadata for docker.io/library/python:3-slim
2024-09-27T21:02:03.5554596Z #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:02:03.5646525Z ------
2024-09-27T21:02:03.5647274Z  > [internal] load metadata for docker.io/library/python:3-slim:
2024-09-27T21:02:03.5648024Z ------
2024-09-27T21:02:03.5659152Z Dockerfile:1
2024-09-27T21:02:03.5659604Z --------------------
2024-09-27T21:02:03.5660254Z    1 | >>> FROM python:3-slim
2024-09-27T21:02:03.5660726Z    2 |     ADD . /app
2024-09-27T21:02:03.5661151Z    3 |     WORKDIR /app
2024-09-27T21:02:03.5661700Z --------------------
2024-09-27T21:02:03.5664536Z ERROR: failed to solve: python:3-slim: failed to resolve source metadata for docker.io/library/python:3-slim: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:02:03.5693176Z ##[warning]Docker build failed with exit code 1, back off 5.611 seconds before retry.
2024-09-27T21:02:09.1809882Z ##[command]/usr/bin/docker build -t 61aaf0:b7c7bf63647f4139a970018cb8354ba0 -f "/home/runner/work/_actions/mattsb42/not-grep/master/Dockerfile" "/home/runner/work/_actions/mattsb42/not-grep/master"
2024-09-27T21:02:09.3033938Z #0 building with "default" instance using docker driver
2024-09-27T21:02:09.3034535Z 
2024-09-27T21:02:09.3034804Z #1 [internal] load build definition from Dockerfile
2024-09-27T21:02:09.4621915Z #1 transferring dockerfile: 212B done
2024-09-27T21:02:09.4622645Z #1 DONE 0.0s
2024-09-27T21:02:09.4622913Z 
2024-09-27T21:02:09.4623294Z #2 [auth] library/python:pull token for registry-1.docker.io
2024-09-27T21:02:09.4624099Z #2 DONE 0.0s
2024-09-27T21:02:09.4624365Z 
2024-09-27T21:02:09.4624748Z #3 [internal] load metadata for docker.io/library/python:3-slim
2024-09-27T21:02:09.7956488Z #3 ERROR: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:02:09.8075728Z ------
2024-09-27T21:02:09.8076438Z  > [internal] load metadata for docker.io/library/python:3-slim:
2024-09-27T21:02:09.8077257Z ------
2024-09-27T21:02:09.8089390Z Dockerfile:1
2024-09-27T21:02:09.8089842Z --------------------
2024-09-27T21:02:09.8095166Z    1 | >>> FROM python:3-slim
2024-09-27T21:02:09.8095686Z    2 |     ADD . /app
2024-09-27T21:02:09.8096144Z    3 |     WORKDIR /app
2024-09-27T21:02:09.8096582Z --------------------
2024-09-27T21:02:09.8099253Z ERROR: failed to solve: python:3-slim: failed to resolve source metadata for docker.io/library/python:3-slim: failed to authorize: failed to fetch oauth token: unexpected status from GET request to https://auth.docker.io/token?scope=repository%3Alibrary%2Fpython%3Apull&service=registry.docker.io: 401 Unauthorized
2024-09-27T21:02:09.8125825Z ##[endgroup]
2024-09-27T21:02:09.8209461Z ##[error]Docker build failed with exit code 1
2024-09-27T21:02:09.8420782Z Cleaning up orphan processes
@stephengold
Copy link
Author

The trouble stopped happening after a few hours. I think it was a transient.

Feel free to close the issue if it's not of interest.

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

No branches or pull requests

1 participant