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 yNCwAWs2TWQENQAASxT56A (envelope-from ) for ; Sat, 29 Apr 2023 17:23:23 +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 aBvCAGs2TWQ9iwAAG6o9tA (envelope-from ) for ; Sat, 29 Apr 2023 17:23:23 +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 7FB5C35E16 for ; Sat, 29 Apr 2023 17:23:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psmPg-0008B5-9B; Sat, 29 Apr 2023 11:23: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 1psmPe-0008Ai-By for bug-guix@gnu.org; Sat, 29 Apr 2023 11:23: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 1psmPe-0005V8-3W for bug-guix@gnu.org; Sat, 29 Apr 2023 11:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psmPd-0002Ww-PG for bug-guix@gnu.org; Sat, 29 Apr 2023 11:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#52654: shepherd lacks error reporting Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 29 Apr 2023 15:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52654 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: raingloom Cc: 52654@debbugs.gnu.org Received: via spool by 52654-submit@debbugs.gnu.org id=B52654.16827817579684 (code B ref 52654); Sat, 29 Apr 2023 15:23:01 +0000 Received: (at 52654) by debbugs.gnu.org; 29 Apr 2023 15:22:37 +0000 Received: from localhost ([127.0.0.1]:36391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psmPF-0002W7-41 for submit@debbugs.gnu.org; Sat, 29 Apr 2023 11:22:37 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:46296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psmPD-0002Vq-G9 for 52654@debbugs.gnu.org; Sat, 29 Apr 2023 11:22:35 -0400 Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-3ee339e8c2fso4708191cf.0 for <52654@debbugs.gnu.org>; Sat, 29 Apr 2023 08:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682781749; x=1685373749; 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=AgtEM6karZD0nvM7EfD5Xx+i8+lXwQNIZ4J5L/RIt9w=; b=Z7Nag6uYt6Ka4OUUZ2Vx5AxkD09ndkxTmJy5qtQmPKIcIA9u8t6Ya4pNXyX+W4Wl8h Ky2AcvRJ/MTdbJuOBCIHbLN+eJF/Lgub8pjb7j0P+E1G2SRuRbrLtogAk7jEIGKrkyxR pxjdJyErcWbDIh1dccEOhQzHBf6OoPJZhAYFytnCr9zgTAmX6BeHajmfvQmGPBEAwH4n ad3P5GMAcH5PFJhP55ChJCsp6ZXhHTTYz+cUUcIkS/tUV9SVjdVVIf6cy7Zg2aeKyCQR WCynocp2hjaLt9pMFdUidppKKFytVaFf+mJqkEuQZklFF5zpJj3+mhS/0pJqeH3C2hXU 1+wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682781749; x=1685373749; 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=AgtEM6karZD0nvM7EfD5Xx+i8+lXwQNIZ4J5L/RIt9w=; b=Co5fp7L4nQ/9fcDYpQtbsJm0i/R1VA9a6dMiBiWtVxE2A8nLbxolEY6BqpKnELTp4W nttOSmSW7AMqSl33ZaWHYGzS53VpuAjSsIY8Twpw/omM7Ba/x3XEWKD4ANRcu5nUygsY 1VhVZ9tlbVnL4+iGADlae10SYjICU54M0ykkAK75m3yHf+q344HJ7FgIOv3nFl20QqY/ XRvNB0i+1TDc1vtvzk737VtMfS2y9eD4NjkYSyzbeLoWqQtkDVUxgZrQOMlPUYwah9Qy cWmw5lsbLcaX+v/c6eG6nnb6U70JHLCrFzQM4oRu3xofWkH8dHBP2lYhW1dy70imCQT9 L4xw== X-Gm-Message-State: AC+VfDz1z4kny4vWBF6Rs6nsLhbJpzBPWc9N8e5SQDfaVogkk6SwMphv hfTqp9NSs3oM8jdpKOAe24DOz5WsaxM= X-Google-Smtp-Source: ACHHUZ7SyxMPxvrdNpSM6YgsPlhDSV/GE4C4UWVNKAoiWmkf38gH05ozbYltZ7G0UtrqMJHFM9UK9w== X-Received: by 2002:a05:622a:148e:b0:3ef:415f:191 with SMTP id t14-20020a05622a148e00b003ef415f0191mr14990493qtx.21.1682781749412; Sat, 29 Apr 2023 08:22:29 -0700 (PDT) Received: from hurd (dsl-155-245.b2b2c.ca. [66.158.155.245]) by smtp.gmail.com with ESMTPSA id z20-20020ac87f94000000b003b635a5d56csm7930893qtj.30.2023.04.29.08.22.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 08:22:28 -0700 (PDT) From: Maxim Cournoyer References: <20211219061320.7ef3bb8c@riseup.net> <20211219070207.1195510c@riseup.net> Date: Sat, 29 Apr 2023 11:22:27 -0400 In-Reply-To: <20211219070207.1195510c@riseup.net> (raingloom@riseup.net's message of "Sun, 19 Dec 2021 07:02:07 +0100") Message-ID: <87h6syaf2k.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682781802; a=rsa-sha256; cv=none; b=hwOrXSfsI3VLxJAfSI0gJxr28f0cO4Nl837QQiR63egxEGDe2a6DtEj05NTb8192ssy2+/ 06G+9ol0loVX85wJuSj8RYVHrd5sMzga8SbXPp01qYOjU/0CTZuoLumQMDUhc/YEEcgeXh 3tM2qDO/Vx58DfEmRWedY5skTtTbIlnqi5CooM2g2GyvUb0i1MaeZhGf23KyAWtt6qhd+G y4x3PWTTl9iegiHDx2HDuxt+pZhtFuhiYicbatfUXoM3YrmZ8CJDaIHkf70tdfyyHIJDbf ISnjrrX+RWlESluaNzh/P3SyU3+W6toB7HVbQwHzAA+s/wG+DWGeYVydBhNOPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Z7Nag6uY; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682781802; 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=AgtEM6karZD0nvM7EfD5Xx+i8+lXwQNIZ4J5L/RIt9w=; b=JN5VCDOlcbZiz3MK8P9xZoWuIrvTITWrCRZcls8Qs6XjuILw+D6hl3BK2Llq0cOSGj1+Xm 0oaJAx7APNcKB6Mag7qU8uwYhf4Zu8ttQitBgQW6DR05mdypcXaQ95zt51UYlAZNlU+Pjz 0+nlzuT9tfHuTS4rymqTBt1PRpBdTxs5OLS1h5k3v3v/WEPHTq9HFQpvm5V63JVE49fat+ F8yRP5LaGMfvOoBhKmp8ZbrxiPCd31+R1c8M2DRh440nXul6VWj+DThtcTD8gxw11sjvl9 zwmR8AlCqj3Omuiiaeedi3BHEDWqcbPYtbi0BkZ6MHcs97U9OHBQ63nhANdvtQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=Z7Nag6uY; 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-Spam-Score: 7.30 X-Spam-Score: 7.30 X-Migadu-Queue-Id: 7FB5C35E16 X-TUID: t+/+BK+uw8yx Hi, I also encountered that issue, it's really puzzling. Here's the problematic start slot that got my mpd test to hang the boot, with the last message being "Please wait while gathering entropy to generate the key pair;": --8<---------------cut here---------------start------------->8--- (start (with-imported-modules (source-module-closure '((gnu build activation))) #~(begin (use-modules (gnu build activation)) (let ((user (getpw #$username))) (define (init-directory directory) (unless (file-exists? directory) (mkdir-p/perms directory user #o755))) (for-each init-directory (cons '#$(map dirname ;; XXX: Delete the potential "syslog" ;; log-file value, which is not a directory. (delete "syslog" (filter-map maybe-value (list db-file log-file state-file sticker-file))))))) (make-forkexec-constructor (list #$(file-append package "/bin/mpd") "--no-daemon" #$config-file) #:environment-variables '#$environment-variables)))) --8<---------------cut here---------------end--------------->8--- The error was the lonely cons. Taking it out, the test then passed: --8<---------------cut here---------------start------------->8--- (start (with-imported-modules (source-module-closure '((gnu build activation))) #~(begin (use-modules (gnu build activation)) (let ((user (getpw #$username))) (define (init-directory directory) (unless (file-exists? directory) (mkdir-p/perms directory user #o755))) (for-each init-directory '#$(map dirname ;; XXX: Delete the potential "syslog" ;; log-file value, which is not a directory. (delete "syslog" (filter-map maybe-value (list db-file log-file state-file sticker-file)))))) (make-forkexec-constructor (list #$(file-append package "/bin/mpd") "--no-daemon" #$config-file) #:environment-variables '#$environment-variables)))) --8<---------------cut here---------------end--------------->8--- Shepherd should report the error, fail that one service and attempt to keep booting (if the service is not required by other critical ones). -- Thanks, Maxim