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.

Full log


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’.




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.