[Pkg-utopia-maintainers] Bug#929010: Bug#929010: avahi-daemon: /etc/network/if-post-down.d/avahi-daemon is slow on eth0

Michael Biebl biebl at debian.org
Thu May 16 13:15:37 BST 2019


Am 16.05.19 um 00:27 schrieb Vincent Lefevre:
> On 2019-05-15 12:50:49 +0200, Michael Biebl wrote:
>> Which part of /usr/lib/avahi/avahi-daemon-check-dns.sh is taking so long?
>> Can you add a "set -x" and then manually invoke "ifdown eth0"
> 
> I get:
> 
> + PATH=/bin:/usr/bin:/sbin:/usr/sbin
> + RUNDIR=/var/run/avahi-daemon/
> + DISABLE_TAG=/var/run/avahi-daemon//disabled-for-unicast-local
> + NS_CACHE=/var/run/avahi-daemon//checked_nameservers
> + AVAHI_DAEMON_DETECT_LOCAL=1
> + test -f /etc/default/avahi-daemon
> + . /etc/default/avahi-daemon
> + AVAHI_DAEMON_DETECT_LOCAL=1
> + [ 1 != 1 ]
> + dns_reachable
> + grep -q nameserver /etc/resolv.conf
> + 
> + egrep -q nameserver 127.0.0.1|::1 /etc/resolv.conf
> + 
> + return 0
> + dns_needs_check
> + TMP_CACHE=/var/run/avahi-daemon//checked_nameservers.8379
> + RET=0
> + ensure_rundir
> + [ ! -d /var/run/avahi-daemon/ ]
> + cat /etc/resolv.conf
> + grep nameserver
> + sort
> + [ -e /var/run/avahi-daemon//checked_nameservers ]
> + mv /var/run/avahi-daemon//checked_nameservers.8379 /var/run/avahi-daemon//checked_nameservers
> + return 0
> + dns_has_local
> + [ -n  ]
> + LC_ALL=C host -t soa local.
> + OUT=;; connection timed out; no servers could be reached
> + [ 1 -eq 0 ]
> + rm -f /var/run/avahi-daemon//checked_nameservers
> + return 1
> + enable_avahi
> + [ -e /var/run/avahi-daemon//disabled-for-unicast-local ]
> + exit 0
> 
> with several seconds between
> 
> + LC_ALL=C host -t soa local.
> 
> and
> 
> + OUT=;; connection timed out; no servers could be reached
> 
> At least, this is consistent with the timeout.
> 
> Moreover, I don't understand why it tries to reach servers as eth0
> is down (this is called in an if-post-down.d script).
> 

Looks like you have a local resolver configured in /etc/resolv.conf
(which should be reachable via lo, even if eth0 is down).

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20190516/78bb6789/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list