You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contrib/systemd/user/podman.service.in starts podman whenever a user session starts. But lightdm is implemented as a user session for a user with limited permissions (I assume other display managers are the same, but haven't checked).
When I log out or switch user, a lightdm session starts and its podman.service immediately exits with status 125.
Steps to reproduce the issue
use a Linux desktop distribution
ensure no systemd session is running for user lightdm
e.g. kill the relevant systemd --user process
log out or switch user (exact steps depend on your desktop)
wait a few moments for the login manager to start
observe the systemd logs
e.g. do ctrl+alt+F1 or log back in again and scroll up
note: sudo journalctl -ru podman.service only shows the system service - you can find the issue by doing sudo journalctl -r then searching for podman.service
Describe the results you received
Systemd logs contain:
podman.service: Main process exited, code=exited, status=125/n/a
podman.service: Failed with result 'exit-code'.
change contrib/systemd/user/podman.service.in from a symlink to a copy of contrib/systemd/system/podman.service.in
add a line like:
StartLimitIntervalSec=0
+ConditionUser=!@system
This would disable the service for all system users, not just lightdm. It also requires ConditionUser=, which was added to systemd in 2017. Finally, breaking the symlink would increase your maintenance burden.
Happy to resubmit this as a PR if you're OK with that solution, or to leave you to make a cleverer fix :)
The text was updated successfully, but these errors were encountered:
Issue Description
contrib/systemd/user/podman.service.in
starts podman whenever a user session starts. But lightdm is implemented as a user session for a user with limited permissions (I assume other display managers are the same, but haven't checked).When I log out or switch user, a lightdm session starts and its
podman.service
immediately exits with status 125.Steps to reproduce the issue
lightdm
kill
the relevantsystemd --user
processsudo journalctl -ru podman.service
only shows the system service - you can find the issue by doingsudo journalctl -r
then searching forpodman.service
Describe the results you received
Systemd logs contain:
Describe the results you expected
Logs do not contain an error.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
Additional environment details
No response
Additional information
Suggested fix:
contrib/systemd/user/podman.service.in
from a symlink to a copy ofcontrib/systemd/system/podman.service.in
StartLimitIntervalSec=0 +ConditionUser=!@system
This would disable the service for all system users, not just lightdm. It also requires
ConditionUser=
, which was added to systemd in 2017. Finally, breaking the symlink would increase your maintenance burden.Happy to resubmit this as a PR if you're OK with that solution, or to leave you to make a cleverer fix :)
The text was updated successfully, but these errors were encountered: