From owner-freebsd-xfce@freebsd.org Mon Jan 18 10:41: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 5DAD34E7875 for ; Mon, 18 Jan 2021 10:41:21 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (vogon.madpilot.net [159.69.1.99]) (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 4DK7cb5nTcz3m4J for ; Mon, 18 Jan 2021 10:41:19 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 4DK7cR62pMz6djw; Mon, 18 Jan 2021 11:41:11 +0100 (CET) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10026) with ESMTP id VEOAAEgOPm6z; Mon, 18 Jan 2021 11:41:08 +0100 (CET) Subject: Re: polkit not running after update To: =?UTF-8?Q?Gerrit_K=c3=bchn?= , freebsd-xfce@freebsd.org References: <20210118112011.70fa6542@arc.aei.uni-hannover.de> From: Guido Falsi Message-ID: Date: Mon, 18 Jan 2021 11:41:07 +0100 In-Reply-To: <20210118112011.70fa6542@arc.aei.uni-hannover.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4DK7cb5nTcz3m4J X-Spamd-Bar: - X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[159.69.1.99:from]; R_DKIM_ALLOW(-0.20)[madpilot.net:s=bjowvop61wgh]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MISSING_MIME_VERSION(2.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[159.69.1.99:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[madpilot.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[madpilot.net,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:159.69.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; 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:41:21 -0000 On 18/01/21 11:20, Gerrit Kühn wrote: > Hello all, > > I don't quite know where to take this, hopefully I'm not completely wrong > here. > > I've just updated a couple of machines using xfce from 12.1 to 12.2. Most > work fine after the update, but one is slightly broken now. Here are > some issues I see: XCFE starts just fine but refuses for open the xfce > terminal (nothing happens). Also, logging out is not possible anymore > (desktop gets dark, but not logout selection appears). > > As written in the subject, I think the main reason for this is that polkitd > isn't running. Sometimes I can see various error windows popping up > complaining about things that point into this direction, also ps doesn't > show a polkitd like on the systems that work fine. > > In /var/log/messages I see the following error message from dbus: > > --- > 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. Some things you could check: 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. Check if you have any core dumps from polkit laying around. I think the root directory is the most likely place. 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. 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: > pkg info -d polkit-0.118 polkit-0.118: expat-2.2.10 spidermonkey78-78.6.0_1 glib-2.66.4_1,1 gettext-runtime-0.21 dbus-1.12.20_3 So pkg upgrade -f (or rebuilding from ports if that's your method) for all those is worth a try. -- Guido Falsi