Issue
# systemctl -t service --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user-runtime-dir@1043.service loaded failed failed User runtime directory /run/user/1043
● user-runtime-dir@1203.service loaded failed failed User runtime directory /run/user/1203
Environment
- CloudLinux 8
Solution
-
Create a drop-in to make sure that
user-runtime-dir@.service
unit is a one-shot service# mkdir -p /etc/systemd/system/user-runtime-dir@.service.d # cat > /etc/systemd/system/user-runtime-dir@.service.d/kcs_5931241.conf << EOF [Service] Type=oneshot EOF
-
Reload
systemd
for change to take effect# systemctl daemon-reload
-
Clear the failing state
# systemctl reset-failed
Cause
There is a race between the unit preparing the temporary file system used to provide /run/user/<UID>
and the startup of systemd --user
instance.
It also could happen when some processes stay in uninterruptible wait during logout and the error can be safely ignored.
Comments
0 comments
Please sign in to leave a comment.