-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a guide on how to troubleshoot avahi (#14926)
Covers some common errors when using platform mdns on linux.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |