systemd --user does not work: 'Failed to connect to bus'
Hello!
I want to start a service at boot time as a user.
# loginctl enable-linger username
works. systemd --user process is started - even after a reboot.
But all calls using 'systemctl --user' fail; example:
$ systemctl --user status
Failed to connect to bus: No such file or directory
$ systemctl --user enable xyz
Failed to connect to bus: No such file or directory
When running systemctl command (as normal user or root) using the system-systemd instance everything works fine. The root-user is able to use the system and user systemd instances - no problems here.
I had a closer look what exactly fails:
As a 'normal' user it only tries to connect to
/sys/
which is not available - and then stops.
Same under root, check the same kdbus (of course with 0-user), also fails, but then
looks in addition for the /run/user/
I tried to start an own dbus for the user, but I failed:
all solutions I tried / found need a working systemd-user installation.
Please note that this is Ubuntu Xenial (packages from last night) only minimal (server) installation - without any GUI / X.
What am I missing here? Any hints or comments are welcome!
Need more information? Just give me a hint what is needed.
Kind regards
Andre
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu systemd Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Andreas Florath
- Solved:
- Last query:
- Last reply: