From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 cMTwKuFWh2QvCgEASxT56A (envelope-from ) for ; Mon, 12 Jun 2023 19:33:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OD/lKuFWh2TVfQEA9RJhRA (envelope-from ) for ; Mon, 12 Jun 2023 19:33:21 +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 1817A8FBE for ; Mon, 12 Jun 2023 19:33:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8lPb-0003KD-U5; Mon, 12 Jun 2023 13:33:03 -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 1q8lPa-0003Jk-17 for bug-guix@gnu.org; Mon, 12 Jun 2023 13:33:02 -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 1q8lPZ-0007wg-OY for bug-guix@gnu.org; Mon, 12 Jun 2023 13:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8lPZ-0001b4-Ks for bug-guix@gnu.org; Mon, 12 Jun 2023 13:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63982: Shepherd can crash when a user service fails to start Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 12 Jun 2023 17:33:01 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 63982@debbugs.gnu.org Received: via spool by 63982-submit@debbugs.gnu.org id=B63982.16865911506099 (code B ref 63982); Mon, 12 Jun 2023 17:33:01 +0000 Received: (at 63982) by debbugs.gnu.org; 12 Jun 2023 17:32:30 +0000 Received: from localhost ([127.0.0.1]:40465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8lP4-0001aI-7L for submit@debbugs.gnu.org; Mon, 12 Jun 2023 13:32:30 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:62865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8lP0-0001a2-SL for 63982@debbugs.gnu.org; Mon, 12 Jun 2023 13:32:28 -0400 Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-7606e639083so8441385a.1 for <63982@debbugs.gnu.org>; Mon, 12 Jun 2023 10:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686591141; x=1689183141; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=CnaxsL4EyLvGb4GDbwf3jtvwD2jWICJiyTH1LJK7HwY=; b=OSDTeV8zmo1/IRFf+d9QD85VlbeCtbTFKGXDle4xJVD5OlgPbUdixVpqN5DrUOGw3R Yn0nWXw3L5hJee4G5/MLdNQAQH7VUU1IV+VZVmQtfkrVQ75QVCH6Eh8oQMxoT+I99/mE 2f6gEsnZkcrh5WfMSWrt2AL4blkuk2diPJbVdyByHk4Mso31LNB7LCuRtnuXnQyM7xtL ee9gF6H0N8DTXixXS6y8HykRC91z/NKvH59AwlWRv6RmPIAHmZLAjFJZK4WAjYq+/VFX LDTp8JU8IgOCUIk4RLe9jPamXkXaRrA/xjCRQx88TIfvm+XnCeCs+Blrb7jgv6oynnpt 1ecw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686591141; x=1689183141; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CnaxsL4EyLvGb4GDbwf3jtvwD2jWICJiyTH1LJK7HwY=; b=kR2IRtTKNDb9Xci/Ak1rv8CP1GiuSCyBqdWrofahWPy4Idun2ZeXnDtjIn5ApoplIF JmHbe0tpT1Fd9dayDc3KaUYnArGvY5dDUqa3WTwd9fW/UXvc0c41cdIDl1/1LoFFecT0 a+eaxpX0LaLFYvOl0SunOKbqUF3zLShmFUL2cz7x441no9eVJmGL2Bp1B9LrC7d/gUBg lXyZXCuXhoG8tVLa8kOPIy6JphL4/xt7XhRa1XRQtgv3yhiFmQDmomp+xWHlUP1SUbEO V411poMCXrIU+k9GGAoH5FYSot2ghoB089JnWlRnQlHNWLwyptSHyzlhNcqu6VQPL+av WK8g== X-Gm-Message-State: AC+VfDwnoVBvigX67okqV2SR5JYjIrbZtUL5jA1795cSsRoFcgViUpP5 gDSKef8QMMO/R/07PH1QXjbQdYsCRLd27g== X-Google-Smtp-Source: ACHHUZ7mmnGL/ngtGa2d+lZTc+dxXmnPxbT4FkSToMPKW8UCLLvuCaLOmtXTdnv1rr2uadCzqHAdcQ== X-Received: by 2002:ad4:5aeb:0:b0:626:1d7c:6a31 with SMTP id c11-20020ad45aeb000000b006261d7c6a31mr15760360qvh.10.1686591140779; Mon, 12 Jun 2023 10:32:20 -0700 (PDT) Received: from hurd (dsl-151-174.b2b2c.ca. [66.158.151.174]) by smtp.gmail.com with ESMTPSA id z7-20020a0cda87000000b00626195bdbbdsm568657qvj.132.2023.06.12.10.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 10:32:19 -0700 (PDT) From: Maxim Cournoyer References: <87mt18blug.fsf@gmail.com> <87ilbsvlql.fsf@gnu.org> Date: Mon, 12 Jun 2023 13:32:18 -0400 In-Reply-To: <87ilbsvlql.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 12 Jun 2023 15:44:18 +0200") Message-ID: <87pm60wpr1.fsf@gmail.com> 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=1686591201; 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=CnaxsL4EyLvGb4GDbwf3jtvwD2jWICJiyTH1LJK7HwY=; b=k5HoLxOVJbi0iTGdYjc2+JkQDh6l+wyujq/Mx/uaSyRIPjTs0hD0dOPvc1lJEpMinc0U7m aox9N8kDGq7U/Y99N7NxDH5k39/rlcT+pMduv5VZsWXrPG8xULDsRygZk+/dh6Bxn66o2C IZYZ41gyNkkaV1kMZvuFKKlu0Dc9REwTSoXoKgEXUYltgpjL612IAnlUnxCIwA8fSdlXoX l60WrRrDqioJhkCDjgnobF9zvL9QGanPKd4BOVHdsnpb2TPjrTWAz7qi8DYzgg5hr6Wvla Crmgy997xTNXMB1aFYSQTbQJ2bZbk/hBWNxNe8WpAvwJsLvU6GmIj+820iNIUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OSDTeV8z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1686591201; a=rsa-sha256; cv=none; b=AngSFKYQR0XenBGSiwJ8rnqC+3MYMvoM75F3ssU6li4gB+sDMl4TFFPauM6cxHSz0LYb5a CyIRVR4hTmPsRUy5D6w7TI/3VNcZku3r9ERL3y3kme07ZNIykxDW59ioFOKdW4wumDUgie Oy7Jvl4Fy3Af5ABdifULpjZv2pYSad3D7Wbaifz4jP0gYK3xxxzX0GAzkQ/68EFTYoj9Ym BD1YlfH8+/hPMBsL+7/C6B+vA38d+vZCuSEGreIvBFf6QYtOOZlQ4m7JG2s0kRv/jhu/yA hF0O+LFVY6uVXoNgI1n3dihVYIa2yk22nGULmpKU6nOvw7ipx6K7XDwPFBNRJQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=OSDTeV8z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 1817A8FBE X-Spam-Score: -0.62 X-TUID: TeNKxQalJMqI Hi Ludovic! Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> rm /run/user/1000/shepherd/socket >> >> $ /gnu/store/y826g8wrpzskcs82ffxppj7mmz257ksi-shepherd-0.10.1/bin/shephe= rd >> Starting service root... >> Service root started. >> Service root running with value #t. >> Service root has been started. >> WARNING: Use of `load' in declarative module (#{ g119}#). Add #:declara= tive? #f to your define-module invocation. >> >> Some deprecated features have been used. Set the environment >> variable GUILE_WARN_DEPRECATED to "detailed" and rerun the >> program to get more information. Set it to "no" to suppress >> this message. >> Starting service gpg-agent... >> >> $ herd status >> herd: error: /run/user/1000/shepherd/socket: No such file or directory > > Thanks for the detailed bug report! > > 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. > If you wish to test it, you can use the =E2=80=98shepherd=E2=80=99 channe= l. 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 It'd be nice to have this in the Shepherd doc for easy copy & paste. > 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: --8<---------------cut here---------------start------------->8--- $ 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 --8<---------------cut here---------------end--------------->8--- =20 Interestingly, the Emacs client is usable. It doesn't change from there, and requesting it to be stopped hangs Shepherd: --8<---------------cut here---------------start------------->8--- $ herd stop emacs --8<---------------cut here---------------end--------------->8--- 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: --8<---------------cut here---------------start------------->8--- $ 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 --8<---------------cut here---------------end--------------->8--- Etc. if I comment that one (now hanging on starting ibus-daemon). It seems something is still off? Thanks for working toward a fix! --=20 Thanks, Maxim