#1105829 snapclient: avahi browser error logged every second

Package:
snapclient
Source:
snapclient
Description:
Snapcast client
Submitter:
Kevin Otte
Date:
2025-08-15 17:33:01 UTC
Severity:
normal
#1105829#5
Date:
2025-05-15 18:11:26 UTC
From:
To:
Dear Maintainer,

As soon as the package is installed, the service is started and it begins writing to the log every second:

May 15 14:04:54 agamemnon snapclient[909358]: (Avahi) (Browser) CACHE_EXHAUSTED

I declared this severity important rather than normal as this would eventually fill the journal if left unchecked, especially on an embedded device.

#1105829#10
Date:
2025-08-15 17:32:20 UTC
From:
To:
Adding to this:

The snapclient polls Avahi only if no server was explicitly defined via
"-h" and in case "-p" CLI options.

The snapserver needs to announce or have announced itself via Avahi,
else the client keeps polling forever, getting this CACHE_EXHAUSTED
answer for some reason. This also means that the Avahi daemon needs to
run before the snapserver is started, since it does not announce itself
if Avahi was not running at its startup.

These infinite messages are still not great, and CACHE_EXHAUSTED is a
weird answer, which happens even when setting e.g.
"cache-entries-max=1000000" in /etc/avahi/avahi-daemon.conf (default is
4096).

There is an upstream issue which I necroed, probably a new one makes
sense to think about how to enhance the situation if the Avahi daemon is
not running: https://github.com/badaix/snapcast/issues/647

If avahi-daemon is not installed or running (and not triggering on
socket), there is btw another error every second, so that does not make
things better:
```
(Controller) Exception: BrowseAvahi - Failed to create client: Daemon
not running
```
It is a recommendation but no strict dependency, which is somewhat
reasonable. So it is however possible to remove it.

Best regards,
Micha