0

While I am trying to execute

systemctl --user enable rclone@gdrive

or

systemctl --user start rclone@gdrive

on reboot time, I am getting following error:

Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using [email protected] --user to connect to bus of other user)
AdminBee
  • 21,637
  • 21
  • 47
  • 71
Soft Dev
  • 1
  • 2
  • 1
    How and where exactly are you trying to run these commands? They indicate that dbus is not running, or you are in a context where you cannot connect to it. – tripleee Jan 03 '23 at 11:26
  • That may happen when you try to use `--user`, but are in a `root` shell without the proper `systemd` context. – Andrej Podzimek Jan 03 '23 at 15:04
  • Does this answer your question? [Failed to get D-Bus connection: Connection refused](https://unix.stackexchange.com/questions/615917/failed-to-get-d-bus-connection-connection-refused) – Stewart Jan 03 '23 at 15:14

0 Answers0