Bug 12154

Summary: polkit won't start
Product: Mageia Reporter: Pierre Fortin <pf>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: polkit.service
dbus.service

Description Pierre Fortin 2013-12-30 15:50:58 CET
Description of problem:  This is subsequent to bug 10289 and bug 12034 comments 20 & 22

# systemctl status polkit
polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: inactive (dead)
     Docs: man:polkit(8)

Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Collecting garbage unconditionally...
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Loading rules from directory /etc/polkit-1/rules.d
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Loading rules from directory /usr/share/polkit-1/rules.d
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Finished loading, compiling and executing 3 rules
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Reloading rules
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Collecting garbage unconditionally...
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Loading rules from directory /etc/polkit-1/rules.d
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Loading rules from directory /usr/share/polkit-1/rules.d
Dec 29 23:42:57 hg.pfortin.com polkitd[1023]: Finished loading, compiling and executing 3 rules
Dec 30 08:00:55 hg.pfortin.com polkitd[1023]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action org.kde.nepomuk...pfortin)
Hint: Some lines were ellipsized, use -l to show in full.

# systemd-delta
[EQUIVALENT] /etc/systemd/system/default.target â /usr/lib/systemd/system/default.target
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-SendSIGHUP.conf
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-TimeoutStopUSec.conf
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-KillMode.conf
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-After-systemd-user-sessions\x2eservice.conf
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-Description.conf
[EXTENDED]   /run/systemd/system/session-2.scope â /run/systemd/system/session-2.scope.d/90-Slice.conf

7 overridden configuration files found.

# systemctl start polkit
Job for polkit.service failed. See 'systemctl status polkit.service' and 'journalctl -xn' for details.
root@hg ~
08:35:48 # systemctl status polkit.service
polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: failed (Result: timeout) since Mon 2013-12-30 08:35:48 EST; 13s ago
     Docs: man:polkit(8)
 Main PID: 20866

Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Started polkitd version 0.112
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Loading rules from directory /etc/polkit-1/rules.d
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Loading rules from directory /usr/share/polkit-1/rules.d
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Finished loading, compiling and executing 3 rules
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Dec 30 08:35:48 hg.pfortin.com systemd[1]: polkit.service operation timed out. Terminating.
Dec 30 08:35:48 hg.pfortin.com systemd[1]: Failed to start Authorization Manager.
Dec 30 08:35:48 hg.pfortin.com systemd[1]: Unit polkit.service entered failed state.

# journalctl -xn
-- Logs begin at Mon 2013-12-02 12:28:38 EST, end at Mon 2013-12-30 08:35:48 EST. --
Dec 30 08:23:22 hg.pfortin.com dbus[18179]: [system] Failed to activate service 'org.freedesktop.systemd1': timed out
Dec 30 08:34:18 hg.pfortin.com systemd[1]: Starting Authorization Manager...
-- Subject: Unit polkit.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit polkit.service has begun starting up.
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Started polkitd version 0.112
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Loading rules from directory /etc/polkit-1/rules.d
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Loading rules from directory /usr/share/polkit-1/rules.d
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Finished loading, compiling and executing 3 rules
Dec 30 08:34:18 hg.pfortin.com polkitd[20866]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Dec 30 08:35:48 hg.pfortin.com systemd[1]: polkit.service operation timed out. Terminating.
Dec 30 08:35:48 hg.pfortin.com systemd[1]: Failed to start Authorization Manager.
-- Subject: Unit polkit.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit polkit.service has failed.
-- 
-- The result is failed.
Dec 30 08:35:48 hg.pfortin.com systemd[1]: Unit polkit.service entered failed state.

### This last command takes 90 seconds before the error appears.
# systemctl start polkit.service
Job for polkit.service failed. See 'systemctl status polkit.service' and 'journalctl -xn' for details.
#############################


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


How reproducible: always


Steps to Reproduce:  unsure -- discovered after Dec 28 updates
1. 
2.
3.


Reproducible: 

Steps to Reproduce:
Pierre Fortin 2013-12-30 15:51:53 CET

CC: (none) => mageia

Comment 1 Colin Guthrie 2013-12-30 16:01:48 CET
Seems there is a bit of a problem on your machine relating to dbus or polkit in some capacity.

It seems that while the polkit binary itself starts OK, and it acquires the name on the system bus, it seems that it doesn't actually show up ON the system bus. At least not according to systemd.

Can you:

1. Reboot with " systemd.log_level=debug" on the kernel command line.
2. Provide the output of: journalctl -a -b -u polkit.service
3. Provide the output of: journalctl -a -b -u dbus.service

(the latter two as text/plain attachments please)
Comment 2 Pierre Fortin 2014-04-04 01:22:04 CEST
Sorry for the delay...  hope the debug kernel option doesn't change the system dynamics...  rebooted when I couldn't start polkit and I got to a point where it was needed. Attaching files.
Comment 3 Pierre Fortin 2014-04-04 01:22:51 CEST
Created attachment 5091 [details]
polkit.service
Comment 4 Pierre Fortin 2014-04-04 01:23:16 CEST
Created attachment 5092 [details]
dbus.service
Comment 5 Colin Guthrie 2014-04-04 01:35:31 CEST
(In reply to Pierre Fortin from comment #3)
> Created attachment 5091 [details]
> polkit.service

This shows things working correctly and even shows an authorisation agent (i.e. the graphical bit that loads when you start a graphical session) attaching to it.

This doesn't show the service failure as reported in the original bug report, so it looks very much like it's working as intended here according to this output.

(In reply to Pierre Fortin from comment #4)
> Created attachment 5092 [details]
> dbus.service

Likewise this looks OK, and verifies the polkit name on the bus.

Sadly I can't see any bug in the latest output :s

By some unknown stroke of luck, are things operating as expected for you now?
Comment 6 Pierre Fortin 2014-04-04 04:56:10 CEST
Hi Colin,

Sorry. Should have been clearer...  I've been running with polkit down and unable to [re]start it.  Since I HATE rebooting, I procrastinated.  After a reboot, polkit works for an undetermined time. Uploaded the output files as a reminder what they should look like.

Hopefully, polkit will mess up soon and I'll be able to get the failure outputs.
Comment 7 Pierre Fortin 2015-07-25 15:48:33 CEST
Not seen in mga5

Status: NEW => RESOLVED
Resolution: (none) => OLD