GNU bug report logs -
#72670
avahi-daemon can fail to restart due to stale /run/avahi-daemon/pid
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Fri, 16 Aug 2024 13:34:02 UTC
Severity: important
Merged with 64775
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 72670 in the body.
You can then email your comments to 72670 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#72670
; Package
guix
.
(Fri, 16 Aug 2024 13:34:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 16 Aug 2024 13:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The ‘avahi-daemon’ service fails to restart these days: a stale
/run/avahi-daemon/pid upon reboot leads it to abandon. From
/var/log/messages:
--8<---------------cut here---------------start------------->8---
Aug 16 13:29:11 localhost shepherd[1]: Starting service avahi-daemon...
Aug 16 13:29:11 localhost shepherd[1]: Service avahi-daemon has been started.
Aug 16 13:29:11 localhost shepherd[1]: Service avahi-daemon started.
Aug 16 13:29:11 localhost shepherd[1]: Service avahi-daemon running with value (("unknown" . #<input-output: socket 27>)).
Aug 16 13:29:11 localhost shepherd[1]: Spawning systemd-style service /gnu/store/yfl1x5k3njghkg4ckximqb0ysppvx8na-avahi-0.8/sbin/avahi-daemon.
Aug 16 13:29:11 localhost shepherd[1]: Running value of service avahi-daemon changed to 1497.
Aug 16 13:29:11 localhost shepherd[1]: Service avahi-daemon (PID 1497) exited with 255.
Aug 16 13:29:11 localhost shepherd[1]: Service avahi-daemon has been disabled.
Aug 16 13:29:11 localhost shepherd[1]: (Respawning too fast.)
--8<---------------cut here---------------end--------------->8---
… and /var/log/avahi-daemon.log:
--8<---------------cut here---------------start------------->8---
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
2024-08-16 13:29:11 Daemon already running on PID 1346
--8<---------------cut here---------------end--------------->8---
The issue was uncovered by the switch to socket activation in commit
3298ec0200af0d0b0850a388df0a78e87320307f: despite using socket
activation, avahi-daemon checks for the presence of a PID file; however,
there’s no longer a cleanup process as is the case when #:log-file is
used, hence the bug.
But the core problem seems to be that ‘cleanup-service-type’ deletes
/var/run at boot but not /run. I guess it should delete /run as well?
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72670
; Package
guix
.
(Sun, 18 Aug 2024 20:49:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 72670 <at> debbugs.gnu.org (full text, mbox):
Ludovic Courtès <ludo <at> gnu.org> skribis:
> But the core problem seems to be that ‘cleanup-service-type’ deletes
> /var/run at boot but not /run. I guess it should delete /run as well?
Oh, it’s already filed here: https://issues.guix.gnu.org/64775
Merged 64775 72670.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Aug 2024 20:49:02 GMT)
Full text and
rfc822 format available.
Severity set to 'important' from 'normal'
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Aug 2024 20:50:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72670
; Package
guix
.
(Fri, 20 Sep 2024 21:28:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 72670 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2024-08-31, Ludovic Courtès wrote:
> Ludovic Courtès (3):
> services: cleanup: Run under C.UTF-8 locale.
> services: cleanup: Create directories with the right mode upfront.
> services: cleanup: Delete /run upon boot.
As they say, Looks Good To Me. :)
live well,
vagrant
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#72670
; Package
guix
.
(Wed, 25 Sep 2024 14:56:03 GMT)
Full text and
rfc822 format available.
Message #18 received at 72670-done <at> debbugs.gnu.org (full text, mbox):
Vagrant Cascadian <vagrant <at> debian.org> skribis:
> On 2024-08-31, Ludovic Courtès wrote:
>> Ludovic Courtès (3):
>> services: cleanup: Run under C.UTF-8 locale.
>> services: cleanup: Create directories with the right mode upfront.
>> services: cleanup: Delete /run upon boot.
>
> As they say, Looks Good To Me. :)
Thanks, pushed as c250033aa69f35e64949a87fd8482b253dd416b4, except for
the first one because I remembered that C.UTF-8 is unavailable in
cross-compiled programs.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 24 Oct 2024 11:24:20 GMT)
Full text and
rfc822 format available.
This bug report was last modified 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.