[Pkg-utopia-maintainers] Bug#876342: Bug#876342: Bug#876342: avahi-daemon: upgrade failed: failed to configure

Vincent Lefevre vincent at vinc17.net
Tue Jun 18 08:49:15 BST 2019


Control: retitle -1 PID file not removed when avahi-daemon is stopped, causing a failure when the PID is reused

On 2017-09-22 09:49:16 +0200, Vincent Lefevre wrote:
> On 2017-09-21 23:33:07 +0200, Michael Biebl wrote:
> > Not sure what to do about this bug report then aside from closing it.
> > The given information at least is not sufficient to further debug this.
> 
> I've attached the part of the journalctl output that occurred during
> the upgrade. This may be more useful. In particular, the following
> looks strange:
> 
> [...]
> Sep 21 10:21:56 zira avahi-daemon[740]: avahi-daemon 0.6.32 exiting.
> Sep 21 10:21:56 zira systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
> Sep 21 10:21:56 zira systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
> Sep 21 10:21:56 zira avahi-daemon[740]: Daemon already running on PID 740
> [...]
> 
> Why the "Daemon already running on PID 740" if it has stopped
> as said two lines above?

In the past I got:

[...]
Feb 06 01:20:32 zira systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
Feb 06 01:20:32 zira avahi-daemon[826]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::328d:99ff:fe25:a
Feb 06 01:20:32 zira avahi-daemon[826]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.3.
Feb 06 01:20:32 zira avahi-daemon[826]: avahi-daemon 0.7 exiting.
Feb 06 01:20:32 zira systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
Feb 06 01:20:32 zira systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Feb 06 01:20:32 zira avahi-daemon[17913]: Process 826 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid
Feb 06 01:20:32 zira avahi-daemon[17913]: Found user 'avahi' (UID 121) and group 'avahi' (GID 132).
Feb 06 01:20:32 zira avahi-daemon[17913]: Successfully dropped root privileges.
Feb 06 01:20:32 zira avahi-daemon[17913]: avahi-daemon 0.7 starting up.
Feb 06 01:20:32 zira systemd[1]: Started Avahi mDNS/DNS-SD Stack.
[...]

[...]
Apr 30 09:58:48 zira avahi-daemon[810]: avahi-daemon 0.7 exiting.
Apr 30 09:58:48 zira systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
Apr 30 09:58:48 zira systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Apr 30 09:58:48 zira avahi-daemon[7177]: Process 810 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
Apr 30 09:58:48 zira avahi-daemon[7177]: Found user 'avahi' (UID 121) and group 'avahi' (GID 132).
Apr 30 09:58:48 zira avahi-daemon[7177]: Successfully dropped root privileges.
Apr 30 09:58:48 zira avahi-daemon[7177]: avahi-daemon 0.7 starting up.
Apr 30 09:58:48 zira systemd[1]: Started Avahi mDNS/DNS-SD Stack.
[...]

and still recently:

[...]
May 16 17:33:02 zira systemd[1]: Stopping Avahi mDNS/DNS-SD Stack...
May 16 17:33:02 zira avahi-daemon[787]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.3.
May 16 17:33:02 zira avahi-daemon[787]: avahi-daemon 0.7 exiting.
May 16 17:33:02 zira systemd[1]: avahi-daemon.service: Succeeded.
May 16 17:33:02 zira systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
May 16 17:33:02 zira systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
May 16 17:33:02 zira avahi-daemon[2992]: Process 787 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
May 16 17:33:02 zira avahi-daemon[2992]: Found user 'avahi' (UID 121) and group 'avahi' (GID 132).
May 16 17:33:02 zira avahi-daemon[2992]: Successfully dropped root privileges.
May 16 17:33:02 zira avahi-daemon[2992]: avahi-daemon 0.7 starting up.
May 16 17:33:02 zira systemd[1]: Started Avahi mDNS/DNS-SD Stack.
[...]

According to the messages "Process X died: No such process; trying
to remove PID file.",  the PID file is not removed when avahi-daemon
is stopped. Thus I assume that the issue came from that, in the case
where the PID is reused (which was the case with PID 740 above).

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-utopia-maintainers mailing list