-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman socket stuck in 4.5.1 #18862
Comments
Thanks for reaching out, @p-fruck. Can you share the compose file you used to reproduce the issue? |
Also if the service hangs again can you |
I was able to reproduce the behaviour with this minimal compose file: version: "3"
services:
web:
image: nginx:alpine Commands used: systemctl --user restart podman
docker-compose up -d
# wait >5 seconds
docker-compose down Running
The entire service is actually being shut down after a short time of inactivity, so I am not able to execute the kill command as the process is already stopped |
I've seen this issue with socket activation on systemd 253.5-1 (Arch) I use rootless podman via socket, using systemd as such: Downgrading systemd to 253.4-1 fixes the issue. Running |
FWIW, I am unable to reproduce with |
This systemd version also seems be causing problems with libvirtd socket-activation, looks like there is a PR with a fix out already systemd/systemd#27953 |
This can't be done because podman service PID is stopped: > systemctl --user status podman.service
[...]
Process: 135690 ExecStart=/usr/bin/podman $LOGGING system service (code=exited, status=0/SUCCESS)
Main PID: 135690 (code=exited, status=0/SUCCESS)
[...] This also resurrect the service: podman stop $(podman ps -aq) Some live stuff. The button I click on vscode is actually using Grabacion.de.pantalla.desde.2023-06-19.12-45-33.webm.mp4 |
I encountered the same problem with testcontainers: if the test running takes more time than the podman system service timeout when it tries to reconnect to it everything is completely stuck. Even pinging with curl the socket hangs indefinitely. Luckily the fix that @julioln mentioned is already being backported to Arch https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/commit/997fc66a38dfcc25363534b94bae1b427b6a9c0e I installed systemd and systemd-libs 253.5-2 from the testing repo and everything started working again! If you're on Arch too or can compile systemd from source I would highly suggest trying if the patch fixes your cases too. |
If this is a systemd bug then there is nothing we can do here, as @julioln and @vrothberg pointed out you can run the service manually without systemd to work around that for the time being: |
I can confirm the issue is gone with systemd 253.5-2 |
Issue Description
Since running Podman version
4.5.1
I am facing an issue where the podman socket just randomly stops responding todocker-compose
and has to be restartedSteps to reproduce the issue
Steps to reproduce the issue
export DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/podman/podman.sock
docker-compose <up|down>
a couple of timesDescribe the results you received
The command just hangs and doesn't return any output
Describe the results you expected
Compose working as expected
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Docker Compose version v2.17.2
Additional information
No response
The text was updated successfully, but these errors were encountered: