librespot-org / librespot

Open Source Spotify client library
MIT License
4.7k stars 573 forks source link

Setting up dns-sd failed: No buffer space available #1122

Closed truppelito closed 1 year ago

truppelito commented 1 year ago

Describe the bug I'm running librespot on a RaspberryPi 4 (actually, I'm running Raspotify but I think this is a librespot problem), and discovery does not work.

To reproduce Run the following command:

pi@raspberrypi:~ $ librespot --device plughw:CARD=Headphones,DEV=0 --name TEST --initial-volume 50 --enable-volume-normalisation --verbose
[2023-02-20T16:31:03Z INFO  librespot] librespot 0.4.2 5cda505 (Built on 2023-02-15, Build ID: jnLczk9X, Profile: release)
[2023-02-20T16:31:03Z TRACE librespot] Command line argument(s):
[2023-02-20T16:31:03Z TRACE librespot]      device "plughw:CARD=Headphones,DEV=0"
[2023-02-20T16:31:03Z TRACE librespot]      name "TEST"
[2023-02-20T16:31:03Z TRACE librespot]      initial-volume "50"
[2023-02-20T16:31:03Z TRACE librespot]      enable-volume-normalisation
[2023-02-20T16:31:03Z TRACE librespot]      verbose
[2023-02-20T16:31:03Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:38393
[2023-02-20T16:31:03Z DEBUG librespot] System uptime: 701840 secs
[2023-02-20T16:31:03Z DEBUG librespot] System uptime >= 60 secs, not retrying to initialise discovery
[2023-02-20T16:31:03Z WARN  librespot] Could not initialise discovery: Setting up dns-sd failed: No buffer space available (os error 105)
[2023-02-20T16:31:03Z ERROR librespot] Discovery is unavailable and no credentials provided. Authentication is not possible.
truppelito commented 1 year ago

Nevermind, I had rebooted the RaspberryPi before, but I just noticed the System uptime >= 60 secs, not retrying to initialise discovery line, so I rebooted the Pi again now and it started working. Maybe I was a bit too premature with this bug report.