Replies: 4 comments 9 replies
-
Thanks for reaching out. Does the issue occur on non-edited files (i.e., exactly what There is a bug in 4.3.1 in combination with health checks (fixed by #16785) but your contianer doesn't seem to use health checks (neither the image). |
Beta Was this translation helpful? Give feedback.
-
Hi Valentin, thanks. Using the generated unit (using |
Beta Was this translation helpful? Give feedback.
-
If that's easy for you, could you describe how these differences explain the different behavior? I'm just curious. Otherwise, I'll dig into the docs and try identify what triggers the chicken & egg scenario I had. |
Beta Was this translation helpful? Give feedback.
-
FWIW, I see exactly the same symptoms on debian bookworm, podman 4.3.1, cgroups v2 with crun, and systemd user services. Not expecting any action from upstream but I thought I'd note some things for anyone else experiencing the same. I'm using units generated for pods as Behaviour is that system shutdown sometimes hangs indefinitely, or more often hangs for an extended period until a lot of podman processes are sent SIGKILL by systemd. The extended hang (although not 100% same behaviour) can be triggered with On shutdown, the error # cat /etc/systemd/system/[email protected]/keep_logind.conf
[Unit]
After=systemd-logind.service (Recommend also adding I don't know if this dependency breaks anything else, but seems unlikely as this is a race condition otherwise (systemd-logind will exit on shutdown, could happen before or after any user sessions.) This by itself wasn't enough to fix the observed behaviour. What seems to happen is something like:
Note that the containers seem to have exited fine at step (3), from what I can tell. The problem seems to be that the hanging I've experimented with tips in this discussion, such as changing the dependency to
I also tried setting the libpod scope KillMode to none as it does seem like the scope is cleaned up very early and I thought maybe something in To reiterate, absolutely don't expect any action or response from upstream about this very vague account of behaviour in an old version. However, I thought this might be halfway useful for someone who has run into the same thing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm on Debian testing, with podman 4.3.1 (with crun, so I use cgroup v2). I have a few (<5) rootless containers owned by my user (linger enabled). The containers start without issues, but during shutdown I always experience the well-known 2 min delay during shutdown. After that delay, the shutdown proceeds.
For instance, here are some of those messages
FYI, I've tried with my units being of
Type=notify
withNotifyAccess=all
, and also withType=forking
. I use the standard template frompodman generate systemd ...
, and I've modified it a bit, but my understanding is that the problem is elsewhere.I've also tried to put the user
dbus.service
in the root slice (it's in the session.slice by default) by overriding the unit, but this had no effect.I'd like to know where my understanding is flawed and how this is supposed to work, so that I can try fixing this issue.
Thanks a ton!
Some details
podman info
One example Unit
Beta Was this translation helpful? Give feedback.
All reactions