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

crash when starting librespot, with error: 'thread 'main' panicked at 'called Result::unwrap() on an Err value: DNSError(Unknown)'' #985

Closed
Sveske-Juice opened this issue Apr 18, 2022 · 1 comment

Comments

@Sveske-Juice
Copy link

Sveske-Juice commented Apr 18, 2022

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:18

The command used to start the server:

$ librespot -n "Librespot server" --backend pulseaudio

@Sveske-Juice
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant