Closed urbenlegend closed 6 months ago
@Luap99 Likely not waiting for network.target?
A user unit cannot wait for network-online.target, this look like the same underlying issue as https://github.com/containers/podman/issues/22197 for the startup on boot.
As for stopping the log clearly shows that the issue is with your container, no idea why you configured SIGWINCH as stop signal because that is not what it is used for normally.
level=warning msg="StopSignal SIGWINCH failed to stop container nextcloud-cron-1 in 10 seconds, resorting to SIGKILL"
Closing as dup of #22197
@Luap99 Thanks for the info and dup. I did not configure the SIGWINCH, I am just using the container defined in the Nextcloud docker example: https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml
Issue Description
I have several rootless containers created via docker-compose files. The user running the containers has linger enabled. I am trying to use the user-level
podman-restart.service
to start and stop my containers on reboot. Currently it is delaying shutdown and also failing to start my containers back up on system boot.Here are the podman-restart logs on shutdown:
It seems like it's attempting start the containers back up even though the system is shutting down?
Here are the podman-restart logs on boot:
Here it seems like the network isn't available when the containers start up. It is also complaining about not finding one of my drive mounts. Shouldn't podman-restart.service wait until network and mounts are up before attempting startup? If I manually restart podman-restart, then everything works fine, indicating some race condition on boot.
Steps to reproduce the issue
Steps to reproduce the issue
docker-compose
Describe the results you received
System shutdown is sometimes delayed by podman-restart. Containers also fail to start back up due to network interface not being up.
Describe the results you expected
Podman should neatly shutdown all containers before reboot. Containers should also automatically start backup on boot.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting