Skip to content

Commit

Permalink
Add a guide on how to troubleshoot avahi (#14926)
Browse files Browse the repository at this point in the history
Covers some common errors when using platform mdns on linux.
  • Loading branch information
cecille authored and pull[bot] committed Feb 11, 2022
1 parent 46f4ed8 commit 2067861
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/guides/troubleshooting_avahi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Troubleshooting Avahi

## Resetting the cache

Avahi keeps a cache of old results. To reset the cache, kill the daemon. It will
auto-restart.

`sudo avahi-daemon --kill`

## Stopping the daemon

If you really want to stop the daemon, killing it is not sufficient because it
will just restart. To stop it completely:

```
sudo systemctl mask avahi-daemon.socket
sudo systemctl disable avahi-daemon
sudo systemctl stop avahi-daemon
```

## Problem: Failed to create avahi group: Not permitted

Avahi is not set up to publish records by default. This has to be explicitly
allowed in the config file. In /etc/avahi/avahi-daemon.conf, add the following
lines:

```
[publish]
disable-user-service-publishing=no
```

Then restart the daemon

```
sudo systemctl restart avahi
```

0 comments on commit 2067861

Please sign in to comment.