From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cMHnNu+yj2TFWwEASxT56A (envelope-from ) for ; Mon, 19 Jun 2023 03:44:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cN/oNe+yj2RVSgEAG6o9tA (envelope-from ) for ; Mon, 19 Jun 2023 03:44:15 +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 4A013D59D for ; Mon, 19 Jun 2023 03:44:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qB3w4-00019r-4A; Sun, 18 Jun 2023 21:44: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 1qB3w2-00019T-13 for bug-guix@gnu.org; Sun, 18 Jun 2023 21:44: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 1qB3w1-0003uM-Na for bug-guix@gnu.org; Sun, 18 Jun 2023 21:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qB3w1-0005pv-Il for bug-guix@gnu.org; Sun, 18 Jun 2023 21:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63982: Service hangs in 'starting' with Shepherd 0.10 (was: 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, 19 Jun 2023 01:44: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: moreinfo To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 63982@debbugs.gnu.org Received: via spool by 63982-submit@debbugs.gnu.org id=B63982.168713898822363 (code B ref 63982); Mon, 19 Jun 2023 01:44:01 +0000 Received: (at 63982) by debbugs.gnu.org; 19 Jun 2023 01:43:08 +0000 Received: from localhost ([127.0.0.1]:55311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB3v9-0005oc-Cd for submit@debbugs.gnu.org; Sun, 18 Jun 2023 21:43:07 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:53287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB3v7-0005o9-5m for 63982@debbugs.gnu.org; Sun, 18 Jun 2023 21:43:05 -0400 Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-3fde9d3868fso8754681cf.2 for <63982@debbugs.gnu.org>; Sun, 18 Jun 2023 18:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687138979; x=1689730979; h=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=NPfaQZb0+Cxic9moDxNDUSCnQAU31ghcdXK/3eaP12U=; b=bo9jHJmaO4BjthH67LjY0sdifMqgEyfGdpIDXSG/7xWSolP0ql85a6nSHTaaOPkpQk L9DNatRvJPXLQVa1fNE52i+XHbmEBwsPSki2TLiy77v+oZDsZ8K3/adxKdmaU2vtrcKE 0vsffoFSk2AnqydE4T0lIfqOkuFRmyURhBXis2j5rTaA+1Vf7Wcpidhh1B+lC+zN9KEM QQdE8QtVoWXpRg2Ey1mKx+NWyXelu9D15bYU8NnG5rXxLppMQeHUXOQEjt3Tt9xDPLKm DfvWP42hmASd3k0R0yWN9OYmwc7mZr3r/tlHn1jFoA6o+mXnuH9GMYziY5jMZlSWaySj 3zGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687138979; x=1689730979; h=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=NPfaQZb0+Cxic9moDxNDUSCnQAU31ghcdXK/3eaP12U=; b=dvWaY+TaoEPGWsTjAeyCzl2N7+eUvmhZD0/mQbq0tQZsuYFb6VZWmDS4XrL8DSHiBa 0Rx454vaXujQMUO7zl5kj6yLOOzTVOW4PZDuGagynt3ZEs65om9c5dXlMiPQoErxO07c TGhxXdG+pWJPWS1A6cgxQcTF76LkHvrep7O/GKBCKJbGRwZ16LIuA4q31prUi/DiPqZT dDIVZWeDD425jKFD4GGjoNUPDg/p2AxpFRV+nHx84/MaWK+s/XIysh5E7XpKWAcDphRC TtYoXnEQY6UrBuLvuO8zkS7BDYM+tzICf5mKqK0nQKR28EYnH3B8EjJD98UYpLeVBCI0 jjWw== X-Gm-Message-State: AC+VfDzD5OHmAsh92AveFRICyfY5e8BqsybAZZJGbV4x5ZHDL4QOFf4u b6zdZ/xIbLY+ohCPM3jvRUOg5VnYdXs= X-Google-Smtp-Source: ACHHUZ6rvfppkcWfqw1HTelIQS/Mu1CcBNay7LpiZxTd9eXlOpX44NjFr9f0QSzyAajEeJwKdUBHkg== X-Received: by 2002:a05:6214:2486:b0:61a:c2bf:9f0b with SMTP id gi6-20020a056214248600b0061ac2bf9f0bmr2213422qvb.6.1687138979324; Sun, 18 Jun 2023 18:42:59 -0700 (PDT) Received: from hurd (dsl-10-130-100.b2b2c.ca. [72.10.130.100]) by smtp.gmail.com with ESMTPSA id y9-20020a0ce049000000b0062628f1d1dfsm93203qvk.138.2023.06.18.18.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jun 2023 18:42:58 -0700 (PDT) From: Maxim Cournoyer References: <87mt18blug.fsf@gmail.com> <87ilbsvlql.fsf@gnu.org> <87pm60wpr1.fsf@gmail.com> <87o7lirq9a.fsf@gnu.org> Date: Sun, 18 Jun 2023 21:42:57 -0400 In-Reply-To: <87o7lirq9a.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 14 Jun 2023 17:57:05 +0200") Message-ID: <87zg4wrzvi.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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=1687139055; 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: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=NPfaQZb0+Cxic9moDxNDUSCnQAU31ghcdXK/3eaP12U=; b=Zcr1x66aafD/oKW1L7b5SY4Y0x594+E7xmNCB44SnwBsvT1hqEmNQfnQgJ8rivgORuMlvk IGpKf5C54AWNGRqC1Amla2HcqeyqD7sk488SzVo/8sYbvRmbhclUep9Q2jfPc/0rZrw1kB a457iC0EuuKyyP/0rTak7IFDetVBoeuo7OAwvEKoQpepINjm7YSQ5/7EUXmpyt5X26prjC 4IqAbYyyS3w5Ul2B1XPndFCWwXghv5gcjwMKiZ162djOPFjKzeY6jfHSxBK0Z1R6MAMTOp 5ohgOCX4E18UYAQRbmM9AB0ZdZkKaoxPcHx16slXqy/Gnj9YZWiGDdUb3lRn7Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=bo9jHJma; 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=1687139055; a=rsa-sha256; cv=none; b=SY1ZDR9W314rUffBKLq3Vjm/t3Ocamo3XttWG7uLch0ClADoIAM9RPdwNr01sAPflMXq60 0nx6sS2eM1HCypyMGCU0gJLHrym7G9R0KX1+DCoeqSp4Q0fKuIYE1DpowEsvl+EGKXztcP QdsCxMSg+1XmcO4AHL48AxOw4W9761blbK3yaZawX+jMgCp6+73ATaoqvZtqhnk4U+hWzJ p2Eq+XHHY/yzwrW/Stb1HyvivfFJkAo0+Xk7ZhHqfqyssMuxxReJCbAE9ZD80F8OQw8q8R OV6lamxYWNRVS8zyD1pBjhbM5fKrUFeRM5Tt0iwA/uLIlvcTGvidh2fElSV9Zw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=bo9jHJma; 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: 4A013D59D X-Spam-Score: -2.15 X-TUID: 50HyLM4GrSId --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Ludovic Court=C3=A8s writes: > 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= started using > the =E2=80=9CReported by=E2=80=9D convention before Git came into existen= ce=E2=80=A6). > >>> If you wish to test it, you can use the =E2=80=98shepherd=E2=80=99 chan= nel. >> >> 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")))) >> >> >> 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. Neat, thank you. >>> 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? Yes! Which is surprising, because it's actually running fine, and Shepherd 0.9.3 didn't have this issue (perhaps because it only knew of a started/stopped service). The other surprising thing is that because it thinks that Emacs hasn't finished starting, it doesn't even attempt to try starting the other services; they remain stopped although they should work. [...] > Looks like it. Could you share ~/.local/var/log/shepherd.log? I have something a bit more detailed, with various versions (the logs are under ~/.local/state/shepherd/shepherd.log by default). If you need to, you should be able to reproduce on your end using the attached ~/.config/shepherd/{init.scm,services.scm} files (and ensuring the service commands are on your PATH): --8<---------------cut here---------------start------------->8--- Using /gnu/store/dblbnj1yra4yrrfjbnzsa0ldcl3170ap-shepherd-0.9.1/bin/shephe= rd $ herd status Started: + Emacs + Gpg-agent + ibus-daemon + jackd + root + workrave Using /gnu/store/cdc1gzbp3q15kdiwn2i5j3437jwx61ac-shepherd-0.9.2/bin/shephe= rd $ herd status Started: + emacs + gpg-agent + ibus-daemon + jackd + root + workrave Using /gnu/store/a9jdd8kgckwlq97yw3pjqs6sy4lqgrfq-shepherd-0.9.3/bin/shephe= rd $ herd status Started: + emacs + gpg-agent + ibus-daemon + jackd + root + workrave ~/.local/state/shepherd/shepherd.log: 2023-06-18 21:04:47 Service root d=C3=A9marr=C3=A9. 2023-06-18 21:04:57 Service emacs d=C3=A9marr=C3=A9. 2023-06-18 21:04:57 Service jackd d=C3=A9marr=C3=A9. 2023-06-18 21:04:57 Service gpg-agent d=C3=A9marr=C3=A9. 2023-06-18 21:04:57 Service ibus-daemon d=C3=A9marr=C3=A9. 2023-06-18 21:04:57 Service workrave d=C3=A9marr=C3=A9. Using /gnu/store/ahzl8vxxcd5bqlljwgn8wkp4884sr72l-shepherd-0.10.99-tarball/= bin/shepherd $ herd status Started: + root Starting: ^ emacs Stopped: - gpg-agent - ibus-daemon - jackd - workrave ~/.local/state/shepherd/shepherd.log: 2023-06-18 21:06:12 Starting service root... 2023-06-18 21:06:12 Service root started. 2023-06-18 21:06:12 Service root running with value #t. 2023-06-18 21:06:12 Service root d=C3=A9marr=C3=A9. 2023-06-18 21:06:12 Starting service emacs... 2023-06-18 21:06:12 [bash]=20 2023-06-18 21:06:12 [bash] Warning: due to a long standing Gtk+ bug 2023-06-18 21:06:12 [bash] https://gitlab.gnome.org/GNOME/gtk/issues/221 2023-06-18 21:06:12 [bash] Emacs might crash when run in daemon mode and th= e X11 connection is unexpectedly lost. 2023-06-18 21:06:12 [bash] Using an Emacs configured with --with-x-toolkit= =3Dlucid does not have this problem. 2023-06-18 21:06:13 [bash] Loading time (native compiled elisp)... 2023-06-18 21:06:13 [bash] Loading time (native compiled elisp)...done 2023-06-18 21:06:13 [bash] Loading /home/maxim/.emacs.d/recentf... 2023-06-18 21:06:13 [bash] Loading /home/maxim/.emacs.d/recentf...done 2023-06-18 21:06:13 [bash] Cleaning up the recentf list... 2023-06-18 21:06:13 [bash] Cleaning up the recentf list...done (0 removed) 2023-06-18 21:06:13 [bash] .emacs: Warning: Use keywords rather than deprec= ated positional arguments to `define-minor-mode' 2023-06-18 21:06:15 [bash] Preparing diary... 2023-06-18 21:06:15 [bash] No diary entries for Sunday, June 18, 2023: Fath= er's Day 2023-06-18 21:06:15 [bash] Preparing diary...done 2023-06-18 21:06:15 [bash] Appointment reminders enabled 2023-06-18 21:06:16 [bash] Loading /home/maxim/.emacs.d/emms/cache... 2023-06-18 21:06:16 [bash] Loading /home/maxim/.emacs.d/emms/cache...done 2023-06-18 21:06:18 [bash] [yas] Prepared just-in-time loading of snippets = successfully. 2023-06-18 21:06:20 [bash] [yas] Prepared just-in-time loading of snippets = successfully. 2023-06-18 21:06:22 [bash] Starting new Ispell process aspell with english = dictionary... \=20 2023-06-18 21:06:22 [bash] Starting new Ispell process aspell with english = dictionary...done 2023-06-18 21:06:22 [bash] Starting Emacs daemon. --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=init.scm Content-Transfer-Encoding: base64 Ozs7IFNoZXBoZXJkIFVzZXIgU2VydmljZXMKKGxvYWQgInNlcnZpY2VzLnNjbSIpCgoocmVnaXN0 ZXItc2VydmljZXMKIGVtYWNzCiBncGctYWdlbnQKIGphY2tkCiBpYnVzLWRhZW1vbgogd29ya3Jh dmUpCgo7OyBTZW5kIHNoZXBoZXJkIGludG8gdGhlIGJhY2tncm91bmQuCihhY3Rpb24gJ3NoZXBo ZXJkICdkYWVtb25pemUpCgo7OzsgRklYTUU6IEFsbCBkaXNhYmxlZCBiZWNhdXNlIG9mIHRoaXMg YnVnOiBodHRwczovL2lzc3Vlcy5ndWl4LmdudS5vcmcvNjM5ODIKOzsgU2VydmljZXMgdG8gc3Rh cnQgd2hlbiBzaGVwaGVyZCBzdGFydHM6Cihmb3ItZWFjaCBzdGFydCAnKGVtYWNzCiAgICAgICAg ICAgICAgICAgIGphY2tkCgkJICBncGctYWdlbnQKCQkgIGlidXMtZGFlbW9uCiAgICAgICAgICAg ICAgICAgIHdvcmtyYXZlKSkK --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=services.scm Content-Transfer-Encoding: base64 KGRlZmluZSBlbWFjcwogIChtYWtlIDxzZXJ2aWNlPgogICAgIzpwcm92aWRlcyAnKGVtYWNzKQog ICAgIzpyZXF1aXJlcyAnKCkKICAgICM6c3RhcnQgKG1ha2Utc3lzdGVtLWNvbnN0cnVjdG9yICJl bWFjcyAtLWRhZW1vbiIpCiAgICAjOnN0b3AgKG1ha2Utc3lzdGVtLWRlc3RydWN0b3IgImVtYWNz Y2xpZW50IC0tZXZhbCBcIihraWxsLWVtYWNzKVwiIikpKQoKKGRlZmluZSBpYnVzLWRhZW1vbgog IChtYWtlIDxzZXJ2aWNlPgogICAgIzpwcm92aWRlcyAnKGlidXMtZGFlbW9uKQogICAgIzpyZXF1 aXJlcyAnKCkKICAgICM6c3RhcnQgKG1ha2Utc3lzdGVtLWNvbnN0cnVjdG9yICJpYnVzLWRhZW1v biAtLXhpbSAtLWRhZW1vbml6ZSAtLXJlcGxhY2UiKQogICAgIzpzdG9wIChtYWtlLXN5c3RlbS1k ZXN0cnVjdG9yICJwa2lsbCBpYnVzLWRhZW1vbiIpKSkKCihkZWZpbmUgamFja2QKICAobWFrZSA8 c2VydmljZT4KICAgICM6cHJvdmlkZXMgJyhqYWNrZCkKICAgICM6cmVxdWlyZXMgJygpCiAgICAj OnN0YXJ0IChtYWtlLXN5c3RlbS1jb25zdHJ1Y3RvciAiamFja2QgLWQgYWxzYSAmIikKICAgICM6 c3RvcCAobWFrZS1zeXN0ZW0tZGVzdHJ1Y3RvciAicGtpbGwgamFja2QiKSkpCgooZGVmaW5lIGdw Zy1hZ2VudAogIChsZXQgKChwaW5lbnRyeSAoc3RyaW5nLWFwcGVuZCAoZ2V0ZW52ICJIT01FIikK CQkJCSAiLy5ndWl4LXByb2ZpbGUvYmluL3BpbmVudHJ5IikpKQogICAgKG1ha2UgPHNlcnZpY2U+ CiAgICAgICM6cHJvdmlkZXMgJyhncGctYWdlbnQpCiAgICAgICM6cmVxdWlyZXMgJygpCiAgICAg ICM6c3RhcnQgKG1ha2Utc3lzdGVtLWNvbnN0cnVjdG9yCgkgICAgICAgKHN0cmluZy1hcHBlbmQg ImdwZy1hZ2VudCAtLWRhZW1vbiAiCgkJCSAgICAgICItLXBpbmVudHJ5LXByb2dyYW0gIiBwaW5l bnRyeSkpCiAgICAgICM6c3RvcCAobWFrZS1zeXN0ZW0tZGVzdHJ1Y3RvciAiZ3BnY29uZiAtLWtp bGwgZ3BnLWFnZW50IikpKSkKCihkZWZpbmUgd29ya3JhdmUKICAobWFrZSA8c2VydmljZT4KICAg ICM6cHJvdmlkZXMgJyh3b3JrcmF2ZSkKICAgICM6cmVxdWlyZXMgJygpCiAgICAjOnN0YXJ0ICht YWtlLXN5c3RlbS1jb25zdHJ1Y3RvciAid29ya3JhdmUgJiIpCiAgICAjOnN0b3AgKG1ha2Utc3lz dGVtLWRlc3RydWN0b3IgInBraWxsIC05IHdvcmtyYXZlIikpKQo= --=-=-= Content-Type: text/plain -- Thanks, Maxim --=-=-=--