From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CFeKFigljmL/SgAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 14:46:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6PNOFigljmJPHwAAauVa8A (envelope-from ) for ; Wed, 25 May 2022 14:46:32 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBDD630F1B for ; Wed, 25 May 2022 14:46:31 +0200 (CEST) Received: from localhost ([::1]:36782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntqPH-0006ZJ-3Y for larch@yhetil.org; Wed, 25 May 2022 08:46:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqOp-0006ZA-AO for bug-guix@gnu.org; Wed, 25 May 2022 08:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ntqOo-00010F-JE for bug-guix@gnu.org; Wed, 25 May 2022 08:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ntqOo-0003UM-EZ for bug-guix@gnu.org; Wed, 25 May 2022 08:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55444: elogind startup race between shepherd and dbus-daemon Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 25 May 2022 12:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55444 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 55444@debbugs.gnu.org Received: via spool by 55444-submit@debbugs.gnu.org id=B55444.165348276113402 (code B ref 55444); Wed, 25 May 2022 12:46:02 +0000 Received: (at 55444) by debbugs.gnu.org; 25 May 2022 12:46:01 +0000 Received: from localhost ([127.0.0.1]:54598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqOn-0003U1-4c for submit@debbugs.gnu.org; Wed, 25 May 2022 08:46:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ntqOk-0003Tg-Sb for 55444@debbugs.gnu.org; Wed, 25 May 2022 08:46:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqOf-0000xW-Ih; Wed, 25 May 2022 08:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=zCUD5F7EfJW4GfmL5ofzqeS1oLyBn1yELFJeNk4q4Gg=; b=oFk0WIPL0o8PvVk4TFtz MyxVC4KjmASHLPRKoCrf06fPYIuUQvH+2WSK1OjHJGJz8aBrtUiMcFUFsFhJzaHKg2Bf0RjYBwNQp YZwsl+93hAjLgS+FrLK5fqElQlxwUvH4VvBFSgEwXy4oxYj/pr6CeQt+OGKfswz12+E14yVDsCXqB eRiM/spINc1WiPARfpE8t7Ky5q+TUmt6Bf8CHXMrmCSJPq4EYBn0mKtPPtaOugDqbs4EgFDDMx1cD ykBCoMFDsU+VY2F20mqv67e+cKB7aAdpPQQ5a5iYn3v5rK3Pu4ONrDzqUYb/IcEWn9OPrE2vI7dCj A1ibWJ5QU8SyPA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:57482 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntqOf-0003li-2t; Wed, 25 May 2022 08:45:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877d6lc28o.fsf@inria.fr> <87y1yr4qd3.fsf@gmail.com> Date: Wed, 25 May 2022 14:45:50 +0200 In-Reply-To: <87y1yr4qd3.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 23 May 2022 22:27:20 -0400") Message-ID: <87tu9dhjb5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653482792; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zCUD5F7EfJW4GfmL5ofzqeS1oLyBn1yELFJeNk4q4Gg=; b=dMgeX6Ao+TVxUPpB0XnKFhJSQN35UHeVPozYGXxkSm+iktJ6MvSNV9XQxVrBInoWl7TZwG jvaG3y9tZWFB7icSJgRISxFpXojCxNGlupHHjWDZn+zZriv4Lx2lv8m6Yb0q9epFUCeLKJ 1V68KwDsw2SJMEYKB0fXho7RBu0CYgewBAcRrNYmJkFFs/tDyd6EiPbxqQHXJexJ01qHeT d7b+H3+aWxnWKeSDuowVC8PsQqN+fXvX1EQQvvznvmHFAnFaAgabPesogEzb4+WTFeBgoj DjslQEcinuNfnxkSegCUMSip+HLWdqFWZzM8yf8kWQQKK9JaUIG56bkBAYos0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653482792; a=rsa-sha256; cv=none; b=o+/e0RODWRGIq8ouvUFwSab1togyjHn+R244N1Mbul7nN1phnBTxr3IVn/UEmuv4D3SGaF rgEPUe0GCZs3QhhEcEXqoRDGqRGPxZj4xj1kzUVb8ZvdiXJz8Eh8JVNn2UHm3n5shDRY7k pQRO3RSk+CidQEU1Rbqr73Fu4zIie3JG/cn6FyoZNRLUHRqkgYjRBWOXcu40W3n7npvO26 n4nuPJuVJQM+6wdZ659FcehkFpoNbaPZ7T+xr4tdLYlWEeE2IcDLwbyQXD4jl4chcuuwIm 8G/mzoqaT7R7aQLlQaf/WnqOfgkORqdCFNF4SB6b8jWjHTLbDmi2o7YpiR5i3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=oFk0WIPL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=oFk0WIPL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EBDD630F1B X-Spam-Score: -2.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: /SROHO5cCJ4w Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: > >> Hello! >> >> Currently (40a729a0e6f1d660b942241416c1e2c567616d4d), shepherd and >> dbus-daemon compete to start elogind: shepherd tries to start it >> eagerly, and dbus-daemon starts it on-demand upon bus activation. >> >> Sometimes dbus-daemon wins, and thus shepherd tries a few times to start >> it anyway, leading to the infamous: >> >> elogind is already running as PID 123 > > Do we have a system test that sometimes reproduce it, or at least the > above message? Any system along the lines of gnu/system/examples/desktop.tmpl gets this message, though usually Xorg starts without any problem. There=E2=80=99s an elogind system test but it doesn=E2=80=99t catch the pro= blem because it=E2=80=99s a non-deterministic and rather rare issue. > I have some branch where I introduce some D-Bus synchronization > primitives I had started to fix > https://issues.guix.gnu.org/issue/52051, which ended up being fixed > differently (bumping the timeout value); perhaps it could be of use > here. Hmm I had forgotten about that bug, and I wonder if it=E2=80=99s the same b= ug I was seeing, and that in fact the shepherd/dbus-daemon race isn=E2=80=99t the root cause. The machine where I saw elogind startup failures was extremely slow to start for other reasons. Anyhow, getting rid of this race seems like the right thing to do. Ludo=E2=80=99.