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

consider a timeout when calling docker-credential-osxkeychain #355

Open
oliverlangan opened this issue Feb 4, 2025 · 0 comments
Open

consider a timeout when calling docker-credential-osxkeychain #355

oliverlangan opened this issue Feb 4, 2025 · 0 comments

Comments

@oliverlangan
Copy link

I had a (probably) very obscure issue, which took down my entire development environment and was difficult to track down. This is specific to macos and docker-credential-osxkeychain

Symptoms:

  • I could not pull any docker containers
    • it would show 'Pulling ...' with a timer, but then just sit there
    • I waited more than 30 minutes to see if anything would eventually resolve itself
  • my VS Code extensions could not make any network calls—resulting in a hang on load unless all were disabled

Factors:

  • I had some keychains loaded connected to Keychain Access
    • I later learned these could be displayed with security list-keychains
  • those keychains were on a "Box Drive" volume
  • Box was somehow broken, but it was not obvious. the folders opened and displayed files
    • critically, the files could not be opened or synced from the cloud

I eventually realized that docker pull and other commands would reach out to docker-credential-osxkeychain and just hang. Looking at that process in Activity Monitor showed that it was trying to access one of the files on the Box drive. At that point, I realized that nothing could be loaded from the Box drive.

I worked around the issue by uninstalling Box completely, but I believe one could also use security list-keychains -s ... to rewrite the keychain search paths.

Ultimately, however, it seems as though docker-credential-osxkeychain should have some sort of timeout.

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