OCI: systemctl --user command failed with error "Failed to get D-Bus connection: Connection refused"
Applies To
Oracle Cloud Infrastructure
Linux x86-64
Symptoms
The “--user” option is not available to the systemctl command. When trying to use “ --user ” the following error is seen:
$ systemctl --user list-unit-files Failed to get D-Bus connection: Connection refused
Cause
The --user option is not available for Oracle Linux 7. This option is available in Oracle Linux 8 and above.
Solution
Do not use or configure systemd to use the “ --user ” option in Oracle Linux 7.
Note: While the "systemctl --user" option is available for Oracle Linux 8, it was not back ported to Oracle Linux 7
Tagged:
0