You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: systemctl --user command failed with error "Failed to get D-Bus connection: Connection refused"

edited Oct 7, 2023 8:19AM in Linux 1 comment

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


Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!