[Pkg-utopia-maintainers] Bug#872698: avahi-daemon[609]: chroot.c: open() failed: No such file or directory

GT grandtoubab at msn.com
Sun Aug 20 08:21:09 UTC 2017


Package: avahi-daemon
Version: 0.6.32-2
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
Boot the  PC
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Look for errors in journalctl
   * What was the outcome of this action?

Aug 20 09:51:48 debian avahi-daemon[609]: chroot.c: open() failed: No such file
or directory
Aug 20 09:51:48 debian avahi-daemon[569]: Failed to open /etc/resolv.conf:
Invalid argument
Aug 20 09:51:48 debian avahi-daemon[569]: No service file found in
/etc/avahi/services.

   * What outcome did you expect instead?
No errors

***
avahi-daemon starts too early, that is before the network resources are
available.
I modify the service addind a condition After=network-online.target

[Unit]
Description=Avahi mDNS/DNS-SD Stack
After=network-online.target

[Service]
Type=dbus
BusName=org.freedesktop.Avahi
ExecStart=/usr/sbin/avahi-daemon -s
ExecReload=/usr/sbin/avahi-daemon -r
NotifyAccess=main

[Install]
WantedBy=multi-user.target
Also=avahi-daemon.socket
Alias=dbus-org.freedesktop.Avahi.service

Result is now better
systemctl status avahi-daemon
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor
preset: enabled)
   Active: active (running) since Sun 2017-08-20 10:04:33 CEST; 12min ago
 Main PID: 712 (avahi-daemon)
   Status: "avahi-daemon 0.6.32 starting up."
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/avahi-daemon.service
           ├─712 avahi-daemon: running [debian.local]
           └─740 avahi-daemon: chroot helper

août 20 10:04:32 debian avahi-daemon[712]: avahi-daemon 0.6.32 starting up.
août 20 10:04:33 debian systemd[1]: Started Avahi mDNS/DNS-SD Stack.
août 20 10:04:33 debian avahi-daemon[712]: Successfully called chroot().
août 20 10:04:33 debian avahi-daemon[712]: Successfully dropped remaining
capabilities.
août 20 10:04:33 debian avahi-daemon[712]: No service file found in
/etc/avahi/services.
août 20 10:04:33 debian avahi-daemon[712]: Joining mDNS multicast group on
interface wlan0.IPv4 with address 192.168.1.6
août 20 10:04:33 debian avahi-daemon[712]: New relevant interface wlan0.IPv4
for mDNS.
août 20 10:04:33 debian avahi-daemon[712]: Network interface enumeration
completed.
août 20 10:04:33 debian avahi-daemon[712]: Registering new address record for
192.168.1.68 on wlan0.IPv4.
août 20 10:04:33 debian avahi-daemon[712]: Server startup complete. Host name
is debian.local. Local service cookie is 3



after

systemctl status network-online.target
● network-online.target - Network is Online
   Loaded: loaded (/lib/systemd/system/network-online.target; static; vendor
preset: enabled)
   Active: active since Sun 2017-08-20 10:04:32 CEST; 15min ago
     Docs: man:systemd.special(7)
           https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

août 20 10:04:32 debian systemd[1]: Reached target Network is Online.



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.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.116
ii  bind9-host [host]    1:9.10.3.dfsg.P4-12.5
ii  dbus                 1.11.16+really1.10.22-1
ii  host                 1:9.10.3.dfsg.P4-12.5
ii  init-system-helpers  1.49
ii  libavahi-common3     0.6.32-2
ii  libavahi-core7       0.6.32-2
ii  libc6                2.24-14
ii  libcap2              1:2.25-1
ii  libdaemon0           0.14-6+b1
ii  libdbus-1-3          1.11.16+really1.10.22-1
ii  libexpat1            2.2.3-1
ii  lsb-base             9.20161125

Versions of packages avahi-daemon recommends:
ii  libnss-mdns  0.10-8

Versions of packages avahi-daemon suggests:
ii  avahi-autoipd  0.6.32-2

-- no debconf information


More information about the Pkg-utopia-maintainers mailing list