Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477198 - sys-apps/dbus with sys-apps/systemd - org.freedesktop.DBus.Error.AccessDenied: Failed to determine seats of user "0": Permission denied
Summary: sys-apps/dbus with sys-apps/systemd - org.freedesktop.DBus.Error.AccessDenied...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-17 08:52 UTC by all.xi
Modified: 2015-07-04 16:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
journalctl -xb (journalctl-xb.txt,147.80 KB, text/plain)
2013-07-17 08:52 UTC, all.xi
Details
emergeInfo_20130717.txt (emergeInfo_20130717.txt,7.58 KB, text/plain)
2013-07-17 17:04 UTC, all.xi
Details
gdm.log (gdm.log,66.29 KB, text/plain)
2013-07-17 17:04 UTC, all.xi
Details
gdm--nodaemon.log (gdm--nodaemon.log,63.32 KB, text/plain)
2013-07-17 17:05 UTC, all.xi
Details
systemd-logind.log (systemd-logind.log,31.31 KB, text/plain)
2013-07-17 17:05 UTC, all.xi
Details
dbus-1.tbz (dbus-1.tbz,6.42 KB, application/x-bzip-compressed-tar)
2013-07-17 19:33 UTC, all.xi
Details
emergedPackages.txt (emergedPackages.txt,832 bytes, text/plain)
2013-07-17 19:36 UTC, all.xi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description all.xi 2013-07-17 08:52:35 UTC
Created attachment 353488 [details]
journalctl -xb

Diffrent errors appear after switching to systemd. gdm does not start.
Seems it can not connect to dbus; but why?

-------------------------------
Jul 17 07:42:29 gdm[492]: error getting system bus: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Failed to determine seats of user "0": Permission denied 

Jul 17 07:42:29 systemd-logind[484]: Failed to get system D-Bus connection: Access denied

Jul 17 07:42:29 systemd-logind[484]: Failed to fully start up daemon: Connection refused
-------------------------------

Has anyone an idear?
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-17 09:37:35 UTC
1. Did you rebuild with USE="+pam +policykit +systemd -consolekit"?
2. Any odd configuration in one of those files, or is everything standard?
3. Did you set up systemd properly? Try following the Wiki for it, especially the pam_systemd part; as seen here: http://wiki.gentoo.org/wiki/Systemd#systemd-logind_.26_pam_systemd
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-17 11:19:19 UTC
Please post your `emerge --info' output in a comment.
Comment 3 all.xi 2013-07-17 11:30:11 UTC
(In reply to Tom Wijsman (TomWij) from comment #1)
> 1. Did you rebuild with USE="+pam +policykit +systemd -consolekit"?

rebuild was at least with "systemd -consolekit" in make.conf.
i will have a look at +pam +policykit, too.

> 2. Any odd configuration in one of those files, or is everything standard?

in those parts not; but i have a special initrd to decrypt the Luks partitions.
but all partitions are decrypted bevore systemd starts (journalctl-xd.log).

> 3. Did you set up systemd properly? Try following the Wiki for it,
> especially the pam_systemd part; as seen here:
> http://wiki.gentoo.org/wiki/Systemd#systemd-logind_.26_pam_systemd

it has no effect on the gdm/systemd-logind


`emerge --info' is underway

------------------------------

i do not understand why "0" gets no permission
Failed to determine seats of user "0": Permission denied
Failed to get system D-Bus connection: Access denied
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-17 13:17:07 UTC
(In reply to all.xi from comment #3)
> i do not understand why "0" gets no permission
> Failed to determine seats of user "0": Permission denied
> Failed to get system D-Bus connection: Access denied

Can't really tell without a log; if you can, feel free to run it with `strace -f -s9999 -o /tmp/gdm.log gdm`. If that's insufficient, you might need to do the same with systemd-logind...

Seems the main error to pay attention to here is "Failed to fully start up daemon: Connection refused" though; I'm not entirely sure if the permission are the cause or the consequence...
Comment 5 all.xi 2013-07-17 17:04:06 UTC
Created attachment 353514 [details]
emergeInfo_20130717.txt
Comment 6 all.xi 2013-07-17 17:04:38 UTC
Created attachment 353516 [details]
gdm.log
Comment 7 all.xi 2013-07-17 17:05:09 UTC
Created attachment 353518 [details]
gdm--nodaemon.log
Comment 8 all.xi 2013-07-17 17:05:45 UTC
Created attachment 353520 [details]
systemd-logind.log
Comment 9 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-07-17 18:05:06 UTC
For all three, we see that it tries to talk to DBus:

4440  sendmsg(5, {msg_name(0)=NULL, msg_iov(1)=[{"l\1\0\1\0\0\0\0\1\0\0\0m\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\3\1s\0\5\0\0\0Hello\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\6\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0", 128}], msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 128

But then it receives an access denied error from DBus stating it can't determine the seats of user 0 because permission is denied:

4440  recvmsg(5, {msg_name(0)=NULL, msg_iov(1)=[{"\4\1s\0'\0\0\0org.freedesktop.DBus.Error.AccessDenied\0\5\1u\0\1\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0008\0\0\0Failed to determine seats of user \"0\": Permission denied\0", 157}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 157

Can you tarball the /etc/dbus-1 folder and attach it to this bug??

`tar czf dbus-1.tar.gz /etc/dbus-1`

Also, please copy the relevant portion of the following command output to show the versions of those packages:

`emerge -Cpv sys-apps/systemd sys-apps/accountsservice sys-auth/pambase sys-libs/pam dev-libs/dbus-glib sys-apps/dbus`
Comment 10 all.xi 2013-07-17 19:33:35 UTC
Created attachment 353530 [details]
dbus-1.tbz

Hello Tom,

thanks a lot for your debugging.

here is the next bucket of information.

the dbus-1 directory
Comment 11 all.xi 2013-07-17 19:36:10 UTC
Created attachment 353532 [details]
emergedPackages.txt


and the package versions.

thanks
xi
Comment 12 Meik Frischke 2013-10-11 21:50:55 UTC
Interestingly I came across the same issue on one of my systems. The biggest similarity I see here is the use of an initrd for luks, which seems unrelated to the dbus problems... Has this issue since been resolved somehow ?
Comment 13 Pacho Ramos gentoo-dev 2015-07-04 16:11:15 UTC
Looks solved with current dbus and systemd versions in the tree