GNU bug report logs - #76338
shepherd restarts service during shutdown and then waits forever

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: grave; Reported by: Dariqq <dariqq@HIDDEN>; Keywords: patch; merged with #76368; dated Sun, 16 Feb 2025 14:40:03 UTC; Maintainer for guix is bug-guix@HIDDEN.
Added tag(s) patch. Request was from Felix Lechner <felix.lechner@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'grave' from 'important' Request was from Felix Lechner <felix.lechner@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76338 <at> debbugs.gnu.org:


Received: (at 76338) by debbugs.gnu.org; 20 Feb 2025 19:51:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 20 14:51:01 2025
Received: from localhost ([127.0.0.1]:41729 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tlCZZ-0006hC-3k
	for submit <at> debbugs.gnu.org; Thu, 20 Feb 2025 14:51:01 -0500
Received: from sail-ipv4.us-core.com ([208.82.101.137]:52744)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <felix.lechner@HIDDEN>)
 id 1tlCZV-0006ga-PF
 for 76338 <at> debbugs.gnu.org; Thu, 20 Feb 2025 14:50:59 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=PoBVuMLoCdrvggg
 K2hr6KzF+z1n6hapaQ2eMcppgdNI=; h=date:subject:cc:to:from;
 d=lease-up.com; b=WnfVEdCDcdXSskVFVShgSjc0kE6QnB1nA7dA7vejXhHeQ70kTWZI
 8Ag+nAbFeHWHBREKVt+7D6QbGew/CkG4q/1XpGiSU9JpTwEyXccTolpjD9DnPt6NWFt/nk
 leSTI1s4nNgzbTnh0nRSonC9LJXEiov7Twofq9Ca9z0URHXYU=
Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id eb73f706
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Thu, 20 Feb 2025 19:50:50 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id ed4dccee;
 Thu, 20 Feb 2025 19:50:53 +0000 (UTC)
From: Felix Lechner <felix.lechner@HIDDEN>
To: 76338 <at> debbugs.gnu.org
Subject: [PATCH v1] Add user-processes to services that prevent clean
 shutdowns. (Closes: #76338)
Date: Thu, 20 Feb 2025 11:50:44 -0800
Message-ID: <0a0bd097f7120df4360959e0f89f4e07e586e5ec.1740081044.git.felix.lechner@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76338
Cc: Dariqq <dariqq@HIDDEN>,
 =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@HIDDEN>,
 Ashvith Shetty <ashvithshetty0010@HIDDEN>, Tomas Volf <~@wolfsden.cz>,
 Felix Lechner <felix.lechner@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

It's at least a partial fix.

Change-Id: Ifca81e4311f5145a3bb36f1ea338554079e121e2
---
 gnu/services/mail.scm | 2 +-
 gnu/services/pm.scm   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index 18b482272c..210a226ccf 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -2317,7 +2317,7 @@ (define-configuration/no-serialization rspamd-configuration
    (boolean #f)
    "Do not apply Jinja templates.")
   (shepherd-requirements
-   (list-of-symbols '(loopback))
+   (list-of-symbols '(loopback user-processes))
    "This is a list of symbols naming Shepherd services that this service
 will depend on."))
 
diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
index 1978de55d4..fa18af254b 100644
--- a/gnu/services/pm.scm
+++ b/gnu/services/pm.scm
@@ -512,6 +512,7 @@ (define (thermald-shepherd-service config)
    (shepherd-service
     (provision '(thermald))
     (documentation "Run thermald cpu frequency scaling.")
+    (requirement '(user-processes))
     (start #~(make-forkexec-constructor
               '(#$(file-append (thermald-thermald config) "/sbin/thermald")
                 "--no-daemon"

base-commit: 40e83f8f72fc831c94dc6d42664be50db755344b
-- 
2.48.1





Information forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.

Message received at 76338 <at> debbugs.gnu.org:


Received: (at 76338) by debbugs.gnu.org; 19 Feb 2025 21:29:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 16:29:14 2025
Received: from localhost ([127.0.0.1]:53316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkrd3-0006pI-Pw
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 16:29:14 -0500
Received: from sender-pp-o93.zoho.in ([103.117.158.93]:3460)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ashvithshetty0010@HIDDEN>)
 id 1tkrd0-0006oI-SC
 for 76338 <at> debbugs.gnu.org; Wed, 19 Feb 2025 16:29:12 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1740000522; 
 s=zoho; d=zohomail.in; i=ashvithshetty0010@HIDDEN;
 h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To;
 bh=Rq6Ol2lQQ5+QFMA+wxcUVErAoEeeYzhc/66hR3qFvpA=;
 b=U3gPgqE3x12eMFnDsbOqzVfrGgZPWmcxTRmMkQ+AfV5IlvGkzBDQ2n/VEB8CgyhJ
 qInwGMbQ8u3Yj7k+0XV83oZs21Fa8fYSTdEuS9dKeQEvSu/l6KlXtLbxz1hvBCJwIYr
 0cCP9M7KvSGklMvyKffLBr6+suau/4NIXe4JoBHs=
Received: by mx.zoho.in with SMTPS id 1740000521022985.178080732815;
 Thu, 20 Feb 2025 02:58:41 +0530 (IST)
Message-ID: <0bf18ad5d457fd5ca011e0d7b233d31208ac61b3.camel@HIDDEN>
Subject: bug#76338: shepherd restarts service during shutdown and then waits
 forever
From: Ashvith Shetty <ashvithshetty0010@HIDDEN>
To: 76338 <at> debbugs.gnu.org
Date: Thu, 20 Feb 2025 02:58:09 +0530
In-Reply-To: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
 (dariqq@HIDDEN's message of "Sun, 16 Feb 2025 14:38:49 +0000")
References: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.48.4 
MIME-Version: 1.0
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76338
Cc: Dariqq <dariqq@HIDDEN>,
 Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,
I also have the same exact issue. Here's the shutdown log:

--8<---------------cut here---------------start------------->8---
Feb 20 00:37:30 localhost elogind[426]: System is powering down.
Feb 20 00:37:30 localhost elogind[426]: Removed session c2.
Feb 20 00:37:30 localhost NetworkManager[503]: <info>=20
[1739992050.8059] device (wlp3s0): state change: activated ->
deactivating (reason 'connection-removed', sys-iface-state: 'managed')
Feb 20 00:37:30 localhost NetworkManager[503]: <info>=20
[1739992050.8069] manager: NetworkManager state is now CONNECTED_LOCAL
Feb 20 00:37:30 localhost dbus-daemon[415]: [system] Activating service
name=3D'org.freedesktop.nm_dispatcher' requested by ':1.10' (uid=3D0
pid=3D503 comm=3D"/gnu/store/zav4w5jrcn4yhcawg9l0smv7g2hmyais-networ")
(using servicehelper)
Feb 20 00:37:30 localhost dbus-daemon[415]: [system] Successfully
activated service 'org.freedesktop.nm_dispatcher'
Feb 20 00:37:30 localhost vmunix: [40112.799390] wlp3s0:
deauthenticating from 54:37:bb:d2:dd:3d by local choice (Reason:
3=3DDEAUTH_LEAVING)
Feb 20 00:37:30 localhost shepherd[1]: Stopping service root...=20
Feb 20 00:37:30 localhost shepherd[1]: Exiting shepherd...=20
Feb 20 00:37:30 localhost shepherd[1]: Stopping service swap-swap...=20
Feb 20 00:37:30 localhost shepherd[1]: Service swap-swap stopped.=20
Feb 20 00:37:30 localhost shepherd[1]: Service swap-swap is now
stopped.=20
Feb 20 00:37:30 localhost shepherd[1]: Stopping service lightdm...=20
Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-
DISCONNECTED bssid=3D54:37:bb:d2:dd:3d reason=3D3 locally_generated=3D1
Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP-
POLICY clear_all
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2420] device (wlp3s0): state change: deactivating ->
disconnected (reason 'connection-removed', sys-iface-state: 'managed')
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2428] dhcp4 (wlp3s0): canceled DHCP transaction
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2428] dhcp4 (wlp3s0): activation: beginning transaction
(timeout in 45 seconds)
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2429] dhcp4 (wlp3s0): state changed no lease
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2435] dhcp6 (wlp3s0): canceled DHCP transaction
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2435] dhcp6 (wlp3s0): activation: beginning transaction
(timeout in 45 seconds)
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2436] dhcp6 (wlp3s0): state changed no lease
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2809] device (wlp3s0): set-hw-addr: set MAC address to
5E:3F:03:00:57:16 (scanning)
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.2908] dns-mgr: Removing DNS information from
/gnu/store/139drha7awx79jb2js4m88p2jsl7zasc-openresolv-
3.13.2/sbin/resolvconf
Feb 20 00:37:31 localhost nscd: 1232 monitored file `/etc/resolv.conf`
was written to
Feb 20 00:37:31 localhost shepherd[1]: Service lightdm stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service lightdm is now stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service ssh-daemon...=20
Feb 20 00:37:31 localhost shepherd[1]: Service ssh-daemon stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service ssh-daemon is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service avahi-daemon...
Feb 20 00:37:31 localhost shepherd[1]: Service avahi-daemon stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service avahi-daemon is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service ntpd...=20
Feb 20 00:37:31 localhost ntpd[619]: ntpd exiting on signal 15
(Terminated)
Feb 20 00:37:31 localhost shepherd[1]: Service ntpd stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service ntpd is now stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service dockerd...=20
Feb 20 00:37:31 localhost shepherd[1]: Service dockerd stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service dockerd is now stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service
NetworkManager...=20
Feb 20 00:37:31 localhost shepherd[1]: [NetworkManager] Terminated=20
Feb 20 00:37:31 localhost NetworkManager[503]: <warn>=20
[1739992051.4008] dns-mgr: could not commit DNS changes:
/gnu/store/139drha7awx79jb2js4m88p2jsl7zasc-openresolv-
3.13.2/sbin/resolvconf returned error code
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5026] caught SIGTERM, shutting down normally.
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5029] device (wlp3s0): supplicant interface state:
completed -> disconnected
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5029] device (p2p-dev-wlp3s0): supplicant management
interface state: completed -> disconnected
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5032] device (wlp3s0): supplicant interface state:
disconnected -> interface_disabled
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5033] device (p2p-dev-wlp3s0): supplicant management
interface state: disconnected -> interface_disabled
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5034] device (wlp3s0): supplicant interface state:
interface_disabled -> disconnected
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5035] device (p2p-dev-wlp3s0): supplicant management
interface state: interface_disabled -> disconnected
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5179] device (wlp3s0): state change: disconnected ->
unmanaged (reason 'unmanaged', sys-iface-state: 'managed')
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5719] device (wlp3s0): set-hw-addr: reset MAC address to
98:3B:8F:30:37:7A (unmanage)
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.5879] device (p2p-dev-wlp3s0): state change: disconnected -
> unmanaged (reason 'removed', sys-iface-state: 'removed')
Feb 20 00:37:31 localhost wpa_supplicant[437]: p2p-dev-wlp3s0: CTRL-
EVENT-DSCP-POLICY clear_all
Feb 20 00:37:31 localhost wpa_supplicant[437]: p2p-dev-wlp3s0: CTRL-
EVENT-DSCP-POLICY clear_all
Feb 20 00:37:31 localhost wpa_supplicant[437]: nl80211: deinit
ifname=3Dp2p-dev-wlp3s0 disabled_11b_rates=3D0
Feb 20 00:37:31 localhost NetworkManager[503]: <info>=20
[1739992051.6236] exiting (success)
Feb 20 00:37:31 localhost shepherd[1]: Service NetworkManager stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service NetworkManager is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service wpa-
supplicant...=20
Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP-
POLICY clear_all
Feb 20 00:37:31 localhost wpa_supplicant[437]: wlp3s0: CTRL-EVENT-DSCP-
POLICY clear_all
Feb 20 00:37:31 localhost wpa_supplicant[437]: nl80211: deinit
ifname=3Dwlp3s0 disabled_11b_rates=3D0
Feb 20 00:37:31 localhost shepherd[1]: Service wpa-supplicant stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service wpa-supplicant is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service bluetooth...=20
Feb 20 00:37:31 localhost bluetoothd[428]: Terminating
Feb 20 00:37:31 localhost bluetoothd[428]: Stopping SDP server
Feb 20 00:37:31 localhost bluetoothd[428]: Exit
Feb 20 00:37:31 localhost shepherd[1]: Service bluetooth stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service bluetooth is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service upower-
daemon...=20
Feb 20 00:37:31 localhost shepherd[1]: Service upower-daemon stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service upower-daemon is now
stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service pam...=20
Feb 20 00:37:31 localhost shepherd[1]: Service pam stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service pam is now stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service elogind...=20
Feb 20 00:37:31 localhost elogind[426]: Received signal 15 [TERM]
Feb 20 00:37:31 localhost shepherd[1]: Service elogind stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service elogind is now stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Stopping service libvirtd...=20
Feb 20 00:37:31 localhost shepherd[1]: Service libvirtd stopped.=20
Feb 20 00:37:31 localhost shepherd[1]: Service libvirtd is now stopped.
Feb 20 00:37:31 localhost shepherd[1]: Stopping service dbus-system...=20
Feb 20 00:37:31 localhost ModemManager[531]: <msg> caught signal,
shutting down...=20
Feb 20 00:37:31 localhost nm-dispatcher: Caught signal 15, shutting
down...
Feb 20 00:37:32 localhost shepherd[1]: Service dbus-system stopped.=20
Feb 20 00:37:32 localhost shepherd[1]: Service dbus-system is now
stopped.=20
Feb 20 00:37:32 localhost ModemManager[531]: <msg> ModemManager is shut
down=20
Feb 20 00:37:32 localhost shepherd[1]: Stopping service term-console...
Feb 20 00:37:32 localhost shepherd[1]: Service term-console stopped.=20
Feb 20 00:37:32 localhost shepherd[1]: Service term-console is now
stopped.=20
Feb 20 00:37:32 localhost shepherd[1]: Stopping service nscd...=20
Feb 20 00:37:32 localhost shepherd[1]: Service nscd stopped.=20
Feb 20 00:37:32 localhost shepherd[1]: Service nscd is now stopped.=20
Feb 20 00:37:32 localhost syslogd: exiting on signal 15
--8<---------------cut here---------------start------------->8---

Regards,
Ashvith




Information forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.

Message received at 76338 <at> debbugs.gnu.org:


Received: (at 76338) by debbugs.gnu.org; 19 Feb 2025 18:08:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Feb 19 13:08:11 2025
Received: from localhost ([127.0.0.1]:51104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tkoUV-0002n1-BY
	for submit <at> debbugs.gnu.org; Wed, 19 Feb 2025 13:08:11 -0500
Received: from sail-ipv4.us-core.com ([208.82.101.137]:44288)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <felix.lechner@HIDDEN>)
 id 1tkoUS-0002ma-Pw
 for 76338 <at> debbugs.gnu.org; Wed, 19 Feb 2025 13:08:09 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=Y28/ViRbpSYjwtf
 66ANdV8x2rvanWx52baMfwy9cW00=; h=date:subject:cc:to:from;
 d=lease-up.com; b=GRAo5C2QQVqgtrvp5m1IQanJVK7uGcktoRLT79sK0R+XVmx6fwBe
 7gVnLweP1QKc3V40YakU1HF91nsPjopwKEBQZLFKXVwGtx7J9LWMqGvyGqKXTzX9zrnXzJ
 2eVouPDvpZ6BvfTmlMTYaheRENWrQWzxJfApoVoSYGf9tavss=
Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id e2d85da9
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 19 Feb 2025 18:08:02 +0000 (UTC)
From: Felix Lechner <felix.lechner@HIDDEN>
To: 76338 <at> debbugs.gnu.org
Subject: Rspamd too
User-Agent: mu4e 1.12.7; emacs 29.4
Date: Wed, 19 Feb 2025 10:08:04 -0800
Message-ID: <87bjuxx0xn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76338
Cc: Dariqq <dariqq@HIDDEN>, Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 Tomas Volf <~@wolfsden.cz>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

I believe Rspamd should likewise depend on 'user-processes'.  Thanks!

Kind regards
Felix




Information forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.
Merged 76338 76368. Request was from Tomas Volf <~@wolfsden.cz> to control <at> debbugs.gnu.org. Full text available.

Message received at 76338 <at> debbugs.gnu.org:


Received: (at 76338) by debbugs.gnu.org; 17 Feb 2025 10:16:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 17 05:16:25 2025
Received: from localhost ([127.0.0.1]:43307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjyAq-0007r2-Od
	for submit <at> debbugs.gnu.org; Mon, 17 Feb 2025 05:16:25 -0500
Received: from mout02.posteo.de ([185.67.36.66]:58491)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dariqq@HIDDEN>) id 1tjyAn-0007qG-MK
 for 76338 <at> debbugs.gnu.org; Mon, 17 Feb 2025 05:16:23 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 0F33F240101
 for <76338 <at> debbugs.gnu.org>; Mon, 17 Feb 2025 11:16:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1739787375; bh=DjtGkCE/Vr5pKW7uGeI0eD+8TPMQXd5ZKfZx+g9fXSA=;
 h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type:
 Content-Transfer-Encoding:From;
 b=kaY7QVkR/tepD1N/yh/LKvpnRjwBgjv0WazezROpX3HFDXFuwdoWzog9FwlpWB5eQ
 5xL2VfX09Ijkq86XfZns1me59gvq9CxyOyivEH5+ezn2kn5UlvHCT1oaBndaMLtjPu
 PYqNSZEx0+y5XRcZT3bAD0DeBhgJSpz0FMCc5ceI9O+YzA5JiQwMZiIht5SHDqJz6U
 6sVGVB9PmBXb0GOfoxeMBM8r+swzyPmxIo6A0Hdg6DqyqvOhWrmZXwfREjQOj5tFnQ
 0TF/kZ0TG6F76sBo7aGtRGhg5y+Htni0912SLvQE43E1U7p7R12XYtQYa2xDl0ESSt
 oN6JcT66MyEDQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YxJTT6fxJz9rxN;
 Mon, 17 Feb 2025 11:16:13 +0100 (CET)
Message-ID: <0e689f92-c5e9-4c3b-8ccf-846471919839@HIDDEN>
Date: Mon, 17 Feb 2025 10:15:53 +0000
MIME-Version: 1.0
Subject: Re: bug#76338: shepherd restarts service during shutdown and then
 waits forever
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
References: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
 <87frkdpzvq.fsf@HIDDEN>
Content-Language: en-US
From: Dariqq <dariqq@HIDDEN>
In-Reply-To: <87frkdpzvq.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76338
Cc: 76338 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Ludo,

On 16.02.25 18:23, Ludovic Courtès wrote:
> Hi,
> 
> Dariqq <dariqq@HIDDEN> skribis:
> 
>> The issue is that thermald (and possibly other services) don't depend
>> on user-processes service. Don't know why I had no problems until now.
> 
> This should be fixed: they should all depend on ‘user-processes’.
> 
For the record I will not be verifying every daemon service manually in 
the guix codebase whether it correctly depends on user-processes. Many 
do directly however also a lot only do transitively. The problematic 
cases most likely are where a service sets no requirement field at all

The two services that I know of are thermald and virtlogd.

Also the purpose of the user-processes service (and maybe also the 
filesystems) service as synchronization targets are documented only in 
their definition and implicitly with the shepherd graph image. 
System-shepherd services that dont depend on anything are probably a bad 
idea and seems like a very common mistake for (new) users implementing 
their own services.
Maybe this should be a a more explicit note in the documentation for 
shepherd-service-requirement and/or a small paragraph in the shepherd 
services intro?


> Probably the bug you’re seeing here was revealed by
> <https://issues.guix.gnu.org/75829>.
> 

Is there a reason for user-processes to block on waiting for every 
process execpt PID1 to exit or why during the (sleep 1) calls other 
services (that falsely dont depend on user-processes) are not being 
stopped in the meantime which would help resolve the deadlock?

This causes every daemon indirectly to depend on user-processes but 
shepherd may not know about it.

> But perhaps shepherd should also just disable all services when shutting
> down so that respawning doesn’t happen.

I guess shepherd is just doing its duty as a service manager. Something 
else send SIGTERM/SIGKILL and shepherd kindly respawns it as instructed.
But insisting on restarting a service seems a bit pointless to me during 
shutdown/reboot where everything will be terminated anyway.

> 
> Ludo’.





Information forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 76338 <at> debbugs.gnu.org:


Received: (at 76338) by debbugs.gnu.org; 16 Feb 2025 17:23:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 12:23:48 2025
Received: from localhost ([127.0.0.1]:36780 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjiMu-0005Ew-A0
	for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 12:23:48 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38512)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tjiMs-0005EQ-Az
 for 76338 <at> debbugs.gnu.org; Sun, 16 Feb 2025 12:23:47 -0500
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 <ludo@HIDDEN>)
 id 1tjiMm-0005YL-SP; Sun, 16 Feb 2025 12:23:40 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=amiJgD5cBPio48IIWtVk2nVBylVSuolhfUXj8G0en7U=; b=TPFiFXoalKxdIeWhgcPd
 Y6nFmq93Z9eMFp7A7UNOPmk/DLyzzfRaDbmVBiaTJNrrhubAp91QHbF4iSnQGPP219lbPRDC4yt+Q
 iP+eIhBQQhEBcdj81r1nguXvcrRisYUSTgKTpbE6OrUiNdjTmoglcz3zLiJYDyrE5Ykj/ldoo/err
 I5KZGt8hS8wE+To4LIwRr1X9EytApwmcB6aNsU5KD6iwlm+AzlxsMs3A4izt6lljv0IKwzV7vzaAt
 PLJZy6+9H2EWtBxtq9lGebcYs1QTHCbw08Jw2k8SrtY53ZlB2ykHqs0sKkS9lCY8dKql2XJ2RMzXE
 rgA2qATwTVM84Q==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Dariqq <dariqq@HIDDEN>
Subject: Re: bug#76338: shepherd restarts service during shutdown and then
 waits forever
In-Reply-To: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
 (dariqq@HIDDEN's message of "Sun, 16 Feb 2025 14:38:49 +0000")
References: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
Date: Sun, 16 Feb 2025 18:23:37 +0100
Message-ID: <87frkdpzvq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
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: 76338
Cc: 76338 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Dariqq <dariqq@HIDDEN> skribis:

> The issue is that thermald (and possibly other services) don't depend
> on user-processes service. Don't know why I had no problems until now.

This should be fixed: they should all depend on =E2=80=98user-processes=E2=
=80=99.

Probably the bug you=E2=80=99re seeing here was revealed by
<https://issues.guix.gnu.org/75829>.

But perhaps shepherd should also just disable all services when shutting
down so that respawning doesn=E2=80=99t happen.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Feb 2025 14:39:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 09:39:39 2025
Received: from localhost ([127.0.0.1]:33058 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tjfo2-0001gU-Du
	for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:39:39 -0500
Received: from lists.gnu.org ([2001:470:142::17]:54408)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dariqq@HIDDEN>) id 1tjfnq-0001fz-8Z
 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:39:32 -0500
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 <dariqq@HIDDEN>) id 1tjfni-0006Uq-LC
 for bug-guix@HIDDEN; Sun, 16 Feb 2025 09:39:18 -0500
Received: from mout01.posteo.de ([185.67.36.65])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dariqq@HIDDEN>) id 1tjfnf-0007Ny-It
 for bug-guix@HIDDEN; Sun, 16 Feb 2025 09:39:18 -0500
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 46668240027
 for <bug-guix@HIDDEN>; Sun, 16 Feb 2025 15:39:11 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1739716751; bh=a1GMIh8Id0Lx4zDcnxB91gbY13Z/MieoCoXKqB5o6uc=;
 h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type:
 Content-Transfer-Encoding:From;
 b=BOruin9Jfo7rrD/TP1znR0rl9dhlmd3d9IYw91knTIc+DiS8676xaOpeoVKH8ldNy
 QAWVpSSoBBwzDO75vtE6+SI4FnfHDtTLxAXy7ZLZvSQymANn+NEKJtyOjCSm+kFvgj
 fO1/DToCeCxjgVCKO2EaOdkE1bdasT5A1HSckjuGvxwFijqTxS6FsGapG8TOVXEzzY
 453vkQ17VHDhTN10T/k8MW9LdGRs3YBHbwH3LVugvB9sYKWl/IC97KHagoAvDg9amt
 6tssW+wY5FjILU86J1UwqtbXkqwqDYR361jfDPcSHKV/GmZGLgIKbjhqga+R0HUMHe
 dxu1bW5j8lJhQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4YwpML6BfSz9rxK
 for <bug-guix@HIDDEN>; Sun, 16 Feb 2025 15:39:10 +0100 (CET)
Message-ID: <bbcb0560-64a8-4fb0-a9c2-e05f2d5b042b@HIDDEN>
Date: Sun, 16 Feb 2025 14:38:49 +0000
MIME-Version: 1.0
Content-Language: en-US
To: bug-guix@HIDDEN
From: Dariqq <dariqq@HIDDEN>
Subject: shepherd restarts service during shutdown and then waits forever
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=185.67.36.65; envelope-from=dariqq@HIDDEN;
 helo=mout01.posteo.de
X-Spam_score_int: -53
X-Spam_score: -5.4
X-Spam_bar: -----
X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hi,

After I updated today I noticed that the system was not shutting down 
properly. The reason was that stopping of user-processes causes shepherd 
to respawn thermald.

The following is happening on tty12 (and is annoyingly not logged to 
/var/log/messages):

[...]
Stopping user processes
Sending all processes the TERM Signal
thermald : Terminating on user request
Respawning thermald
Service service thermald
Service thermald running with value ...
Service thermald has been started
[...]

Waiting for process termination (processes left (1 THERMALD-PID)
Waiting for process termination (processes left (1 THERMALD-PID)
Waiting for process termination (processes left (1 THERMALD-PID)
[...]

The issue is that thermald (and possibly other services) don't depend on 
user-processes service. Don't know why I had no problems until now.

Have a nice day,
Dariqq




Acknowledgement sent to Dariqq <dariqq@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#76338; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Feb 2025 20:00:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.