Bug 1839728

Summary: gnome-keyring-daemon outputs 'couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY'
Product: Red Hat Enterprise Linux 7 Reporter: yzheng <yzheng>
Component: gnome-keyringAssignee: David King <dking>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: dking
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-26 09:57:02 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 yzheng 2020-05-25 11:18:31 UTC
Description of problem:

When normal user(not root) changes password by using the 'passwd' command, the syslog will output:
~~~
May 25 18:48:18 xxx gnome-keyring-daemon[1577]: couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY
May 25 18:48:18 xxx gnome-keyring-daemon[1577]: couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY
~~~


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

kernel-3.10.0-1127.el7.x86_64
gnome-shell-3.28.3-24.el7.x86_64
gnome-keyring-3.28.2-1.el7.x86_64
libgnome-keyring-3.12.0-1.el7.x86_64
gnome-keyring-pam-3.28.2-1.el7.x86_64


How reproducible:

Normal user who doesn't login the Gnome session changes the password by command 'passwd' in OS which Gnome environment is installed. 


Steps to Reproduce:
1. Normal user who doesn't login the Gnome session.
2. Using the command 'passwd' in local console or remote terminal.
3. Check the syslog.

Actual results:

~~~
May 25 18:48:18 xxx gnome-keyring-daemon[1577]: couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY
May 25 18:48:18 xxx gnome-keyring-daemon[1577]: couldn't connect to dbus session bus: Cannot autolaunch D-Bus without X11 $DISPLAY
~~~


Expected results:

No outputs.


Additional info:

In my customer's environment is RHEL 7.4(case 02653431) , and I can reproduce this issue in RHEL 7.8 . I and customer also think this output is noisy even it's harmless.

Comment 2 David King 2020-05-26 09:57:02 UTC
gnome-keyring-daemon requires a dbus session bus, and if one is not available, a bus is autolaunched as a fallback. If the autolaunch fails, and a dbus session bus could not be launched, the warning is printed, because the keyrin passwor dis then not updated (which is undesirable. The warning is appropriate to the severity of the problem and not noisy.