mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1111] Zeroconf fails with "Setting up dns-sd failed: Address already in use (os error 98)" #519
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#519
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 @khink on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1111
Describe the bug
raspotify keeps crashing with the message "Setting up dns-sd failed: Address already in use (os error 98)".
I filed this in raspotify first, but the error is from librespot, so i thought it made sense to ask/report here.
To reproduce
1.
tail -f /var/log/syslog2. Launch
sudo systemctl start raspotify3. In the log, see "Setting up dns-sd failed: Address already in use (os error 98)", and next "Discovery is unavailable and no credentials provided. Authentication is not possible."
Log
Host (what you are running
librespoton):I'm running a standard raspotify on bullseye on a Pi 3. It's running without a monitor (only SSH access), although lxde is installed (i think from when i first set it up a year or two ago).
Additional context
LIBRESPOT_ZEROCONF_PORT) has no effect@kingosticks commented on GitHub (Jan 26, 2023):
This looks like a system-level issue, not a librespot bug. The Raspotify project should be able to help you.
@kingosticks commented on GitHub (Jan 26, 2023):
Fundamentally the issue is that the librespot binary packaged in Raspotify provides its own Zeroconf server. Your system seems to also have a standalone Zeroconf server running (e.g. Avahi). It probably got installed by another package during your recent system updates. When librespot tries to start its integrated zeroconf server, it finds the port is already taken by Avahi. A solution is to remove Avahi. That might break something else on your system which is using Avahi. An alternate solution is the config change you already did. There is no librespot bug here.
There's some info at https://github.com/dtcooper/raspotify/search?q=with-dns-sd&type=issues
@khink commented on GitHub (Jan 26, 2023):
Thanks for taking the time to reply!
Indeed i have avahi.
But disabling it doesn't help:
Even when i completely remove it:
After restart:
So are we sure another zeroconf server is running, and if yes how do we find out which one it is? (Also, not sure how the issue search you refer to relates to this though, as none of them is about this "Address already in use" error.)
Update edit: After a reboot, the problem has gone. 💯 for your avahi suggestion. Thanks!