[Pkg-utopia-maintainers] Bug#810184: avahi-daemon: avahi-autoipd will not stay dead
vrghost
bengtbj at gmail.com
Thu Jan 7 08:29:33 UTC 2016
Package: avahi-daemon
Version: 0.6.31-5
Severity: critical
Tags: ipv6
Justification: breaks unrelated software
Dear Maintainer,
Installed Debian on a desktop, and got Avahi as part of the deal. And like a
virus, it seems impossible to get rid of it. And yes, I understand the idea
behind it, but as it currently stands, all it is achieving is creating a
default route to nowhere.
Actually, the only thing that the daemon seems to be really good at is to
restart itself, and not staying dead after killing it.
Literally:
update-rc.d -f avahi-daemon remove
Changed
changing /etc/avahi/avahi-daemon.conf
AVAHI_DAEMON_DETECT_LOCAL=0
Created
echo "manual" > avahi-daemon.conf in /etc/init
Should add that it works if I connect a wired connection.
If I use wifi (using iwlwifi for Intel) the network works, I can contact any
IPs on the local network, but anything that needs routing, avahi send it to
169.254.6.
Guess what, this daemon still turns up, creates some default routes to its own
network, I can get it to work for a minute, by restarting the network.
Further investigation shows that, even though avahi-daemon is turned of
(including additional services)
root at Alicestation:/home/alice# systemctl --all | grep avahi
● avahi-daemon.service
masked inactive dead avahi-daemon.service
● avahi-daemon.socket
masked inactive dead avahi-daemon.socket
If I manually kill the process, either with kill or avahi-autoipd --kill eth0,
it restarts a few minutes later.
All I can tell from system log is
root at Alicestation:/home/alice# journalctl _PID=6080
-- Logs begin at Wed 2016-01-06 17:04:04 GMT, end at Thu 2016-01-07 07:15:50
GMT. --
Jan 07 07:15:41 Alicestation avahi-autoipd(eth0)[6080]: Found user 'avahi-
autoipd' (UID 108) and group '
Jan 07 07:15:41 Alicestation avahi-autoipd(eth0)[6080]: Successfully called
chroot().
Jan 07 07:15:41 Alicestation avahi-autoipd(eth0)[6080]: Successfully dropped
root privileges.
Jan 07 07:15:41 Alicestation avahi-autoipd(eth0)[6080]: Starting with address
169.254.6.203
Jan 07 07:15:46 Alicestation avahi-autoipd(eth0)[6080]: Callout BIND, address
169.254.6.203 on interface
Jan 07 07:15:50 Alicestation avahi-autoipd(eth0)[6080]: Successfully claimed IP
address 169.254.6.203
root at Alicestation:/home/alice# avahi-autoipd --kill eth0
root at Alicestation:/home/alice# ps -ef | grep avahi
root 6126 1720 0 07:20 pts/0 00:00:00 grep avahi
Issue seems to potentially be related to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768620
More details on the call and steps attempted can be found at
http://forums.debian.net/viewtopic.php?f=5&t=126460&p=603844#p603844
There might be a second bug as well, the fact that by default the avahi daemon
breaks the routing of a system.
Seems like it just creates eth0:avahi and takes over the routing
root at Alicestation:/home/alice# ifconfig -a
eth0 Link encap:Ethernet HWaddr 84:8f:69:bd:2b:4e
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0:avahi Link encap:Ethernet HWaddr 84:8f:69:bd:2b:4e
inet addr:169.254.6.203 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:21775 errors:0 dropped:0 overruns:0 frame:0
TX packets:21775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2132176 (2.0 MiB) TX bytes:2132176 (2.0 MiB)
wlan0 Link encap:Ethernet HWaddr 74:e5:0b:75:94:38
inet addr:192.168.0.87 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::76e5:bff:fe75:9438/64 Scope:Link
inet6 addr: fd22:a1e7:6ab3:0:76e5:bff:fe75:9438/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:230862 errors:0 dropped:0 overruns:0 frame:0
TX packets:61897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:235437958 (224.5 MiB) TX bytes:6489430 (6.1 MiB)
root at Alicestation:/home/alice# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 1002 0 0 eth0
0.0.0.0 192.168.0.254 0.0.0.0 UG 1024 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: 8.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages avahi-daemon depends on:
ii adduser 3.113+nmu3
ii bind9-host [host] 1:9.9.5.dfsg-9+deb8u4
ii dbus 1.8.20-0+deb8u1
ii host 1:9.9.5.dfsg-9+deb8u4
ii init-system-helpers 1.22
ii libavahi-common3 0.6.31-5
ii libavahi-core7 0.6.31-5
ii libc6 2.19-18+deb8u1
ii libcap2 1:2.24-8
ii libdaemon0 0.14-6
ii libdbus-1-3 1.8.20-0+deb8u1
ii libexpat1 2.1.0-6+deb8u1
ii lsb-base 4.1+Debian13+nmu1
Versions of packages avahi-daemon recommends:
ii libnss-mdns 0.10-6
Versions of packages avahi-daemon suggests:
ii avahi-autoipd 0.6.31-5
-- Configuration Files:
/etc/default/avahi-daemon changed:
AVAHI_DAEMON_DETECT_LOCAL=0
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list