polkit not running after update
Guido Falsi
mad at madpilot.net
Mon Jan 18 11:19:05 UTC 2021
On 18/01/21 11:58, Gerrit Kühn wrote:
> Am Mon, 18 Jan 2021 11:41:07 +0100
> schrieb Guido Falsi <mad at madpilot.net>:
>
>>> ---
>>> Jan 18 10:58:57 beastie dbus-daemon[36795]: [system] Failed to activate
>>> service 'org.freedesktop.PolicyKit1': timed out
>>> (service_start_timeout=25000ms)
>>> ---
>>>
>>>
>>> However, I'm unable to find out /why/ this happens and how to fix it.
>>> Any hints?
>
>> Not easy to guess. Also, while I do work on xfce ports I know little
>> about polkit details. xfce uses it, but it's not part of xfce.
>
> Thanks for your time. Is there any better place where I could ask
> about this?
Well, the polkit port is maintained by desktop@, so you could write to
desktop at freebsd.prg too, that would at least widen your audience.
>
>> You could also try launching polkitd by hand as a user or as root and
>> see what it says It should also have a --debug flag.
>
> Turns out, it rather has a --no-debug flag. ;-)
> With debugging enabled I get the following:
>
> ---
> root at beastie:~ # /usr/local/lib/polkit-1/polkitd
> Successfully changed to user polkitd
> 11:52:18.901: Loading rules from directory /usr/local/etc/polkit-1/rules.d
> 11:52:18.901: Loading rules from directory
> /usr/local/share/polkit-1/rules.d 11:52:18.901: Finished loading,
> compiling and executing 1 rules Entering main event loop
> Connected to the system bus
> 11:52:18.903: Lost the name org.freedesktop.PolicyKit1 - exiting
> Shutting down
> Exiting with code 0
> ---
>
> Searching about this, this looks like the communication with dbus is not
> working properly. This matches the error message I previously got from the
> other end (dbus) in /var/log/messages. Somehow the two processes fail to
> cumminucate with each other.
I'd take a look at the policyd and dbus policies in
/usr/local/etc/polkit-1 and /usr/local/etc/dbus-1. If something changed
there recently, do you have any customizations in those files?
Especially the file
/usr/local/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf, is it
unmodified from what the port installs? There should be a .sample file
you can try a diff from.
Since there is a .sample file, if in the past this one was modified from
any reason, upgrading or reinstalling the port would not update it.
--
Guido Falsi <mad at madpilot.net>
More information about the freebsd-xfce
mailing list