unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Felix Lechner via "Development of GNU Guix and the GNU System
	distribution." <guix-devel@gnu.org>
Cc: Felix Lechner <felix.lechner@lease-up.com>
Subject: Re: Upgrading Shepherd services
Date: Fri, 17 May 2024 17:20:03 +0200	[thread overview]
Message-ID: <877cfs5uu4.fsf@gnu.org> (raw)
In-Reply-To: <87le49uymn.fsf@lease-up.com> (Felix Lechner via's message of "Thu, 16 May 2024 16:26:40 -0700")

Hi Felix,

Felix Lechner via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> skribis:

> I have a lot of custom Shepherd services.  Every so often I make a
> mistake that stalls the step in 'guix deploy' that upgrades Shepherd
> services, but without any error messages.
>
> Unfortunately, I can also no longer run 'herd status', which likewise
> hangs, or 'reboot'.  How may I debug such issues in my operating-system
> declaration, please?

The standard service constructors are de-constructors cannot block
shepherd entirely (at least not AFAIK).  So my suggestion would be to
first look at any service you’re using that has a custom ‘start’ or
‘stop’ method doing weird things; make sure none of them can block.

Another thing: when shepherd is blocked, try “sudo strace -p1” so see
what syscall it’s waiting to complete (that’s the likely problem).

In addition, check the last lines of /var/log/messages so see what
shepherd was trying to do before blocking.

HTH!

Ludo’.


  parent reply	other threads:[~2024-05-17 15:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 23:26 Upgrading Shepherd services Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-17 10:59 ` Attila Lendvai
2024-05-23  2:04   ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-23 19:25     ` Attila Lendvai
2024-05-24  4:17       ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-24 17:19         ` Attila Lendvai
2024-06-01 13:24     ` Ludovic Courtès
2024-05-17 15:20 ` Ludovic Courtès [this message]
2024-05-19 15:55   ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-05-25  9:02     ` Attila Lendvai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cfs5uu4.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).