Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421641 - gnome-base/gdm doesn't work with sys-auth/polkit-0.106-r2?
Summary: gnome-base/gdm doesn't work with sys-auth/polkit-0.106-r2?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 421825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-17 18:47 UTC by Mark Nowiasz
Modified: 2012-06-19 16:41 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Nowiasz 2012-06-17 18:47:28 UTC
After upgrading to polkit-0.106-r2, gdm (started via /etc/init.d/xdm) fails to work - it just hangs with a spinning cursor.

Unfortunately, no errors are written into /var/log/gdm/*.log so I can't supply any more information
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 19:26:53 UTC
Everything was restarted; dbus, consolekit, xdm (or whatever the used display manager is) and all users were relogged into the system? 
Rebooting is recommended after upgrade to >= 0.106.

/etc/polkit-1/rules.d and /usr/share/polkit-1/rules.d are owned by polkitd:root?
/var/lib/polkit-1 is owned by polkitd:polkitd?

All stale files are gone from /etc/polkit-1? Should propably only have /etc/polkit-1/rules.d/50-default.rules when debugging issues.

You should see process "/usr/lib/polkit-1/polkitd --no-debug" in `ps auxf` output. If you rerun the polkitd without he --no-debug switch, it will print more information. This can be done from a shell, like `su` to polkitd user and run it from there, see output of /usr/lib/polkit-1/polkitd --help

Also there is now /etc/pam.d/polkit-1, and since gdm doesn't use pambase and system-local-login, I'm not sure if gdm's /etc/pam.d files should somehow include the new polkit-1 now... But let's postpone this guess. See the stuff I've said on top.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-06-17 19:27:46 UTC
And you read the postinst message of polkit that said to run usermod to change polkitd's home directory to /var/lib/polkit-1 if it's set to something else?
Comment 3 Ben Kohler gentoo-dev 2012-06-18 17:06:20 UTC
I was seeing this same behavior, and ran through your suggested checks, and /var/lib/polkit-1 was owned root:polkituser (or polkituser:root? i can't remember).  I did "chown -R polkitd:polkitd /var/lib/polkit-1" and mine is back to normal.

Thanks for the tips!
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-06-19 16:15:43 UTC
*** Bug 421825 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-06-19 16:21:53 UTC
So if none of the "hints" above work and you are still stuck with the issue, here is more stuff for you to try:

polkit (unreviewed, pending on upstream reaction):

https://bugs.freedesktop.org/show_bug.cgi?id=51237
https://bugs.freedesktop.org/attachment.cgi?id=63230

gnome-shell patch that was committed to gnome git already:

https://bugzilla.gnome.org/show_bug.cgi?id=651547
https://bugzilla.gnome.org/attachment.cgi?id=201686
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-06-19 16:41:12 UTC
In fact, closing the bug for now pending on testing / information