← Back to team overview

touch-packages team mailing list archive

[Bug 1507247] [NEW] avahi-daemon dies after about a minute

 

You have been subscribed to a public bug:

So I thought I'd try running Vagrant inside of an Ubuntu VM to do some
development work as detailed here:
http://taoofmac.com/space/HOWTO/Vagrant

When the box starts up, there is a short delay before broadcasting
begins, and I'm able to ping the guest (in this case registered as
"hobo-container.local").

Then, after a minute or two, it stops responding.  The logs look like
this:

-- Logs begin at Thu 2015-10-15 14:36:55 EDT, end at Thu 2015-10-15 14:40:00 EDT. --
Oct 15 14:36:58 hobo-container systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Found user 'avahi' (UID 110) and group 'avahi' (GID 119).
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Successfully dropped root privileges.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: avahi-daemon 0.6.31 starting up.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Successfully called chroot().
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Successfully dropped remaining capabilities.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Loading service file /services/ssh.service.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Joining mDNS multicast group on interface eth1.IPv6 with address fe80::a0
Oct 15 14:36:58 hobo-container avahi-daemon[507]: New relevant interface eth1.IPv6 for mDNS.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Joining mDNS multicast group on interface eth1.IPv4 with address 203.0.11
Oct 15 14:36:58 hobo-container avahi-daemon[507]: New relevant interface eth1.IPv4 for mDNS.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Network interface enumeration completed.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Registering new address record for fe80::a00:27ff:fef9:e38c on eth1.*.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Registering new address record for 203.0.113.2 on eth1.IPv4.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Registering HINFO record with values 'X86_64'/'LINUX'.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Joining mDNS multicast group on interface lxcbr0.IPv4 with address 10.0.3
Oct 15 14:36:58 hobo-container avahi-daemon[507]: New relevant interface lxcbr0.IPv4 for mDNS.
Oct 15 14:36:58 hobo-container avahi-daemon[507]: Registering new address record for 10.0.3.1 on lxcbr0.IPv4.
Oct 15 14:36:59 hobo-container avahi-daemon[507]: Server startup complete. Host name is hobo-container.local. Local service
Oct 15 14:37:00 hobo-container avahi-daemon[507]: Joining mDNS multicast group on interface lxcbr0.IPv6 with address fe80::
Oct 15 14:37:00 hobo-container avahi-daemon[507]: New relevant interface lxcbr0.IPv6 for mDNS.
Oct 15 14:37:00 hobo-container avahi-daemon[507]: Registering new address record for fe80::704a:9bff:fe76:a607 on lxcbr0.*.
Oct 15 14:37:01 hobo-container avahi-daemon[507]: Service "hobo-container" (/services/ssh.service) successfully established
Oct 15 14:38:28 hobo-container systemd[1]: avahi-daemon.service start operation timed out. Terminating.
Oct 15 14:38:28 hobo-container avahi-daemon[507]: Got SIGTERM, quitting.
Oct 15 14:38:28 hobo-container avahi-daemon[507]: Leaving mDNS multicast group on interface lxcbr0.IPv6 with address fe80::
Oct 15 14:38:28 hobo-container avahi-daemon[507]: Leaving mDNS multicast group on interface lxcbr0.IPv4 with address 10.0.3
Oct 15 14:38:28 hobo-container avahi-daemon[507]: Leaving mDNS multicast group on interface eth1.IPv6 with address fe80::a0
Oct 15 14:38:28 hobo-container avahi-daemon[507]: Leaving mDNS multicast group on interface eth1.IPv4 with address 203.0.11
Oct 15 14:38:28 hobo-container systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Oct 15 14:38:28 hobo-container systemd[1]: Unit avahi-daemon.service entered failed state.
Oct 15 14:38:28 hobo-container systemd[1]: avahi-daemon.service failed.

Further attempts to restart the service fail:

$ sudo service avahi-daemon start
Job for avahi-daemon.service failed. See "systemctl status avahi-daemon.service" and "journalctl -xe" for details.

With similar logs:

Oct 15 14:41:16 hobo-container systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Found user 'avahi' (UID 110) and group 'avahi' (GID 119).
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Successfully dropped root privileges.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: avahi-daemon 0.6.31 starting up.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Successfully called chroot().
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Successfully dropped remaining capabilities.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Loading service file /services/ssh.service.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Joining mDNS multicast group on interface lxcbr0.IPv6 with address fe80:
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: New relevant interface lxcbr0.IPv6 for mDNS.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Joining mDNS multicast group on interface lxcbr0.IPv4 with address 10.0.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: New relevant interface lxcbr0.IPv4 for mDNS.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Joining mDNS multicast group on interface eth1.IPv6 with address fe80::a
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Process 507 died: No such process; trying to remove PID file. (/var/run/
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: New relevant interface eth1.IPv6 for mDNS.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Joining mDNS multicast group on interface eth1.IPv4 with address 203.0.1
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: New relevant interface eth1.IPv4 for mDNS.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Network interface enumeration completed.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Registering new address record for fe80::704a:9bff:fe76:a607 on lxcbr0.*
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Registering new address record for 10.0.3.1 on lxcbr0.IPv4.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Registering new address record for fe80::a00:27ff:fef9:e38c on eth1.*.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Registering new address record for 203.0.113.2 on eth1.IPv4.
Oct 15 14:41:16 hobo-container avahi-daemon[1099]: Registering HINFO record with values 'X86_64'/'LINUX'.
Oct 15 14:41:17 hobo-container avahi-daemon[1099]: Server startup complete. Host name is hobo-container.local. Local servic
Oct 15 14:41:18 hobo-container avahi-daemon[1099]: Service "hobo-container" (/services/ssh.service) successfully establishe
Oct 15 14:42:46 hobo-container systemd[1]: avahi-daemon.service start operation timed out. Terminating.
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: Got SIGTERM, quitting.
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: Leaving mDNS multicast group on interface lxcbr0.IPv6 with address fe80:
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: Leaving mDNS multicast group on interface lxcbr0.IPv4 with address 10.0.
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: Leaving mDNS multicast group on interface eth1.IPv6 with address fe80::a
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: Leaving mDNS multicast group on interface eth1.IPv4 with address 203.0.1
Oct 15 14:42:46 hobo-container avahi-daemon[1099]: avahi-daemon 0.6.31 exiting.
Oct 15 14:42:46 hobo-container systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Oct 15 14:42:46 hobo-container systemd[1]: Unit avahi-daemon.service entered failed state.
Oct 15 14:42:46 hobo-container systemd[1]: avahi-daemon.service failed.

So it looks like it's starting again, waiting for about a minute, and
then dying again.  Testing bears this out. When I issue the start, I'm
able to ping the guest by its avahi-broadcasted hostname again until the
process dies.

Interestingly, if I merely run avahi-daemon as root, the process stays
running and doesn't die. It's been going strong for 10 minutes now with
no change in ouput from

`watch ping -o hobo-container.local` from the host machine.

** Affects: avahi (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
avahi-daemon dies after about a minute
https://bugs.launchpad.net/bugs/1507247
You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to avahi in Ubuntu.