GNU bug report logs - #71478
[shepherd] Unloading a service renders shepherd unresponsive

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Mon, 10 Jun 2024 16:41:04 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71478 in the body.
You can then email your comments to 71478 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#71478; Package guix. (Mon, 10 Jun 2024 16:41:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 10 Jun 2024 16:41:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: bug-guix <at> gnu.org
Subject: [shepherd] Unloading a service renders shepherd unresponsive
Date: Mon, 10 Jun 2024 16:31:04 +0200
Seen with 0.10.4:

--8<---------------cut here---------------start------------->8---
ludo <at> guix-hpc7 ~$ sudo herd status tor
Statut de tor :
  It is running since sam. 01 juin 2024 15:58:57 (9 days ago).
  Valeur d’exécution 453.
  Activé.
  Fournit (tor).
  Requiert (user-processes loopback syslogd).
  Sera relancé.
ludo <at> guix-hpc7 ~$ sudo herd unload root tor
Removing service 'tor'...
Done.
ludo <at> guix-hpc7 ~$ sudo herd status tor
^C
ludo <at> guix-hpc7 ~$ sudo herd status
^C
ludo <at> guix-hpc7 ~$ ps 453
  PID TTY      STAT   TIME COMMAND
ludo <at> guix-hpc7 ~$ cat /proc/1/cmdline |xargs -0
/gnu/store/bhynhk0c6ssq3fqqc59fvhxjzwywsjbb-guile-3.0.9/bin/guile --no-auto-compile /gnu/store/39li5qpiaj1lx89xgahlbgvfnjhpcpwg-shepherd-0.10.4/bin/shepherd --config /gnu/store/2vynkp1zv8ybq513clrcp1ga1bi156wb-shepherd.conf
--8<---------------cut here---------------end--------------->8---

Inetd services such as sshd also become unavailable: shepherd accepts
connections but does not process them.

Excerpt of /var/log/messages:

--8<---------------cut here---------------start------------->8---
Jun 10 16:20:29 localhost shepherd[1]: Removing service 'tor'... 
Jun 10 16:20:29 localhost shepherd[1]: Stopping service tor... 
Jun 10 16:20:29 localhost Tor[2]: Catching signal TERM, exiting cleanly. 
Jun 10 16:20:29 localhost shepherd[1]: Service tor stopped. 
Jun 10 16:20:29 localhost shepherd[1]: Service tor is now stopped. 
Jun 10 16:20:29 localhost shepherd[1]: Done. 
--8<---------------cut here---------------end--------------->8---

The workaround is to reboot the hard way:

  sudo guile --no-auto-compile -L /gnu/store/39li5qpiaj1lx89xgahlbgvfnjhpcpwg-shepherd-0.10.4/share/guile/site/3.0/ -c '(use-modules (shepherd system)) (sync) (pk "bye!") (reboot)'

Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 10 Jun 2024 17:05:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#71478; Package guix. (Tue, 11 Jun 2024 15:42:03 GMT) Full text and rfc822 format available.

Message #10 received at 71478 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 71478 <at> debbugs.gnu.org
Subject: Re: bug#71478: [shepherd] Unloading a service renders shepherd
 unresponsive
Date: Mon, 10 Jun 2024 23:06:16 +0200
Ludovic Courtès <ludovic.courtes <at> inria.fr> skribis:

> ludo <at> guix-hpc7 ~$ sudo herd status tor
> Statut de tor :
>   It is running since sam. 01 juin 2024 15:58:57 (9 days ago).
>   Valeur d’exécution 453.
>   Activé.
>   Fournit (tor).
>   Requiert (user-processes loopback syslogd).
>   Sera relancé.
> ludo <at> guix-hpc7 ~$ sudo herd unload root tor
> Removing service 'tor'...
> Done.
> ludo <at> guix-hpc7 ~$ sudo herd status tor
> ^C

A simpler workaround is to do ‘herd stop SERVICE’ before
‘herd unload root SERVICE’.

Anyway, fixed in Shepherd commit
b81aa4d2554b9ddff683c33c0d1d7036842d2b76.

Ludo’.




bug closed, send any further explanations to 71478 <at> debbugs.gnu.org and Ludovic Courtès <ludovic.courtes <at> inria.fr> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 11 Jun 2024 20:25:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 10 Jul 2024 11:24:21 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 40 days ago.

Previous Next


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