From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 29 11:22:37 2023 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 To: raingloom Subject: Re: bug#52654: shepherd lacks error reporting 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52654 Cc: 52654@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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