From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iHhbMFgYXmNAzAAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 07:23:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oBcsMFgYXmPMEQAA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 07:23:20 +0100 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 7CE4E39B8D for ; Sun, 30 Oct 2022 07:23:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1op1ir-0005zQ-5b; Sun, 30 Oct 2022 02:23:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1op1ip-0005zG-AE for bug-guix@gnu.org; Sun, 30 Oct 2022 02:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1op1io-00077R-RS for bug-guix@gnu.org; Sun, 30 Oct 2022 02:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1op1io-0007ck-It for bug-guix@gnu.org; Sun, 30 Oct 2022 02:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57844: Shepherd fails to start in user session ~50% of the time Resent-From: Tom Willemse Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 30 Oct 2022 06:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57844 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Andrew Tropin , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 57844@debbugs.gnu.org Received: via spool by 57844-submit@debbugs.gnu.org id=B57844.166711097929284 (code B ref 57844); Sun, 30 Oct 2022 06:23:02 +0000 Received: (at 57844) by debbugs.gnu.org; 30 Oct 2022 06:22:59 +0000 Received: from localhost ([127.0.0.1]:37161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1op1il-0007cD-7u for submit@debbugs.gnu.org; Sun, 30 Oct 2022 02:22:59 -0400 Received: from r0-4.smtpout1.paris1.alwaysdata.com ([188.72.70.8]:53767) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1op1ig-0007c2-Db for 57844@debbugs.gnu.org; Sun, 30 Oct 2022 02:22:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XPGi3XluGwJcehgjxWpI9EXlziNgutkKtazXO1M3ZDA=; b=agWakbWb+wtA6ICvn6THAnZGv5 3PxUTMDZ/QjaVp/g0Kpe0Y7BFO5CMYP78PaY1l4nBuGMyJYQhdnVj261utzWpb86w2a2DPnLLBizV dzHQk9S6J/BZECzTW6rd4VwuIn9FLBDoBFscu/HPLN4LiwmmguVz5mg8X9dKDT/bat7A=; Received: from node-1w7jr9pql4sl12vllf8pnk2zz.ipv6.telus.net ([2001:569:5854:a00:d390:e431:f82d:72f] helo=localhost) by smtpout1.paris1.alwaysdata.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1op1ib-0004CF-0W; Sun, 30 Oct 2022 07:22:49 +0100 From: Tom Willemse In-Reply-To: <87a65rf23o.fsf@trop.in> References: <87a65rf23o.fsf@trop.in> Date: Sat, 29 Oct 2022 23:22:42 -0700 Message-ID: <875yg1rft9.fsf@ryuslash.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-alwaysdata-ID: 156600914 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: , Sender: "bug-Guix" Errors-To: bug-guix-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667111000; 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=XPGi3XluGwJcehgjxWpI9EXlziNgutkKtazXO1M3ZDA=; b=Tlr1N76Et9825hX+ORF0vyYaGLLr5VVv6TCOW6nbt2pAiKEzxSf4znF/BxYEZRNVQphp2R FvyBd6qCERaqkEs6A0jnLGQNj7SRGnkmhbxHNRBrsjwCyGbHff9qPQ3MoaplFeHdbREEht vAiq7wjUCrZc5Ew8Qb/Ujdsgm9iK3z09Wp/kVqVfXYRwP850I0M94VRSdutKmi1haOgEmb +KADodej114fTjs4vJNHTfEaGOyJT4m2ZHBUtpPiXCnKvcZj92msHBuIkZVqFJhaaZzhGV w1RZcLCgOWELeH4EDbtRa15T3L0rM+SbyP4k5zmT4s89G3BuaWOOupGyPtL5dQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667111000; a=rsa-sha256; cv=none; b=atSXvwjfEFXQ/9IqDVW79RkKysvuj8N2xOi9EZQIbugfMior9yO70+IKDgeNBXrfVEZWT5 egF4+lXWehvMTUfx5f79wP9sy0fxTUH8ceTW4TGl02K7IWLhSCNWKPtzBXxqjPhWCevj0B 7wyd09c4fbW/98dlKTxHaPDTolX5XEVyy5NO5HENfBxRy0wSP1B5VWP6AHmrZS9JbZeIvA tSaOoLZTKtW0KjfhNX7KUjHRhV0v2CERuYAAlDRMGSS8CKLCjBLciDvMklw9DwDGEERTuZ Tyok0H3Z7Pa2m0igWQF1xVGYbTraYM4Ud42bunzYUDimJBlg55xJ+/tCFfkbjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=agWakbWb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.76 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=agWakbWb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7CE4E39B8D X-Spam-Score: 5.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: jsiapPgWw+DF Hey! Thanks for getting back to me on this! :) Andrew Tropin writes: > On 2022-10-19 18:21, Ludovic Court=C3=A8s wrote: > >>> It looks like it starts twice and then exits both, but I'm not sure why. >>> I'm guessing it's the ~/.guix-home/activate and >>> ~/.guix-home/on-first-login that are trying to start it. > > ~/.guix-home/activate should be launched only by guix home reconfigure, > so it shouldn't be touched during startup of the session at all, also > they both have a condition, which must prevent the start of shepherd if > socket exists. Yeah I know that they both have a check for the pid file, I remember finding your bug report and patch earlier and hoping that it would fix my issues, although now I understand that this would never have helped. I thought that they might still both try to start shepherd, since neither check nor execution of shepherd is atomic, so I figured they might end up both starting shepherd, one creating the pid and starting, the other failing to create it and crashing, but I couldn't think of why the first one would stop as well then. Anyway, I guess that is completely wrong if they don't actually ever get run at the same time :) > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services/shepher= d.scm?h=3D883fb8f41b08a8455f16c736a83fb1ae8a3df0a1#n105 > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services/shepher= d.scm?h=3D883fb8f41b08a8455f16c736a83fb1ae8a3df0a1#n131 > > Tom, can you show your startup scripts, please (like xsession or > whatever you use for starting graphical environment)? Sharing home > environment config can be useful as well. Do you use some display/login > manager? My ~/.xinitrc is literally just: exec /gnu/store/rl6f55i52lldzmbgg6z0ywr41ni4kbjg-herbstluftwm-0.9.4/bin= /herbstluftwm --autostart /gnu/store/lqif0y90y7ipvf9aakdjisygnffk4999-autos= tart I use the lightdm display manager installed with the Archlinux package manager. My home configuration on my laptop should be based on this: https://git.sr.ht/~ryuslash/dotfiles/tree/7771b3e1fd16a30bee09b11ecbaf2b1b6= 9b3921b/item/oni/home/data/config.scm It's spread across a few files, so if there's anything specific you want to know please tell me, or if you need it in a different format I can provide that too, I figured this would be the easiest way. Thanks for your help! Cheers, Tom