From: "Ludovic Courtès" <ludo@gnu.org>
To: Lars-Dominik Braun <lars@6xq.net>
Cc: 58485@debbugs.gnu.org
Subject: bug#58485: [shepherd] Restarting guix-publish fails
Date: Thu, 17 Nov 2022 09:24:05 +0100 [thread overview]
Message-ID: <875yfekmze.fsf@gnu.org> (raw)
In-Reply-To: <Y0fDnizcW8UsBxKh@noor.fritz.box> (Lars-Dominik Braun's message of "Thu, 13 Oct 2022 09:51:58 +0200")
Hi,
Lars-Dominik Braun <lars@6xq.net> skribis:
> 1 kill(-18096, SIGTERM) = 0
> 1 newfstatat(AT_FDCWD, "/etc/localtime", {st_mode=S_IFREG|0444, st_size=2298, ...}, 0) = 0
> 1 write(17, "shepherd[1]: Service guix-publish has been stopped.\n", 52) = 52
> 1 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 36
> 1 setsockopt(36, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> 1 bind(36, {sa_family=AF_INET, sin_port=htons(8082), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRINUSE (Address already in use)
> 1 write(23, "(reply (version 0) (result #f) (error (error (version 0) action-exception start guix-publish system-error (\"bind\" \"~A\" (\"Address already in use\") (98)))) (messages (\"Service guix-publish has been stopped.\")))", 208) = 208
> 1 close(23)
> ---snap---
>
> The obvious explanation would be that stopping does not wait for the
> process to actually exit. make-kill-destructor does not waitpid it seems
> and 'running is set unconditionally to #f after 'stop has finished.
Indeed. This is fixed by Shepherd commit
d97592f58603ff51cb280ae57d413c8731e601b3, which will be in the upcoming
0.9.3 release.
Thanks,
Ludo’.
next prev parent reply other threads:[~2022-11-17 8:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-13 7:51 bug#58485: [shepherd] Restarting guix-publish fails Lars-Dominik Braun
2022-10-13 9:28 ` Liliana Marie Prikler
2022-10-13 11:35 ` Lars-Dominik Braun
2022-10-13 13:38 ` Liliana Marie Prikler
2022-10-14 6:18 ` Lars-Dominik Braun
2022-10-14 6:57 ` Liliana Marie Prikler
2022-11-17 8:24 ` Ludovic Courtès [this message]
2022-11-17 10:19 ` Ludovic Courtès
2023-02-07 8:39 ` Lars-Dominik Braun
[not found] ` <Y+IM4IrO4V05o3V9@zpidnb93>
2023-02-20 10:20 ` Ludovic Courtès
2023-02-20 13:25 ` Lars-Dominik Braun
2023-04-27 21:23 ` Ludovic Courtès
2023-04-28 12:31 ` Lars-Dominik Braun
2023-04-28 13:09 ` bug#58485: [shepherd] EADDRINUSE while restarting ssh-daemon Ludovic Courtès
2023-06-11 14:20 ` Ludovic Courtès
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=875yfekmze.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=58485@debbugs.gnu.org \
--cc=lars@6xq.net \
/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).