-
Notifications
You must be signed in to change notification settings - Fork 616
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
Undiscoverable when launched at the same time as avahi-daemon #1133
Comments
It is due Librespot implementing it's own mDNS stack instead of just registering with Avahi. So they fight each other. |
I have compiled librespot with the dns-sd backend. Isn't that supposed to use Avahi for discovery? |
Ok, then it should use avahi. But it probably doesn't retry if avahi is unavailable. One has to correctly order service dependencies in systemd or other supervisor used. Systemd can propagate restarts if configured to do so, but that's only workaround for proper dbus discovery
May 18, 2023 11:42:20 ettom ***@***.***>:
…
It is due Librespot implementing it's own mDNS stack instead of just registering with Avahi. So they fight each other.
I have compiled librespot with the dns-sd backend. Isn't that supposed to use Avahi for discovery?
—
Reply to this email directly, view it on GitHub[#1133 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADD33ZLX55QUFCVXIHDXV4LXGXVHZANCNFSM6AAAAAAWAKUYMM].
You are receiving this because you commented.[Tracking image][https://github.com/notifications/beacon/ADD33ZNGUMX2S7JWPE6JDC3XGXVHZA5CNFSM6AAAAAAWAKUYMOWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTS4RXRWK.gif]
|
I have set |
The problem is though that librespot doesn't listen to events from avahi, so in case of avahi is restarted librespot never applies again for registration. This is caused by librespot using only simple (and deprecated) compatibility bindings to Avahi. Other issue is that |
For anyone coming across this in the future, I have found that a similar issue (librespot fully undiscoverable) was resolved for me by enabling publishing / user service publishing in For some reason this is disabled by default! Took me way too long to figure out :P In NixOS: services.avahi = {
enable = true;
publish = {
enable = true;
userServices = true;
};
}; Sorry for interrupting / necroposting as this doesn't resolve the issue but this is the (only) top google result for Feel free to hide/delete this post if you want! |
You can now configure librespot to use the Avahi daemon. |
See #1347 or launch librespot with -h to get a list of options. |
To elaborate on what @roderickvd said: The old However, there's a new backend which requires compiling with the |
Describe the bug
Librespot (with dns-sd backend) stays in an undiscoverable state if launched closely together with avahi-daemon.
To reproduce
Steps to reproduce the behavior:
systemctl stop avahi-daemon
Librespot fails to start until avahi is started:
systemctl start avahi-daemon
Librespot now starts, but the instance is not discoverable until librespot is launched again. Some kind of a race condition? Additionally, restarting avahi-daemon while librespot is running (in a discoverable state) will make it undiscoverable until restarted.
Log:
Host (what you are running
librespot
on):The text was updated successfully, but these errors were encountered: