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

Docker Credentials Helper Fails after a few hours #1118

Open
mudged opened this issue Jun 12, 2024 · 3 comments
Open

Docker Credentials Helper Fails after a few hours #1118

mudged opened this issue Jun 12, 2024 · 3 comments
Labels

Comments

@mudged
Copy link

mudged commented Jun 12, 2024

What happened?
After a few hours of the DevContainer being up, calls to docker-credentials-devpod return
Error retrieving list credentials: Post "http://localhost:12049/docker-credentials": dial tcp 127.0.0.1:12049: connect: connection refused

This was initially working as expected. The same behaviour has been observed on different DevContainers and the same one (after restart)

What did you expect to happen instead?
Docker credential helper is still able to retrieve credentials

How can we reproduce the bug? (as minimally and precisely as possible)

Start DevContainer using DevPod (ssh provider, IntelliJ IDE, Windows 11 host, multipass Ubuntu VM).

Leave active for 1/2 hours and then run docker-credentials-devpod list.

Local Environment:

  • DevPod Version: 0.5.13
  • Operating System: Windows 11
  • ARCH of the OS: AMD64

DevPod Provider:

  • Cloud Provider: n/a
  • Kubernetes Provider: n/a
  • Local/remote provider: ssh
  • Custom provider: n/a

Anything else we need to know?
Inject docker credentials selected on provider

@pascalbreuninger
Copy link
Member

@mudged thanks for reporting the issue, we'll look into it. Just to confirm, there's no output if you run ps -aux | grep credentials-server but a file lock in $TMPDIR/devpod-credentials.lock?

@mudged
Copy link
Author

mudged commented Jun 13, 2024

The process is no longer alive (only grep is shown)

$ docker-credential-devpod list
Error retrieving list credentials: Post "http://localhost:12049/docker-credentials": dial tcp 127.0.0.1:12049: connect: connection refused
$ ps -aux | grep credentials-server
mtx       111666  0.0  0.0   3324  1556 pts/0    S+   15:13   0:00 grep credentials-server

No lock file

$ cat $TMPDIR/devpod-credentials.lock
cat: /devpod-credentials.lock: No such file or directory

@mudged
Copy link
Author

mudged commented Jun 13, 2024

If I restart the DevContainer, I see the process but no lock file

$ ps -aux | grep credentials-server
root        1040  0.0  0.1 1296652 51596 ?       Sl   15:28   0:00 /usr/local/bin/devpod agent container credentials-server --user mtx --configure-git-helper --configure-docker-helper
mtx        13558  0.0  0.0   3324  1660 pts/0    S+   15:30   0:00 grep credentials-server
$ cat $TMPDIR/devpod-credentials.lock
cat: /devpod-credentials.lock: No such file or directory

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

No branches or pull requests

2 participants