avahi-daemon doesn't start

Bug #1542033 reported by Michael
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
Confirmed
High
Unassigned

Bug Description

While upgrading from 14.04 to 16.04 yesterday, I notived that avahi-daemon doesn't start.

Log:
Feb 04 22:00:15 michis-ibm-haupt systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
-- Subject: Unit avahi-daemon.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit avahi-daemon.service has begun starting up.
Feb 04 22:00:15 michis-ibm-haupt audit[13101]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/avahi-daemon" name="/etc/ld.so.preload" pid=13101 comm="avahi-daemon" requested_mask="r" denied_ma
Feb 04 22:00:15 michis-ibm-haupt kernel: audit: type=1400 audit(1454619615.281:301): apparmor="DENIED" operation="open" profile="/usr/sbin/avahi-daemon" name="/etc/ld.so.preload" pid=13101 comm="avahi-da
Feb 04 22:00:15 michis-ibm-haupt kernel: audit: type=1400 audit(1454619615.285:302): apparmor="DENIED" operation="chown" profile="/usr/sbin/avahi-daemon" name="/run/avahi-daemon/" pid=13101 comm="avahi-d
Feb 04 22:00:15 michis-ibm-haupt audit[13101]: AVC apparmor="DENIED" operation="chown" profile="/usr/sbin/avahi-daemon" name="/run/avahi-daemon/" pid=13101 comm="avahi-daemon" requested_mask="w" denied_m
Feb 04 22:00:15 michis-ibm-haupt avahi-daemon[13101]: Failed to create runtime directory /var/run/avahi-daemon/.
Feb 04 22:00:15 michis-ibm-haupt systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/n/a
Feb 04 22:00:15 michis-ibm-haupt systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.

Tags: xenial
Michael (3-ueuntu-4)
affects: ubuntu → avahi (Ubuntu)
Michael (3-ueuntu-4)
tags: added: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in avahi (Ubuntu):
status: New → Confirmed
Changed in avahi (Ubuntu):
importance: Undecided → High
Revision history for this message
Pavel Malyshev (afunix) wrote :

Same here. Just upgraded from 14.04.5 to 16.04.1
Apparmor forbids avahi to create datagram socket, so it dies with an assertion:
$ journalctl -ab0 | grep avahi
авг 30 11:51:46 amanda audit[2230]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/avahi-daemon" pid=2230 comm="apparmor_parser"
авг 30 11:51:48 amanda avahi-daemon[2368]: Found user 'avahi' (UID 114) and group 'avahi' (GID 121).
авг 30 11:51:48 amanda avahi-daemon[2368]: Successfully dropped root privileges.
авг 30 11:51:48 amanda avahi-daemon[2368]: avahi-daemon 0.6.32-rc starting up.
авг 30 11:51:48 amanda audit[2368]: AVC apparmor="DENIED" operation="sendmsg" profile="/usr/sbin/avahi-daemon" name="/run/systemd/notify" pid=2368 comm="avahi-daemon" requested_mask="w" denied_mask="w" fsuid=114 ouid=0
авг 30 11:51:48 amanda avahi-daemon[2368]: Successfully called chroot().
авг 30 11:51:48 amanda avahi-daemon[2368]: Successfully dropped remaining capabilities.
авг 30 11:51:48 amanda avahi-daemon[2368]: No service file found in /etc/avahi/services.
авг 30 11:51:48 amanda audit[2368]: AVC apparmor="DENIED" operation="create" profile="/usr/sbin/avahi-daemon" pid=2368 comm="avahi-daemon" family="netlink" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create"
авг 30 11:51:48 amanda avahi-daemon[2368]: on: starting up: iface-linux.c:380: avahi_interface_monitor_sync: Assertion `m' failed.
авг 30 11:51:48 amanda avahi-daemon[2368]: netlink.c: socket(PF_NETLINK): Permission denied
авг 30 11:51:48 amanda systemd[1]: avahi-daemon.service: Main process exited, code=killed, status=6/ABRT
авг 30 11:51:48 amanda systemd[1]: avahi-daemon.service: Unit entered failed state.
авг 30 11:51:48 amanda systemd[1]: avahi-daemon.service: Failed with result 'signal'.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Is there anything different about your Avahi setup or your system setup? (try running sudo dpkg -V)

Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1626258

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.