-
Notifications
You must be signed in to change notification settings - Fork 387
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
Distrobox enter hangs indefinitely upon restarting image #1382
Comments
Have you tried with podman to see / pinpoint if this is only happening with docker? |
Just docker - tested it with podman 5.0.2 |
Am also experiencing the same hanging. If I interrupt with Ctrl-C, I get the same fifo error. Running |
I got this issue too when I switched from podman to docker, and checking the source code of distrobox-enter I noticed the following:
EDIT: I was close enough, the --since parameter for docker needs a Z at the end .
Test : $docker logs -ft fedora
...
2024-06-18T23:06:20.151478801Z ++ curl -s --unix-socket /run/docker.sock http:https://docker/containers/fedora/json
2024-06-18T23:06:20.151504502Z ++ grep -Eo '"Id":"[a-zA-Z0-9]{64}",'
2024-06-18T23:06:20.151559731Z ++ cut -d '"' -f4
2024-06-18T23:06:20.155200164Z + id=1d02e9db87eebc7d4c6dc0233857aa0279e9e0ecb33e85edf4014d955b96d817
2024-06-18T23:06:20.155209842Z + set +x
$ date -u +%FT%T # as in line 624
2024-06-18T23:07:45
$ docker logs -t --since 2024-06-18T23:06:20 fedora
# nothing
$ date -u +%FT%TZ
2024-06-18T23:10:17Z
$ docker logs -t --since 2024-06-18T23:06:20Z fedora
# returns lines
...
2024-06-18T23:06:20.151559731Z ++ cut -d '"' -f4
2024-06-18T23:06:20.155200164Z + id=1d02e9db87eebc7d4c6dc0233857aa0279e9e0ecb33e85edf4014d955b96d817
2024-06-18T23:06:20.155209842Z + set +x |
Please, before opening a bug:
Describe the bug
When using the command distrobox enter , it hangs. I have a decently powerful laptop and let it run for 30 minutes. Upon ending the process, I am met with this message. This happens everytime I restart the container.
/usr/bin/distrobox-enter: line 680: /home/<user>/.cache/distrobox/.ubuntu-20-04.fifo: No such file or directory
Distrobox is using docker behind the scenes.
To Reproduce
distrobox create -i ubuntu:20.04
distrobox enter ubuntu-20-04
Expected behavior
I'd expect it to not hang. Note that it does work fine if I end the process and enter the image again. Furthermore I believe there should be a fifo file being created under $home/.cache/distrobox? However no matter what I do such as stopping the running image, remaking it, etc. this file does not show up.
Logs
create.txt - first command
enter.txt - second command
Attach also the output of
podman logs
ordocker logs
, possibly with--latest
flagdocker.txt - docker logs
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: