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

buildkit not propagating unauthorized error message #2938

Open
nicks opened this issue Jun 29, 2022 · 2 comments
Open

buildkit not propagating unauthorized error message #2938

nicks opened this issue Jun 29, 2022 · 2 comments

Comments

@nicks
Copy link
Contributor

nicks commented Jun 29, 2022

Filing this on behalf of a user.

They store their images inside a VPN. When they pull, the error message tells them to connect to the VPN:

docker pull XXXXX/XXXXX/baseplate-py:2-py3.9-bullseye-dev
Error response from daemon: unauthorized: Please connect to the VPN.

But when they build, the error message about the VPN does not appear:

 docker build .
[+] Building 0.2s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 1.89kB                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 364B                                                                                                                                      0.0s
 => [internal] load metadata for XXXXX/XXXXX/baseplate-py:2-py3.9-buster-dev                                                 0.0s
 => CANCELED [internal] load metadata for XXXXX/XXXXX/node:14-dev                                                            0.1s
 => ERROR [internal] load metadata for XXXXX/XXXXX/baseplate-py:2-py3.9-buster                                               0.1s
------
 > [internal] load metadata for XXXXX/XXXXX/baseplate-py:2-py3.9-buster:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 2-py3.9-buster]: 401 Unauthorized

Expected Behavior

I would expect the buildkit error message to also echo the "Please connect to the VPN." message.

Any ideas where this might be getting dropped? I tried to read through the auth error handling but got a little lost. This also might be a problem with an upstream component.

@thaJeztah
Copy link
Member

thaJeztah commented Jun 29, 2022

I think this may be related to containerd/containerd#4672 (and further discussion on containerd/containerd#4674)

@nicks
Copy link
Contributor Author

nicks commented Jun 29, 2022

yes, that definitely looks plausible!

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

2 participants