我在运行中遇到问题avahi-daemon 0.6.31。
我也卸载并重新安装,但启动时总是出现错误:
Jan 14 12:13:27 avahi-daemon[1773]: Failed to find user 'avahi'.
Jan 14 12:13:28 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:13:28 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:13:28 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:42 avahi-daemon[4758]: Failed to find user 'avahi'.
Jan 14 12:24:42 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:42 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:42 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:42 avahi-daemon[4773]: Failed to find user 'avahi'.
Jan 14 12:24:42 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:43 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:43 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:43 avahi-daemon[4790]: Failed to find user 'avahi'.
Jan 14 12:24:43 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:43 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:43 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:44 avahi-daemon[4812]: Failed to find user 'avahi'.
Jan 14 12:24:44 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:44 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:44 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:45 avahi-daemon[4824]: Failed to find user 'avahi'.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:45 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:45 systemd[1]: start request repeated too quickly for avahi-daemon.service
Jan 14 12:24:45 systemd[1]: Unit avahi-daemon.socket entered failed state.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service failed.
跑步
systemctl status avahi-daemon.service
它总是返回:
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit) since Thu 2016-01-14 12:24:45 UTC; 16min ago
Process: 4824 ExecStart=/usr/sbin/avahi-daemon -s (code=exited, status=255)
Main PID: 4824 (code=exited, status=255)
Jan 14 12:24:44 systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Jan 14 12:24:45 avahi-daemon[4824]: Failed to find user 'avahi'.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service: main process exited, code=exited, status=255/n/a
Jan 14 12:24:45 systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jan 14 12:24:45 systemd[1]: Unit avahi-daemon.service entered failed state.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service failed.
Jan 14 12:24:45 systemd[1]: start request repeated too quickly for avahi-daemon.service
Jan 14 12:24:45 systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
Jan 14 12:24:45 systemd[1]: avahi-daemon.service failed.
而 avahi 用户和组都在 /etc/shadow 和 /etc/group 中。通过互联网查找错误消息:
Failed to find user 'avahi'
没有返回非常有用的结果。
什么可能导致了这个问题?
答案1
https://archlinuxarm.org/forum/viewtopic.php?f=31&t=6408 这为我解决了该问题。
Go edit /etc/avahi/avahi-daemon.conf
Find the line:
"#disallow-other-stacks=no"
and change to
"disallow-other-stacks=yes"
这个标志显然是现在导致 avahi 尝试使用 SO_REUSEPORT 的原因(而将其变为是则会禁用这种新行为。)文档表明这是一种机制,可以同时适应具有多个 mdns 处理程序的恶意设置。