You are not logged in.
Hi,
I want to enable some systemd user service. Here is what I get
$ LANG=C systemctl --user
Failed to get D-Bus connection: Connection refused
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-RboLZS2wF3,guid=feb8bd85248906d12a826acd54e3c4ad
I don't believe I've ever touched dbus, so I'm a bit lost. There's the following line in my ~/.xinitrc:
exec dbus-launch xmonad
Seems like I'm not the only one with trouble on that topic, but I could not solve my problem.
Additional resources:
1. relevant pstree information
systemd-+-acpid
|-at-spi-bus-laun-+-dbus-daemon
| |-{dconf worker}
| |-{gdbus}
| `-{gmain}
|-3*[dbus-daemon]
|-dbus-launch
|-login---startx---xinit-+-Xorg
| `-xmonad-x86_64-l-+-tons
| |-of
| |-stuff
|-polkitd-+-{JS GC Helper}
| |-{JS Sour~ Thread}
| |-{gdbus}
| |-{gmain}
| `-{runaway-killer-}
|-systemd---(sd-pam)
|-systemd-journal
|-systemd-logind
|-systemd-udevd
2.
$ pgrep -af systemd
1 /usr/lib/systemd/systemd --system --deserialize 16
149 /usr/lib/systemd/systemd-journald
171 /usr/lib/systemd/systemd-udevd
257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
263 /usr/lib/systemd/systemd-logind
316 /usr/lib/systemd/systemd --user
3.
$ pgrep -af dbus
257 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
385 dbus-launch --sh-syntax --exit-with-session
386 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
459 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
470 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
4. Playing with processus #1
- Killing it doesn't change anything
$ /usr/lib/systemd/systemd --user
Failed to create root cgroup hierarchy: Permission denied
Failed to allocate manager object: Permission denied
$ sudo /usr/lib/systemd/systemd --user
Trying to run as user instance, but $XDG_RUNTIME_DIR is not set.
$ echo $XDG_RUNTIME_DIR
/run/user/1000
$ sudo -i
# XDG_RUNTIME_DIR=/run/user/1000 /usr/lib/systemd/systemd
Startup finished in 41ms. // keeps running
But I still cannot do "systemctl --user"....
Last edited by Laugarhraun (2015-02-18 17:03:57)
Offline
Heyyy I'm dumb!
$ alias systemctl
alias systemctl='sudo systemctl'
$ LANG=C /usr/bin/systemctl --user
Failed to list units: Process org.freedesktop.systemd1 exited with status 1
New error = progress! yay!
Offline
And after a reboot everything's fine... I had an update pending. Solved!
Offline