From owner-freebsd-xfce@freebsd.org Mon Jan 18 10:58:21 2021 Return-Path: Delivered-To: freebsd-xfce@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 087804E821C for ; Mon, 18 Jan 2021 10:58:21 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Received: from mailgate2.uni-hannover.de (mailgate2.uni-hannover.de [130.75.2.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DK80D2MR2z3mdW for ; Mon, 18 Jan 2021 10:58:19 +0000 (UTC) (envelope-from gerrit.kuehn@aei.mpg.de) Received: from intranet.aei.uni-hannover.de (ahin1.aei.uni-hannover.de [130.75.117.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgate2.uni-hannover.de (Postfix) with ESMTPS id F0756234C; Mon, 18 Jan 2021 11:58:18 +0100 (CET) Received: from arc.aei.uni-hannover.de ([130.75.117.1]) by intranet.aei.uni-hannover.de (IBM Domino Release 9.0.1FP8) with ESMTP id 2021011811581796-6238 ; Mon, 18 Jan 2021 11:58:17 +0100 Date: Mon, 18 Jan 2021 11:58:18 +0100 From: Gerrit =?UTF-8?B?S8O8aG4=?= To: Guido Falsi Cc: freebsd-xfce@freebsd.org Subject: Re: polkit not running after update Message-ID: <20210118115818.400403af@arc.aei.uni-hannover.de> In-Reply-To: References: <20210118112011.70fa6542@arc.aei.uni-hannover.de> Organization: Albert-Einstein-Institut X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd11.4) MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 18/01/2021 11:58:18, Serialize by Router on intranet/aei-hannover(Release 9.0.1FP8|February 23, 2017) at 18/01/2021 11:58:18, Serialize complete at 18/01/2021 11:58:18 X-TNEFEvaluated: 1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.102.4 at mailgate2 X-Virus-Status: Clean X-Rspamd-Queue-Id: 4DK80D2MR2z3mdW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of gerrit.kuehn@aei.mpg.de has no SPF policy when checking 130.75.2.114) smtp.mailfrom=gerrit.kuehn@aei.mpg.de X-Spamd-Result: default: False [-1.66 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[mpg.de]; AUTH_NA(1.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[130.75.2.114:from]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.983]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; R_MIXED_CHARSET(0.62)[subject]; ASN(0.00)[asn:680, ipnet:130.75.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-xfce] X-BeenThere: freebsd-xfce@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: XFCE for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2021 10:58:21 -0000 Am Mon, 18 Jan 2021 11:41:07 +0100 schrieb Guido Falsi : > > --- > > 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? > look into .xsession-errors, that's where output from user X11 session > goes, maybe you can find some hint there. Do expect various scary > warnings there, but most are really just noise. I'm using startxfce4 on the commandline, so I don't have .xesssion-errors. I didn't see any other striking issues on the commandline output, apart from the PolicyKit error messages. > Check if you have any core dumps from polkit laying around. I think the > root directory is the most likely place. No, nothing like like that. > 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@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. > Trying to reinstall it (via ports if using ports o with pkg upgrade -f > if using binary packages) could help. Same for it's requirements, I get: Yes, I already tried that, unfortunately without any success. cu Gerrit