From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oJKMJ5vjiWTu4gAASxT56A (envelope-from ) for ; Wed, 14 Jun 2023 17:58:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mBPYJpvjiWQ0ggEAG6o9tA (envelope-from ) for ; Wed, 14 Jun 2023 17:58:19 +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 211F413FDB for ; Wed, 14 Jun 2023 17:58:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9Ssm-0003dm-NZ; Wed, 14 Jun 2023 11:58:04 -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 1q9Ssl-0003dO-8U for bug-guix@gnu.org; Wed, 14 Jun 2023 11:58: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 1q9Ssk-000492-W8 for bug-guix@gnu.org; Wed, 14 Jun 2023 11:58:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9Ssk-0008M0-Cj for bug-guix@gnu.org; Wed, 14 Jun 2023 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63982: Shepherd can crash when a user service fails to start Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Jun 2023 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63982 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 63982@debbugs.gnu.org Received: via spool by 63982-submit@debbugs.gnu.org id=B63982.168675823532041 (code B ref 63982); Wed, 14 Jun 2023 15:58:02 +0000 Received: (at 63982) by debbugs.gnu.org; 14 Jun 2023 15:57:15 +0000 Received: from localhost ([127.0.0.1]:45207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Srz-0008Kj-DA for submit@debbugs.gnu.org; Wed, 14 Jun 2023 11:57:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Srx-0008KX-OI for 63982@debbugs.gnu.org; Wed, 14 Jun 2023 11:57:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Srs-0003xi-Fr; Wed, 14 Jun 2023 11:57:08 -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=FVMKzsUlLo4gx6MBv/qo5gt27pNBOPSsol1wp0wkqLA=; b=aIF5dOBUvobwEHoB6619 m+TQCrmQVBMy3iDSPWLPQxckVsOnUMRhbAezG3Zc6lLs7KT1Tj7T24lBDCTHRy+STX6433FN+0olD BVvVXbopUDCj847JRa7d0eKwwNryeP7jCOfP43VaO+8ois6aFq99fUk3ANz3puJ0cZep/8oaLPOQK FKbQzjd+87HGyh5s6m9gKcomK7oojGpuy5tS6GvdZlGO7nR3yoL1BTLgvfHCrEHrzYGBqq2ak+cRW WC9scSwNMp0XyJQ9lMbTDSusslHzgDeoaWSADtnY8/pKdxD0jgv0USzA2plaTK6fZWq8op2gM7qKH o9j8f5WOnf6c0A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Srs-0003JT-3P; Wed, 14 Jun 2023 11:57:08 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87mt18blug.fsf@gmail.com> <87ilbsvlql.fsf@gnu.org> <87pm60wpr1.fsf@gmail.com> Date: Wed, 14 Jun 2023 17:57:05 +0200 In-Reply-To: <87pm60wpr1.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 12 Jun 2023 13:32:18 -0400") Message-ID: <87o7lirq9a.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686758299; 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=FVMKzsUlLo4gx6MBv/qo5gt27pNBOPSsol1wp0wkqLA=; b=J8JwPp7+n3nE0kw1vfwjCjIt5SOP71m3JC7Ay/PZEsPWZ06M1zYuAjhMeP9whTV+ywLKGg aVblGu4joVO3Mm205LTgIclhmXRlvWbdk/hlzvqvJhHzJgJeJ8tFUuk102KM0DWe8eRCKX 41JYyFTF7l2Eo3zxHuZIbkydrpy31eWmX6WIsPKbbbH4riOI7YdoFBIT1k4panvQrPwvGp 2Rz+WBl+ix7siVSN2rRSriEVYbcy8lo8AqkOkM7YwTCRTfr5Bt5LBgoWJdr6nWU/2RByK6 NGuCnJiBQ/eIMmJAXb4mlYq8JA6qDIgS86bUu2fTsHxlMeok5DfqE84ijVVP7A== 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=aIF5dOBU; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686758299; a=rsa-sha256; cv=none; b=rwpZoNSvscFyTm2IzObqi/vEfz8IuTjC5mz+i3T4RUaZeXEUtfiCOW5wDWscb7MchfTqpU vl5TXQAMJLLtB4wf8WBKM4DHeQ0TvA0czLI05f79Nrhopeuftv83E5PKiXiUOmn3xjmrel b/Ux/QoVMk57bgBb80sYN95RdLzgLzDmlWqvU8OSXcG5ApJj4gfKkyP6U2Pd6NwBRTYt0f 2YjEAzggbLmXuPPBtc18zeEuWuJc4LHHGwRHJSnT1PRVElbKPaIu85Yqq+aFNCd1J7T8Hp ngS1Im4I5cFuBLKZPH6HaOZN5vLnBKA1iRRsFaGzDFvw6NTLBBTtr/M7TjJRNw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=aIF5dOBU; 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: 211F413FDB X-Spam-Score: -4.13 X-TUID: FOPePZ+ctuXK Hi, Maxim Cournoyer skribis: >> I believe this is fixed by Shepherd commit >> 24c964021ebd3d63ce6e22808dd09dbe16116a6c, which introduces an additional >> change: loading the config file asynchronously. > > Nitpick: I'd use a git message tag for 'Reported-by', as can be inserted > in the commit buffer in Magit with C-c C-p. They should be placed at > the bottom of the git message to be considered by tools parsing them. Neat, I didn=E2=80=99t know about it, I=E2=80=99ll do that now (I think I s= tarted using the =E2=80=9CReported by=E2=80=9D convention before Git came into existence= =E2=80=A6). >> If you wish to test it, you can use the =E2=80=98shepherd=E2=80=99 chann= el. > > I've done so by placing in my ~/.config/guix/channels.scm file: > > (channel > (name 'shepherd) > (url "https://git.savannah.gnu.org/git/shepherd.git") > (introduction > (make-channel-introduction > "788a6d6f1d5c170db68aa4bbfb77024fdc468ed3" ;2022-05-21 > (openpgp-fingerprint > "3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5")))) >=20=20=20=20=20=20=20=20=20=20=20=20 > > It'd be nice to have this in the Shepherd doc for easy copy & paste. I=E2=80=99ll add that to =E2=80=98README=E2=80=99. >> Let me know how it goes! > > I've edited my ~/.xsession file to use > /gnu/store/ahzl8vxxcd5bqlljwgn8wkp4884sr72l-shepherd-0.10.99-tarball, > and I'm now seeing this: > > $ herd status > D=C3=A9marr=C3=A9s=C2=A0: > + root > Starting: > ^ emacs > Arr=C3=AAt=C3=A9s=C2=A0: > - gpg-agent > - ibus-daemon > - jackd > - workrave Uh, so it remains in =E2=80=9Cstarting=E2=80=9D state? > Interestingly, the Emacs client is usable. It doesn't change from > there, and requesting it to be stopped hangs Shepherd: Technically it=E2=80=99s waiting for =E2=80=98emacs=E2=80=99 to be in =E2= =80=9Crunning=E2=80=9D state before attempting to stop it. > If I comment out the Emacs service from the ~/.config/shepherd/init.scm > file, the same seems to happen on my next service, gpg-agent: > > $ herd status > D=C3=A9marr=C3=A9s=C2=A0: > + root > Starting: > ^ gpg-agent > Arr=C3=AAt=C3=A9s=C2=A0: > - emacs > - ibus-daemon > - jackd > - workrave > > Etc. if I comment that one (now hanging on starting ibus-daemon). It > seems something is still off? Looks like it. Could you share ~/.local/var/log/shepherd.log? Thanks, Ludo=E2=80=99.