Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a guide on how to troubleshoot avahi #14926

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
```