You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Librespot appears to be throwing an mDNS-related error on machine startup when run as a systemd service. This doesn't kill the service, but leaves mDNS broken (so it's not visible in the Spotify app as a playback device).
If I restart the service after startup there is no error, and if I add a 30 sec delay (using ExecStartPre=/bin/sleep 30 in the service file), it also starts up without an issue.
I'm wondering if there's another service dependency that needs to be added to the service file. Or is it possible to have librespot internally retry whatever failed?
As far as I know, yes. I didn't add any additional parameters to the command. (Sorry, I'm not familiar with the Rust toolchain.) When I'd run that command, it seemed to do a full compile every time. It failed a few times until I'd installed the pkg-config and libasound2-dev packages, then it succeeded. From there I had to copy the binary to /usr/bin.
Also I forgot to mention the Ubuntu version is 24.04.
Ok, then this should be using the libmdns zeroconf backend.
This seems to be the same as librespot-org/libmdns#50, i.e. some kind of network-not-yet-available issue. Someone would need to investigate what exactly is going on here... Similar to spotifyd, we might also implement a retry feature.
Description
Librespot appears to be throwing an mDNS-related error on machine startup when run as a systemd service. This doesn't kill the service, but leaves mDNS broken (so it's not visible in the Spotify app as a playback device).
If I restart the service after startup there is no error, and if I add a 30 sec delay (using
ExecStartPre=/bin/sleep 30
in the service file), it also starts up without an issue.I'm wondering if there's another service dependency that needs to be added to the service file. Or is it possible to have librespot internally retry whatever failed?
Version
0.6.0 - built using
cargo install librespot
Host:
Systemd service file
Log
From
journalctl -u librespot.service
:The text was updated successfully, but these errors were encountered: