-
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
Cannot start podman systemd service #13731
Comments
Probably caused by the systemd 250 update and its You can try starting the container with |
Ok, issue is related with systemd 250.4 update. As a workaround I reverted content of |
@giuseppe @vrothberg PTAL |
I can confirm this bug. Until yesterday everything worked fine on my openSUSE MicroOS. Before the update: After the update: |
I can confirm starting the containers with the I'm guessing the connection to systemd/systemd#22437 is such that systemd now sets |
Yup. IMO |
Why did systemd perform the change? I'd expect a number of units to start failing after the update. @giuseppe WDYT? |
opened a PR: #13765 |
do not force a value of OOMScoreAdj=0 if it is wasn't specified by the user. Closes: containers#13731 Signed-off-by: Giuseppe Scrivano <[email protected]>
Confirmed to work, thanks! |
The change in systemd was introduced so that user services would be more likely to be killed by the OOM killer than system services or the managers themselves. It did cause at least one other issue in dbus-daemon but the argument was that processes without privileges shouldn't attempt to lower their score. |
I have a similar issue which is not solved by the current fix, when I start a stopped container which had the
Any chance to fix this issue in this case, too (besides removing and re-creating it)? |
You have to recreate the container. There is no other way. |
IMO the failure to adjust the OOM score could be downgraded to a warning instead of an error. |
You would need to get the OCI Runtimes to do agree to this. Podman asked for the OOM to be set and the OCI Runtimes can not set it. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I've homelab NUC server running openSUSE MicroOS and during creating pod I encounter errors during enabling containers after reboot. I've tested more complex scenario that I pasted below. I've tried
loginctl enable-linger <user>
, I've added to my~/.bashrc
file these linesbut it won't change behavior
Steps to reproduce the issue:
podman run -d --name nextcloud -p 8080:80 docker.io/library/nextcloud
cd ~/.config/systemd/user/
podman generate systemd --files --name nextcloud
systemctl enable --user container-nextcloud.service
podman stop nextcloud
systemctl --user start container-nextcloud.service
Describe the results you received:
From last command I receive output
When I check
journalctl --user -xeu container-nextcloud.service
I found this entryDescribe the results you expected:
Nextcloud systemd service up and running
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
: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, tested on
and switched
overlay
backend storage with same results.Additional environment details (AWS, VirtualBox, physical, etc.):
Tried on various physical machines with same podman version
The text was updated successfully, but these errors were encountered: