Skip to content

Instantly share code, notes, and snippets.

@eyJhb
Last active February 21, 2019 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyJhb/55a345d5f5afd29150c03d9c8889298e to your computer and use it in GitHub Desktop.
Save eyJhb/55a345d5f5afd29150c03d9c8889298e to your computer and use it in GitHub Desktop.
$ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● user-runtime-dir@1000.service loaded failed failed /run/user/1000 mount wrapper
● user@1000.service loaded failed failed User Manager for UID 1000
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
$ systemctl status
● eos
State: degraded
Jobs: 0 queued
Failed: 2 units
Since: Thu 2019-02-21 07:55:48 CET; 50s ago
CGroup: /
├─user.slice
│ └─user-1000.slice
│ └─session-1.scope
│ ├─1394 lightdm --session-child 12 15
│ ├─1424 /nix/store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23/bin/bash /nix/store/m0qb322zzqc9q9im287jf0l9mb47wriz-xsession none+i3
│ ├─1451 /nix/store/gcp5gaw3784cl9183jsax1fxgdgr3rjq-dbus-1.12.10-lib/bin/dbus-launch --exit-with-session /nix/store/ylciv7c31dlin9sznbagp3lbc635rrzn-xsession-wrapper /nix/store/m0qb322zzqc9q9im287jf0l9mb47wriz-xsession "none+i3"
│ ├─1452 /run/current-system/sw/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
│ ├─1480 /nix/store/b9p787yqaqi313l9rr0491igjwyzqfmw-bash-4.4-p23/bin/bash /nix/store/ylciv7c31dlin9sznbagp3lbc635rrzn-xsession-wrapper /nix/store/m0qb322zzqc9q9im287jf0l9mb47wriz-xsession "none+i3"
│ ├─1483 tee /home/eyjhb/.xsession-errors
│ ├─1497 xcape -t 150 -e Shift_L Escape
│ ├─1502 /nix/store/ikccix6izgfvrkwxy5yrx3mxziba0jg0-i3-gaps-4.15.0.1/bin/i3
│ ├─1651 i3bar --bar_id=bar-0 --socket=/tmp/i3-eyjhb.IyJtTr/ipc-socket.1502
│ ├─1654 i3status
│ ├─1669 /nix/store/9br7mkzgf0pycbvbxzdf8c1x9gizli4f-pulseaudio-12.2/bin/pulseaudio --start --log-target=syslog
│ ├─1700 /nix/store/9br7mkzgf0pycbvbxzdf8c1x9gizli4f-pulseaudio-12.2/libexec/pulse/gsettings-helper
│ ├─2017 /run/current-system/sw/bin/bash
│ ├─2026 /run/current-system/sw/bin/urxvt
│ ├─2027 bash
│ └─2049 systemctl status
├─init.scope
│ └─1 systemd
└─system.slice
├─rngd.service
│ └─1163 /nix/store/3wvi2s1rg6m3fgafqq432349zg6gwqna-rng-tools-5/sbin/rngd -f -v
├─systemd-udevd.service
│ └─687 /nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-udevd
├─docker.service
│ ├─1364 /nix/store/nzi1mblwhkjl5k3a1k2c7km79446wlby-docker-18.09.2/libexec/docker/dockerd --group=docker --host=fd:// --log-driver=journald --live-restore
│ └─1396 containerd --config /var/run/docker/containerd/containerd.toml --log-level info
├─polkit.service
│ └─1239 /nix/store/pf3cmzvqcjqq6ly9fg7axwy2gaj0iwb7-polkit-0.115/lib/polkit-1/polkitd --no-debug
├─rtkit-daemon.service
│ └─1673 /nix/store/apqspjmcv068r6lbc8qx8ncpc50ghdm5-rtkit-0.11/libexec/rtkit-daemon
├─accounts-daemon.service
│ └─1217 /nix/store/fgbbhm5vf7sws6yl3xfiad67fjqyy5jg-accountsservice-0.6.50/libexec/accounts-daemon
├─wpa_supplicant.service
│ └─1395 /nix/store/2nkwnf4439xx512d2mbmkrp50fvvl3vm-wpa_supplicant-2.6/sbin//wpa_supplicant -u
├─systemd-journald.service
│ └─677 /nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-journald
├─sshd.service
│ └─1369 /nix/store/h3f7w2ihxmfk8fn0wkfxkgf7vnx91h0p-openssh-7.7p1/bin/sshd -f /etc/ssh/sshd_config
├─display-manager.service
│ ├─1266 /nix/store/5pln8c7s67frv996jr97vf453kz41gk7-lightdm-1.28.0/sbin/lightdm
│ └─1275 /nix/store/96ds84x8qpwlvlr3a0p7zh6m9v5bsdkf-xorg-server-1.19.6/bin/X -config /nix/store/r2315nx38nw1ixgq54f5q9dsrvmz9l22-xserver.conf -xkbdir /nix/store/xxi3dgq51m5jh92xbg1m0vfn8xp4zpl8-xkeyboard-config-2.24/etc/X11/xkb -logfile /dev/null -verbose 3 -nolisten tcp -terminate -logfile /var/log/X.0.log :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
├─network-manager.service
│ ├─1201 /nix/store/gasy0qh84hkvi44kl6h3b9azhpzwyw3z-network-manager-1.12.2/sbin/NetworkManager --no-daemon
│ └─1913 /nix/store/g538nq74vnbxr3m1kyvknix3cxlk1lzb-dhcp-4.4.1/bin/dhclient -d -q -sf /nix/store/gasy0qh84hkvi44kl6h3b9azhpzwyw3z-network-manager-1.12.2/libexec/nm-dhcp-helper -pf /var/run/dhclient-wlp3s0.pid -lf /var/lib/NetworkManager/dhclient-63fd8803-f67f-45e0-a931-90913c20d71c-wlp3s0.lease -cf /var/lib/NetworkManager/dhclient-wlp3s0.conf wlp3s0
├─nscd.service
│ └─1969 nscd
├─cups.service
│ └─1390 /nix/store/8j3zya0ds0qqw6kcl05mvw5x92l5jbnv-cups-2.2.6/sbin/cupsd -l
├─dbus.service
│ └─1166 /nix/store/v502flrhjw9ybrkjkcsbj1dmgqb4p0hh-dbus-1.12.10/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
├─systemd-timesyncd.service
│ └─807 /nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-timesyncd
├─system-getty.slice
│ └─getty@tty1.service
│ └─1371 agetty --login-program /nix/store/cgwga9h74ny1vhs3jjngn3l1zwykxapv-shadow-4.6/bin/login --noclear --keep-baud tty1 115200,38400,9600 linux
└─systemd-logind.service
└─1218 /nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-logind
$ systemctl status user@1000.service
● user@1000.service - User Manager for UID 1000
Loaded: loaded (/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/example/systemd/system/user@.service; static; vendor preset: enabled)
Drop-In: /nix/store/gm43papq8xxh1a3y3z22pk9xflqswvp4-system-units/user@.service.d
└─overrides.conf
Active: failed (Result: protocol) since Thu 2019-02-21 07:55:52 CET; 1min 58s ago
Process: 1412 ExecStart=/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd --user (code=exited, status=1/FAILURE)
Main PID: 1412 (code=exited, status=1/FAILURE)
Feb 21 07:55:52 eos systemd[1]: Starting User Manager for UID 1000...
Feb 21 07:55:52 eos systemd[1]: user@1000.service: Failed with result 'protocol'.
Feb 21 07:55:52 eos systemd[1]: Failed to start User Manager for UID 1000.
$ systemctl status user-runtime-dir@1000.service
● user-runtime-dir@1000.service - /run/user/1000 mount wrapper
Loaded: loaded (/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/example/systemd/system/user-runtime-dir@.service; static; vendor preset: enabled)
Drop-In: /nix/store/gm43papq8xxh1a3y3z22pk9xflqswvp4-system-units/user-runtime-dir@.service.d
└─overrides.conf
Active: failed (Result: exit-code) since Thu 2019-02-21 07:55:52 CET; 1min 48s ago
Process: 1417 ExecStop=/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-user-runtime-dir stop 1000 (code=exited, status=1/FAILURE)
Process: 1411 ExecStart=/nix/store/y02g0zvkrna2znjkiwx9k6w3ppfwzzym-systemd-239.20190110/lib/systemd/systemd-user-runtime-dir start 1000 (code=killed, signal=TERM)
Main PID: 1411 (code=killed, signal=TERM)
Feb 21 07:55:52 eos systemd[1]: Started /run/user/1000 mount wrapper.
Feb 21 07:55:52 eos systemd-user-runtime-dir[1417]: Failed to remove runtime directory /run/user/1000 (before unmounting): No such file or directory
Feb 21 07:55:52 eos systemd-user-runtime-dir[1417]: Failed to remove runtime directory /run/user/1000 (after unmounting): No such file or directory
Feb 21 07:55:52 eos systemd[1]: user-runtime-dir@1000.service: Unit not needed anymore. Stopping.
Feb 21 07:55:52 eos systemd[1]: Stopping /run/user/1000 mount wrapper...
Feb 21 07:55:52 eos systemd[1]: user-runtime-dir@1000.service: Control process exited, code=exited status=1
Feb 21 07:55:52 eos systemd[1]: user-runtime-dir@1000.service: Failed with result 'exit-code'.
Feb 21 07:55:52 eos systemd[1]: Stopped /run/user/1000 mount wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment