From unknown Sun Jun 15 08:18:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33968 <33968@debbugs.gnu.org> To: bug#33968 <33968@debbugs.gnu.org> Subject: Status: errors in shepherd service constructors are not logged and lead to misleading status Reply-To: bug#33968 <33968@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:18:14 +0000 retitle 33968 errors in shepherd service constructors are not logged and le= ad to misleading status reassign 33968 guix submitter 33968 Florian Dold severity 33968 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 03 16:36:40 2019 Received: (at submit) by debbugs.gnu.org; 3 Jan 2019 21:36:40 +0000 Received: from localhost ([127.0.0.1]:46025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAfP-0000xs-4F for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:36:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gfAfN-0000xh-40 for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:36:37 -0500 Received: from lists.gnu.org ([208.118.235.17]:54226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfAfM-0005NX-Oe for submit@debbugs.gnu.org; Thu, 03 Jan 2019 16:36:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfAfL-000717-Jo for bug-guix@gnu.org; Thu, 03 Jan 2019 16:36:36 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfAfG-0005F1-Lt for bug-guix@gnu.org; Thu, 03 Jan 2019 16:36:35 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:36879) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfAfE-0005BB-Lt for bug-guix@gnu.org; Thu, 03 Jan 2019 16:36:30 -0500 Received: by mail-wm1-x32b.google.com with SMTP id g67so31537360wmd.2 for ; Thu, 03 Jan 2019 13:36:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-language; bh=bf0CWNbSVHsbUlOu6MgY6QeW7LGKC7EprDUCSfAoG1k=; b=k/9G9h/Jk/l9LJE/0pQdX+/4aEB9ng/2XIATe9BXUQADxwqTcyOimeCr52MqkPrq1W yFy7tQp9h4kX8mnPdFvMplK0xsdQXB2Ks8a5JY/srkV4qOhr59w0MaQ8YVYYPM9ueSZj TlTaKNHstG0YcrKZz7IN6mZgx1fj58HVyi5oKfee210DKPNKOsVTrhJoeZEmU6/7xGQS ykSaJUgNM1K6oskiklP/+lATJn44ddjEjQUtiV6TH99+DOD5HcVZ+9t6rfPhlDi7Q4lq MzJIpWqRRoAfSfiDx5nZcpZDhomSGDelSKzVz1KiSn33RXBb449joOE7jXMJjLx3BOpB aRCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:openpgp:autocrypt:message-id :date:user-agent:mime-version:content-language; bh=bf0CWNbSVHsbUlOu6MgY6QeW7LGKC7EprDUCSfAoG1k=; b=n+Jzol9OMfPD8G+EV8lUzI2jSNCPlLT0//BzaCy2ThH9y/qGQSmAwUWFUv9xF8gd7w 7CnarTtomxHSQp7Ps7n7lkv4Z+g+2ZLYJ+V1pSE8vzNkY/5U1cqCTGIbb1Q/DF2i2ZIf CKBI5PLDWRmP9SZjQnKx8XNwDQcLyhNXy9cpAg5z25DPfl/BdN/v0R3ulUXV0KIp8RB2 trnhQF6YHkiOMwJK9rzs1I0YXmQK6ql29sGb7T4ljqmFBlb2p5WByrivRigW0wQH4kRW NYlpk8u6GXUIonA5D4M0gCSPz4K7ZJfcep3blLK6nCTo5l17dW4/HepKpmQ+QsNpgT+g 4qhw== X-Gm-Message-State: AJcUukfN+MiOYCfczxq+gel2pHVpAr2/lfKZsDwuRPeGFrvVm6qja5K6 UL32iGtpKf3WkWYqw8ILQ+4YM/oh X-Google-Smtp-Source: ALg8bN4MxsQ7/Xxz2VOku+PkTXNg/NvM4d6+1GlSFFYZDFjAD7WtLkS7V64t8nGsS8jxcktF2t/MDA== X-Received: by 2002:a1c:8d12:: with SMTP id p18mr42708866wmd.31.1546551382709; Thu, 03 Jan 2019 13:36:22 -0800 (PST) Received: from [192.168.178.64] (p508876EC.dip0.t-ipconnect.de. [80.136.118.236]) by smtp.gmail.com with ESMTPSA id c129sm35173081wma.48.2019.01.03.13.36.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 13:36:21 -0800 (PST) To: bug-guix@gnu.org From: Florian Dold Subject: errors in shepherd service constructors are not logged and lead to misleading status Openpgp: preference=signencrypt Autocrypt: addr=florian.dold@gmail.com; keydata= mQENBFr0DFABCADIf6L8MOVfrvjN8vTPngMjxGk4gpaRAYydTYMt8I7A746E8fI4vIp66b7x ZmT+RwnR+nydTLdAMEpwsqxOUtBLBG+63v/pOFEqHaWWjoWB9tC2GKa23o5accKdeVwZAUSC d8PMCTY0An25yjspAPFeSuS8OVhNcJgqwMRLrGAeb6nOiHzNgbcH3x+z8pvZ6uEmfxOmnPxz eJ2YkRB8EZtdz2kVSAs8hnDXXhA2kPYu299N42iOnsAI/ZQLw4L4CciFD9g7yHyjSGf2ugLd v2MY/e7bg2MbrpOjl9F6tkWcMG47Q15Zg5h5i1TUWb5u6BYwTWegxjoF8aghsD4YmlDdABEB AAG0JUZsb3JpYW4gRG9sZCA8Zmxvcmlhbi5kb2xkQGdtYWlsLmNvbT6JAVQEEwEIAD4WIQTS icR018Yz2C9+q1hf73L/w6CZwgUCWvQMUQIbAwUJAeEzgAULCQgHAgYVCgkICwIEFgIDAQIe AQIXgAAKCRBf73L/w6CZwsutCACiK6SMco78RVXS0zx7nQZl5BwHr8hVj4NjMT2PgMy/HvBN kgE6QZ+nCyu4Oc25xg7Rzj0Msp66eFGJzDI9EHM0yNOvWuIrySihESd9cp8kn5oe27Wds356 MW/TVYn/S2qKAiEFzAa+pq4H7kYqOfcG3uqNH5wf1DfCKQFW3+1CBR5H2lATLqJLHDybr4S9 h+9+8LUw3KBw99mwi4UjYYyCApmXH1IuOMOMDG0r8zGxyT6SNb/A1BcCD6bjcfy8IXrNgq00 trnLEYqil17lWwV3TcHQVsMWDU2NzwX4+4rBELlLR/TOYK+XRZhgFiBH9OlvKQ+iMSdDf1SS G8YxoBP+uQENBFr0DFABCADBYR9GXjzz2FoWRTPUM9IpHBwJuBfxo/ITjwjY1+4LMnoZQjV1 TugJJoDFRQdTXod+w1iGtLCpZnWc8cgatmEPv7U6X9++X/RjrOtP/RBFRIx2gFg+QNXluxut U6aX4ag2EQSrst4CGtAJIXZvpNqv6GP11NO9aqTkrHnjAMLyO1MbtSXv3wohGtBPjGOCXmhG kOu0o27edqMPyoTjntksg6gTQoh1I1jQLVH5W1HWr0TxQnzSTloqHGf+rRYBlu5F4COeb2JD c1bqxaJMpXzA0IMGEFOeUPN6k6fvaadAcdGN6apLmU4jhhizAC0FvQNEWChd5WTVWR7DP5Uc gOSHABEBAAGJATwEGAEIACYWIQTSicR018Yz2C9+q1hf73L/w6CZwgUCWvQMUAIbDAUJAeEz gAAKCRBf73L/w6CZwjXsB/0QCZvO+chvdd719yAFLEAkhGxPeolvJaGudg1AY37dx0NaeBhG DzE6kWXCSD0Sp/1+36hTv680+I+L9gQW9p3mZRyT/syI63aEMIPAWCCVy7OokujVs0F8oozI CJexqdMP7jho5zDU9ecIMNo7zOo7+U4mfNPnS70wJmdBO2s9edVmXkfkEzuL6fGuDFdjC3le AfLLDlYsZ/7jUWX9UF+U05mjSI+1w3vmUigufKdf3h65s4xcgRr+BR0uuAG81oJ+/eiEyv+i yo2U+n+RaH9yqO4rrMgQFnMrfr0JQ6CDSklup4LRPjpjvdqX900QkVWErvMxDnC66pyur0o/ 3rSx Message-ID: <7c7f7030-a0f2-5fd0-7d02-f203277d7bba@gmail.com> Date: Thu, 3 Jan 2019 22:36:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------127386F850B9CE8C8EAF01A8" Content-Language: en-US-large X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32b X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) This is a multi-part message in MIME format. --------------127386F850B9CE8C8EAF01A8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Guix, when defining a service type that extends shepherd-root-service-type and the 'start' function of the shepherd-service definition contains an error, the error is silently ignored. No log output is generated at all. For example (full system definition is attached): (define (errtest-shepherd-service c) (list (shepherd-service (provision '(errtest)) (documentation "Errtest") (requirement '(file-systems)) (modules `((shepherd support) (ice-9 match) ,@%default-modules)) (start #~(lambda args (local-output "errtest start") this-is-an-unbound-variable (local-output "errtest end") #t))))) The log message "errtest start" appears in /var/log/messages, as expected. The next line contains an error, and aborts execution of the start function. The error only becomes apparent when manually doing a "herd restart errtest", which shows an error message (but without any error location or stack trace). But the error (regarding the unbound variable) is not logged, and there is no indication in the log that the service couldn't be started in any log. Furthermore the "herd status" of a service that encountered an error in the start function is very misleading: root@errtest ~# herd status errtest Status of errtest: It is stopped. It is enabled. Provides (errtest). Requires (file-systems). Conflicts with (). Will be respawned. It shows "Will be respawned", which is wrong. I'd be happy to work on a patch, but it seems like there is some design discussion necessary, in particular how the "Will be respawned" should be handled. Services have a "respawn?" flag, but of course respawning can only work if the start function executed successfully (and only the service process itself failed) in the first place. I generally feel like the state machine for services needs some work. In particular, it would be useful to distinguish between "failed" and "completed" services instead of conflating both states into "stopped". Or maybe have some more general mechanism for storing state about the service, instead of just the slot that usually contains the PID? - Florian --------------127386F850B9CE8C8EAF01A8 Content-Type: text/x-scheme; name="config-error-reporting.scm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="config-error-reporting.scm" (use-modules (gnu)) (use-service-modules networking ssh shepherd) (define (errtest-shepherd-service c) (list (shepherd-service (provision '(errtest)) (documentation "Errtest") (requirement '(file-systems)) (modules `((shepherd support) (ice-9 match) ,@%default-modules)) (start #~(lambda args (local-output "errtest start") this-is-an-unbound-variable (local-output "errtest end") #t))))) (define errtest-service-type (service-type (name 'errtest) (extensions (list (service-extension shepherd-root-service-type errtest-shepherd-= service))) (default-value #t))) (operating-system (host-name "errtest") (timezone "Europe/Berlin") (locale "en_US.utf8") (kernel-arguments (list "console=3DttyS0" "console=3Dtty0")) (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sdX"))) (file-systems (cons (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (services (cons* (service errtest-service-type) %base-services))) --------------127386F850B9CE8C8EAF01A8-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 23:00:22 2021 Received: (at control) by debbugs.gnu.org; 20 May 2021 03:00:22 +0000 Received: from localhost ([127.0.0.1]:32768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYv8-0001iH-Es for submit@debbugs.gnu.org; Wed, 19 May 2021 23:00:22 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:41905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYv6-0001i2-M6 for control@debbugs.gnu.org; Wed, 19 May 2021 23:00:20 -0400 Received: by mail-qk1-f171.google.com with SMTP id 82so3479391qki.8 for ; Wed, 19 May 2021 20:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:from:subject; bh=URw62BpMjWxqsCL+k0l6EDLkjRfO1ZDyyJH8tA7Co8c=; b=vIfq6C9YACmTQsomCZPVmQ5xKno+6QEF+ZMftjwInt6VZ0Yk6HLpJ9ABdTCbq2ear9 qm1mxucLK9J48FwOn5WpZ8VqUGHaiGpzDEPSbGbPF0uVpufMpzPyE6p8TuKdBSCyy86b VH1xX1B/UDz6MY68y7BPUZWLReDE2kjGUfEzwe8kkYnMWlgB3hYqx06cXKUPwvq5LNVK CZclR2JOkSgZx6TuKFOOd4M6CCFHG7YgZrn3RsWMD0Jx2o0uDx1l7CZF9XzqT5B10lDU qllXcqh0qEyrkRhAr4jArPNuwhhhKSme/Vb0wkv+0l4PeRogXa0896lS9jb6+zYp0Y4P wNGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:from:subject; bh=URw62BpMjWxqsCL+k0l6EDLkjRfO1ZDyyJH8tA7Co8c=; b=ls++Nwmb9/v+fPbK5c0hB0d3sKoLbjm57CPYmrTIdqilTphmmU3OBEzxg3MBiuyEy1 TkVgcNZpQG2O+iaK3SBG3Mi/qwLFD5W3bBDz70Yz38a6nmXvEi4GYgRjd4osgWGLw4uZ oYgYziEA3bLcmHTPQrmq23880qteNkO4jYa1p1ek96UTeE7K8URL4ZuEE7sxOUn83pQl uQzfPSB7bURLLzhzLJoU55y+c5cmPQo50urLSExirsyKfMlFFe04CJlQT18urYV5Kki+ ORLLCC9Z230bjmMwDQnqw8imG9KY4uI8edw1CRGQAP+0DsIauorCafaks1mI/gZdH/FZ h//A== X-Gm-Message-State: AOAM530Bxs6EXcUWoc6fIRUAIuy2NGeF5AsOKz05ERoqgODNNPNs2LEH qhQb6fntdTQcXbDgg7kGlOAzDg3UNZs= X-Google-Smtp-Source: ABdhPJzcK1SyzQkCtPbacCkJyV6n5fGVkRP9x5uOMFLkmKPl+nn0tLviVEpt745TCH5MDdZrUZQIWQ== X-Received: by 2002:a37:b0a:: with SMTP id 10mr2860273qkl.67.1621479615036; Wed, 19 May 2021 20:00:15 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id l6sm1155361qkk.130.2021.05.19.20.00.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 20:00:14 -0700 (PDT) Date: Wed, 19 May 2021 23:00:13 -0400 Message-Id: <87o8d6gldu.fsf@gmail.com> To: control@debbugs.gnu.org From: Maxim Cournoyer Subject: control message for bug #33968 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) severity 33968 important quit From debbugs-submit-bounces@debbugs.gnu.org Wed May 19 23:01:05 2021 Received: (at 33968) by debbugs.gnu.org; 20 May 2021 03:01:05 +0000 Received: from localhost ([127.0.0.1]:32773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYvp-0001jw-LL for submit@debbugs.gnu.org; Wed, 19 May 2021 23:01:05 -0400 Received: from mail-qv1-f51.google.com ([209.85.219.51]:44707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljYvn-0001iz-In for 33968@debbugs.gnu.org; Wed, 19 May 2021 23:01:03 -0400 Received: by mail-qv1-f51.google.com with SMTP id a7so3634411qvf.11 for <33968@debbugs.gnu.org>; Wed, 19 May 2021 20:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=DFsY898vCsVi/780npIyMRhXdql/XyP7MmRNe4xI+5I=; b=IRJOKVmXDtJo5wwiRJZbuPDjnKz1MOfXtw7IN+u9/8BUrjfkZJ5NZPWGWEngFoIAvP l3mRcTjgVTzo+pkjqGI8HjKamHVQwiMv6CaOC+hHNIuOlTjS+DbU774J555WpQJMN2R6 DHZqr5mQXvt+8QH/y+3+MXpyLpg7mQZywRu8hyk7qCxhFhqlGuzA1E3GnTEnntLIPQgK AEFWYpcWYvpq+BzmNk8S23UfmBAAS8Of/f0mzBQqCLsp3bxRlI7+PZN7G6b3NavrR/6d DbXG4d1lBk5W2oSUz0ROYYYUPmdL2HvyIyowXR36wx6983ECFH9k7V0MhDw5/zHDEEZA fBUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=DFsY898vCsVi/780npIyMRhXdql/XyP7MmRNe4xI+5I=; b=Z0SbW8jUw+17ijpmbqE1f/cyZDUYMTuKRqgPeq7MGsWspzbZtcHbmn/z2gXHFBNO0O ho76ALv1kYcRPzkbCRD4f0vaWo+RkbBISbPLcN5Uxm4ObIBE5LzZ1ScwnLnm5ZovELrH baWGKKyndKbqoVOkAlUpu6y+TLomXP8faL6PYHEUaoi8PnMsfDn10vzw4tj6sF7lUsjX n6V/IXFBt9yvTkNQdnWAn0neSMNFaLRdQXCWzBPozLlBaIMyss0oLqETxQRu81VmKDhJ 0J3B5w8Zlh5SG6dg9jd4M3KvuhzP9FVqbG+roeFRFMKSS2f70ahRsBMhr0xLNA2OrzMs Cn9Q== X-Gm-Message-State: AOAM530D3qkBM+lrzOgDBYrM5/3QNdZk39Rk7Gy0oLU27xpy83s5XN5N 5nbd4pQQGvfin6qv0JbH6jjLZNGF4pQ= X-Google-Smtp-Source: ABdhPJxZ3P6C60o06GxyU9CzPWgTLKorOkfgtu0zKs7z5P329XsoH+Hg4sZ6wRAFaPfyM2SBV8mtnA== X-Received: by 2002:a05:6214:902:: with SMTP id dj2mr3145704qvb.11.1621479657893; Wed, 19 May 2021 20:00:57 -0700 (PDT) Received: from hurd (dsl-150-81.b2b2c.ca. [66.158.150.81]) by smtp.gmail.com with ESMTPSA id a68sm1285521qkd.51.2021.05.19.20.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 20:00:57 -0700 (PDT) From: Maxim Cournoyer To: Florian Dold Subject: Re: bug#33968: errors in shepherd service constructors are not logged and lead to misleading status, hang boot References: <7c7f7030-a0f2-5fd0-7d02-f203277d7bba@gmail.com> Date: Wed, 19 May 2021 23:00:56 -0400 In-Reply-To: <7c7f7030-a0f2-5fd0-7d02-f203277d7bba@gmail.com> (Florian Dold's message of "Thu, 3 Jan 2019 22:36:20 +0100") Message-ID: <87mtsqglcn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33968 Cc: 33968@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 Florian, I stumbled upon this problem with https://issues.guix.gnu.org/48521, and had a hard time to debug it (due to the completely missing information in any output or log from shepherd). Worst, this caused the system to hang early on boot! I'm raising the priority of this issue. Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 15 17:15:40 2023 Received: (at 33968-done) by debbugs.gnu.org; 15 Jun 2023 21:15:40 +0000 Received: from localhost ([127.0.0.1]:48103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9uJf-0007Hw-Hg for submit@debbugs.gnu.org; Thu, 15 Jun 2023 17:15:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9uJd-0006zm-KY for 33968-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:15:38 -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 1q9uJY-0005a8-9T for 33968-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:15:32 -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=0G3KCc7cFKBXzi0k87UI1H5XpHqkUd+uYY4RfGGNP0I=; b=GSMU6FH9tVn0ej783F8M D/b1qN0sS18k4LBoiCPl1AWDZiUMB0XjXEQs3basa+VIWPUkOaitvFdMd621YEfRMJ8SUByDfGSr3 4NBg+UcCsbUt9fkihwqinDc0EQzzbxxL6imyCAH1IBIhuzFehXwPNmifhGZ2pv4aAUZka1n0vHc1X Y4FpcSpHo+AP9RjZI6WKM7xKtdyDrkobLLWdwzbL+lLxhsVdisjXL6oVGpJuGiOb18I0j6n1/0MTi x1X2NirC6wyCucdyTVIRwKeR913MLNjmqnHBMn27Wn+NSQfOQGkSHV8nCDVBTWNytpVBUdnF1+kkI B9FUS79h8p7BQQ==; 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 1q9uJX-0003P2-GR for 33968-done@debbugs.gnu.org; Thu, 15 Jun 2023 17:15:31 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 33968-done@debbugs.gnu.org Subject: Re: bug#33968: errors in shepherd service constructors are not logged and lead to misleading status References: <7c7f7030-a0f2-5fd0-7d02-f203277d7bba@gmail.com> Date: Thu, 15 Jun 2023 23:15:29 +0200 In-Reply-To: <7c7f7030-a0f2-5fd0-7d02-f203277d7bba@gmail.com> (Florian Dold's message of "Thu, 3 Jan 2019 22:36:20 +0100") Message-ID: <87y1kktojy.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 33968-done 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: -3.3 (---) Florian Dold skribis: > when defining a service type that extends shepherd-root-service-type and > the 'start' function of the shepherd-service definition contains an > error, the error is silently ignored. No log output is generated at all. [...] > I generally feel like the state machine for services needs some work. > In particular, it would be useful to distinguish between "failed" and > "completed" services instead of conflating both states into "stopped". > Or maybe have some more general mechanism for storing state about the > service, instead of just the slot that usually contains the PID? It=E2=80=99s been 4 years (!) but the good news is that all this is fixed a= s of Shepherd 0.10. Closing! Ludo=E2=80=99. From unknown Sun Jun 15 08:18:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 14 Jul 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator