-
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
rootless podman container is not stopped properly on host shutdown (hangs) #15284
Comments
Thanks for reaching out, @topas-rec. It looks similar to #14531. Did you configure a restart policy for the container? Cc: @mheon |
Thanks for your quick help! Yes, the container has
|
@topas-rec, thanks! Is the container getting restarted after a manual |
No, it isn't. Stops fast through a systemd manual stop command and stays stopped. After stopping it manually the shutdown is just fast, too. So when the container is stopped the symptom of a hangin shutdown is gone. |
Judging from the logs above it looks like the container gets restarted all the time until the 70 seconds timeout of the units kicks in. |
I find it hard to evaluate, but yeah that might be. |
@topas-rec it would be worth trying if that is the cause - just to eliminate potential sources. Since the container is already running in a systemd unit, I suggest creating the container without a restart policy and use |
Sure. If that is the cause this mechanism ahould be noted in the docs for the |
Absolutely :)
Yes, definitely. Thanks for helping resolving the issue. |
Starting the container without So there should be a hint in the Thanks for helping me! |
Thanks a lot, @topas-rec! I reopen to track that we either document that or elaborate on code improvements. |
A friendly reminder that this issue had no activity for 30 days. |
@vrothberg Any progress on this? |
Thanks for the ping. I opened #15766. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
At shutdown the system hangs for some time and does not shutdown as fast as it normally does.
I have added the container to systemd by using the
generate systemd
command to create a unit file.When I stop the podman container that is running before shutdown, the shutdown does not hang.
Stopping the container manually via
systemctl --user [...]
stops it without problems.Steps to reproduce the issue:
Create a rootless container (nextcloud in my case)
Create a systemd unit file by using the
generate systemd
commandShutdown the system and observe a delay at shutdown
Describe the results you received:
The system hangs for some time and does not shutdown as fast as it normally does because stopping the container doesn't work.
Describe the results you expected:
Properly shutdown container (stopped as fast as when the stop command in systemd is invoked manually) and a fast shutdown wihtout systemd to forcefully stop the container.
Additional information you deem important (e.g. issue happens only occasionally):
The issue happens on every shutdown. (It might not have happen after initial container creation - but I sadly do not remember)
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes (troubleshooting guide, version is mostly up to date)
Additional environment details (AWS, VirtualBox, physical, etc.):
This is the systemd unit file:
I have a filtered and a full journalctl log from an affected boot:
filtered: (created by
journalctl --boot -1 --grep=container\|libpod\|podman\|myNextcloudContainer
)Full journalctl of the same boot (created with
journalctl --boot -1
):journalctl_podman_shutdown.log
Possible duplicate: #14531
The text was updated successfully, but these errors were encountered: