Skip to content

Commit 2067861

Browse files
cecillepull[bot]
authored andcommitted
Add a guide on how to troubleshoot avahi (#14926)
Covers some common errors when using platform mdns on linux.
1 parent 46f4ed8 commit 2067861

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/guides/troubleshooting_avahi.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Troubleshooting Avahi
2+
3+
## Resetting the cache
4+
5+
Avahi keeps a cache of old results. To reset the cache, kill the daemon. It will
6+
auto-restart.
7+
8+
`sudo avahi-daemon --kill`
9+
10+
## Stopping the daemon
11+
12+
If you really want to stop the daemon, killing it is not sufficient because it
13+
will just restart. To stop it completely:
14+
15+
```
16+
sudo systemctl mask avahi-daemon.socket
17+
sudo systemctl disable avahi-daemon
18+
sudo systemctl stop avahi-daemon
19+
```
20+
21+
## Problem: Failed to create avahi group: Not permitted
22+
23+
Avahi is not set up to publish records by default. This has to be explicitly
24+
allowed in the config file. In /etc/avahi/avahi-daemon.conf, add the following
25+
lines:
26+
27+
```
28+
[publish]
29+
disable-user-service-publishing=no
30+
```
31+
32+
Then restart the daemon
33+
34+
```
35+
sudo systemctl restart avahi
36+
```

0 commit comments

Comments
 (0)