mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #985] crash when starting librespot, with error: 'thread 'main' panicked at 'called Result::unwrap() on an Err value: DNSError(Unknown)'' #476
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#476
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 @Sveske-Juice on GitHub (Apr 18, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/985
When i start librespot it crashes, with error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: DNSError(Unknown)', discovery/src/lib.rs:115:18The command used to start the server:
$ librespot -n "Librespot server" --backend pulseaudio@Sveske-Juice commented on GitHub (Apr 18, 2022):
Hi i found a solution to the problem. I will try to explain but keep in mind i'm not quite sure it's correct. Librespot uses mDNS/DNS-SD to broadcast to the local network that the server is here and it is running. That way the spotify client can easily can see the server. The main problem occurs when it needs to broadcast it's existence, and because the avahi daemon in my case wasn't running it couldn't broadcast, resulting in crashing.
fix:
Make sure avahi is installed and running as a service
example using archlinux with systemd:
$ sudo systemctl enable avahi-daemon