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

Load metadata hangs infinitely #12399

Closed
2 of 3 tasks
speller opened this issue Nov 24, 2021 · 7 comments
Closed
2 of 3 tasks

Load metadata hangs infinitely #12399

speller opened this issue Nov 24, 2021 · 7 comments

Comments

@speller
Copy link

speller commented Nov 24, 2021

My Docker Desktop just stopped building anything and hanging infinitely on pulling metadata:

[+] Building 1610.3s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                                                                                             0.1s
 => => transferring dockerfile: 38B                                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                                0.1s
 => => transferring context: 34B                                                                                                                 0.0s
 => ERROR [internal] load metadata for docker.io/library/node:14.17.4-alpine                                                                  1610.2s
------
 > [internal] load metadata for docker.io/library/node:14.17.4-alpine:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``

This was cancelled by Ctrl+C after 1610 seconds of waiting. Internet is accessible, the index.docker.io domain is accessible.

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: (I don't know how to make and upload diagnostics)

I tried to shutdown WSL but it didn't help.

  • Windows Version: Microsoft Windows [Version 10.0.22000.346]
  • Docker Desktop Version: 4.2.0 (70708)
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No
@speller
Copy link
Author

speller commented Nov 24, 2021

Only system reboot helped

@EricHripko
Copy link

EricHripko commented Nov 26, 2021

Observed something similar after upgrading to 4.2.0. This seems to be caused by ~/.docker/config.json, which points back to Windows for the credential store. If Docker Hub is for any reason inaccessible (e.g., is blocked or proxies are needed to access), docker CLI in WSL hangs for a long time (about 5 minutes) before doing anything. Removing ~/.docker/config.json seemed to fix the issue.

@mattwelke
Copy link

Maybe this is related to #10247? We've been tracking an issue that came up in late 2020/early 2021 where it was a 10 second delay but with it always working once the delay passed. And not helped by a reboot. Sounds like this problem is different, but since they both involve "load metadata" hanging, maybe they share a root cause.

@speller
Copy link
Author

speller commented Dec 2, 2021

The issue happened on my machine again a couple of hours after rebooting the system. None of the operations that require internet connection worked: metadata load, authentication, pull command - were hanging forever. Dockerhub website is accessible:

curl  https://index.docker.io/v2/
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

The removal of the "credsStore": "desktop.exe" config from the ~/.docker/config.json helps.

@DavidBurela
Copy link

Removing ~/.docker/config.json seemed to fix the issue.

Thanks @EricHripko removing that file resolved the issue for me

@docker-robott
Copy link
Collaborator

Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants