Bug 1198655

Summary: Running "systemctl --user status" fails with error message about D-Bus connection
Product: Red Hat Enterprise Linux 7 Reporter: vsipuli
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: hugues, lnykryn, systemd-maint-list, systemd-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-04 16:57:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vsipuli 2015-03-04 15:20:17 UTC
Description of problem: Running "systemctl --user status" gives the error "Failed to get D-Bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11"

Version-Release number of selected component (if applicable):

systemd-208-11.el7_0.6.x86_64

How reproducible:

Always reproduces.

Steps to Reproduce:
1. Run "systemctl --user status" as a regular user

Actual results:

The command fails with the error "Failed to get D-Bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11".

Expected results:

The command shows the status of the systemd user manager's services.

Additional info:

Searching the web turns up posts that indicate the issue might be related to a bug in the D-Bus package that causes the DBUS_SESSION_BUS_ADDRESS environment variable to not be set.

Comment 1 Lukáš Nykrýn 2015-03-04 16:57:29 UTC
Nope, this is becuase we are not starting user systemd in rhel7 by default.

Comment 2 Hugues Malphettes 2015-11-21 23:14:21 UTC
(In reply to Lukáš Nykrýn from comment #1)
> Nope, this is becuase we are not starting user systemd in rhel7 by default.

How do we enable user systemd in rhel7 or what was the rationale to disable it?
I apologise if I missed the info somewhere. It is detailed in #1019738 but I dont have access to that bug.

Many thanks for your help.

Comment 3 Hugues Malphettes 2015-11-22 23:53:24 UTC
OK I found some hint as to why `systemd --user` is removed in rhel7 in the presentation "Lukáš Nykrýn, Michal Sekletar: systemd in RHEL - upstream vs conservative enterprise distribution" from systemd-conf: https://youtu.be/kUWvSXEHMhU?t=3m45s
Basically not "enterprise ready".

Comment 4 Lukáš Nykrýn 2015-11-23 11:31:32 UTC
> Basically not "enterprise ready".
Exactly. We are not even sure that --user will stay in upstream as is in the future.