Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1704920
Summary: | dbus-broker fails to start: launcher_load_service_dir @ ../src/launch/launcher.c +753: Permission denied | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Arjun A.K. <arjunak234> |
Component: | dbus-broker | Assignee: | Tom Gundersen <tgunders> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 30 | CC: | amigadave, caillon+fedoraproject, daherrma, dh.herrmann, gnome-sig, john.j5live, lpoetter, mclasen, rhughes, rstrode, sandmann, tgunders, walters, yaneti |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dbus-broker-21-2.fc30 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-05-06 00:45:35 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
Arjun A.K.
2019-04-30 19:29:41 UTC
One of your session-configuration-directories cannot be read by dbus-broker. I assume it has the wrong permissions. The standardized D-Bus configuration directories are: - $XDG_RUNTIME_DIR/dbus-1/services/ - $XDG_DATA_HOME/dbus-1/services/ - $HOME/.local/share/dbus-1/services/ - $XDG_DATA_DIRS (append ./dbus-1/services to each) - /usr/local/share/dbus-1/services - /usr/share/dbus-1/services If a variable is not set, the directories are skipped. Each of these directories, if it exists, must be readable+executable by dbus-broker. The permission of /usr/share/dbus-1/services directory are as follows drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 services/ Should i chmod it to dbus:dbus? (In reply to Arjun A.K. from comment #2) > The permission of /usr/share/dbus-1/services directory are as follows > > drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 services/ > > Should i chmod it to dbus:dbus? No. This is fine. What about the other directories I listed? # find / -name 'dbus-1' -type d | xargs -I '%' bash -c 'test -e %/services && echo % && ls -lh %' /usr/share/dbus-1 total 44K drwxr-xr-x. 2 root root 4.0K Apr 30 23:22 accessibility-services drwxr-xr-x. 2 root root 12K Apr 9 21:44 interfaces drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 services -rw-r--r--. 1 root root 3.5K Apr 9 21:43 session.conf drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 session.d -rw-r--r--. 1 root root 5.6K Apr 9 21:43 system.conf drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 system.d drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 system-services /usr/local/share/dbus-1 total 8.0K drwx------. 2 root root 4.0K Sep 26 2018 interfaces drwx------. 2 root root 4.0K Sep 26 2018 services I tried chmod 755 on both interfaces and services directories (even though they are empty) still doesn't work. (In reply to Arjun A.K. from comment #4) > # find / -name 'dbus-1' -type d | xargs -I '%' bash -c 'test -e %/services > && echo % && ls -lh %' > /usr/share/dbus-1 > total 44K > drwxr-xr-x. 2 root root 4.0K Apr 30 23:22 accessibility-services > drwxr-xr-x. 2 root root 12K Apr 9 21:44 interfaces > drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 services > -rw-r--r--. 1 root root 3.5K Apr 9 21:43 session.conf > drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 session.d > -rw-r--r--. 1 root root 5.6K Apr 9 21:43 system.conf > drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 system.d > drwxr-xr-x. 2 root root 4.0K Apr 9 21:44 system-services > /usr/local/share/dbus-1 > total 8.0K > drwx------. 2 root root 4.0K Sep 26 2018 interfaces > drwx------. 2 root root 4.0K Sep 26 2018 services > > > I tried chmod 755 on both interfaces and services directories (even though > they are empty) still doesn't work. All the directories I listed must be accessible as a normal user. The session-bus or user-bus runs under your user-ID. Only the **system-bus** runs as `dbus:dbus`. So this means `ls $DIR` must work as your normal user. In your case, both the `interfaces` and `services` directories need `755`. Furthermore, I suspect their parent directories have wrong permissions as well. So `/usr/local`, `/usr/local/share`, `/usr/local/share/dbus-1` all need `755` as well. Note that you can safely remove these directories in case they are empty. I now pushed a fix to dbus-broker upstream to ignore EACCES in `opendir()` to align it with the behavior of dbus-daemon. However, you should still fix these permissions, since it means anything installed into these directories will be ignored by dbus-daemon and dbus-broker, and thus it will not work. Thanks David Looks like its working now, thanks. dbus-broker-21-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4c057073ca dbus-broker-21-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4c057073ca dbus-broker-21-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |