mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #1560] librespot_discovery] dns_sd error #706
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#706
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @onokje on GitHub (Aug 29, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1560
Description
Librespot does not run and exits with an error. I installed it using homebrew on an Ubuntu LXC.
The error: ERROR librespot_discovery] dns_sd error: Setting up dns-sd failed: DNS-SD Error: Unknown
[2025-08-29T09:46:02Z ERROR librespot] Discovery stopped unexpectedly
See logs further down below. I want to use it with snapcast.
Version
0.7.0
How to reproduce
Steps to reproduce the behavior in librespot e.g.
librespotwithlibrespot --name onoktestLog
Host (what you are running
librespoton):@roderickvd commented on GitHub (Aug 30, 2025):
The problem is not dns_sd, it's this:
Something seems up with your sound configuration. That's likely not a librespot bug, so closing for now, but feel free to reopen if you think it is.
@onokje commented on GitHub (Aug 31, 2025):
I am pretty sure this is not the issue. I have been running librespot in this configuration for over a year without problems. As I stated in my opening post: I am using librespot with snapcast, so the machine librespot is running on will not be playing any audio. I just posted the output when I run librespot standalone to make sure nobody is confused that is is a problem with snapcast.
On snapcast, the output looks like this:
@roderickvd commented on GitHub (Aug 31, 2025):
I see, that indeed changes matters. When running
librespotvanilla, please select that "pipe" backend also so it's fully reproducible.avahi-daemonrunning?with-dns-sdworked with this same system configuration?with-avahiwork instead ofwith-dns-sd?with-libmdns?with-libmdnswhen you stopavahi-daemon?@onokje commented on GitHub (Aug 31, 2025):
The avahi-daemon was in fact not running. I installed it with
apt install -y avahi-daemonand verified it:However, It didn't change anything. When I try to use a different --zeroconf-backend open it says:
How to I change the build options when installing with homebrew? I am not really too familiar with it to be honest.
So for completeness sake, this is where I'm at:
or:
@roderickvd commented on GitHub (Aug 31, 2025):
Possibly this should fix your problem: https://github.com/librespot-org/librespot/issues/1133#issuecomment-2041229773
I don’t know how Homebrew works with options. You can compile librespot yourself following the instructions in COMPILING.md.