It does! Thank you very much ![]()
Posts by lutz108
-
-
After updating to LE 12.2.1, It stopped working again. Interestingly, It started to show "librespot" as output in Spotify app. Before, there was just the "Librespot@kodi". I tried both, giving differing log output, but no audio, either.
Choosing "Librespot@kodi" I get
Code
Display More# cat .kodi/temp/kodi.log | grep librespot 2025-11-10 13:13:23.181 T:918 info <general>: CAddonMgr::FindAddons: service.librespot v12.2.0.2 installed 2025-11-10 13:13:32.741 T:949 info <general>: Librespot: pactl load-module module-null-sink sink_name=librespot: 14 2025-11-10 13:13:32.866 T:949 info <general>: Librespot: pactl load-module module-rtp-send destination_ip=127.0.0.1 inhibit_auto_suspend=always port=23432 source=librespot.monitor: 15 2025-11-10 13:13:32.874 T:949 info <general>: Librespot: librespot.Librespot.__init__ 2025-11-10 13:13:32.875 T:949 info <general>: Librespot: librespot.Librespot.__enter__ 2025-11-10 13:13:38.287 T:949 info <general>: Librespot: librespot.Librespot.start 2025-11-10 13:13:38.714 T:979 info <general>: Librespot: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. 2025-11-10 13:15:49.292 T:979 info <general>: Librespot: [2025-11-10T12:15:49Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default 2025-11-10 13:15:49.408 T:979 info <general>: Librespot: [2025-11-10T12:15:49Z ERROR librespot_playback::player] Track should be available, but no alternatives found. 2025-11-10 13:15:49.409 T:979 info <general>: Librespot: [2025-11-10T12:15:49Z WARN librespot_playback::player] <spotify:track:09aDLAYFwUspzDKBZWfsQC> is not available 2025-11-10 13:15:49.409 T:979 info <general>: Librespot: [2025-11-10T12:15:49Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:09aDLAYFwUspzDKBZWfsQC")>: () 2025-11-10 13:15:49.422 T:979 info <general>: Librespot: [2025-11-10T12:15:49Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default }Code# librespot help [2025-11-10T12:14:55Z INFO librespot] librespot 0.7.1 b7228a2 (Built on 2025-09-04, Build ID: GLXwehFT, Profile: release) [2025-11-10T12:14:55Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. [2025-11-10T12:14:55Z INFO librespot_playback::convert] Converting with ditherer: tpdf [2025-11-10T12:14:55Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16 *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>Choosing "librespot" I get
Code# cat .kodi/temp/kodi.log | grep librespot 2025-11-10 13:17:18.896 T:917 info <general>: CAddonMgr::FindAddons: service.librespot v12.2.0.2 installed 2025-11-10 13:17:32.853 T:947 info <general>: Librespot: pactl load-module module-null-sink sink_name=librespot: 14 2025-11-10 13:17:32.983 T:947 info <general>: Librespot: pactl load-module module-rtp-send destination_ip=127.0.0.1 inhibit_auto_suspend=always port=23432 source=librespot.monitor: 15 2025-11-10 13:17:32.987 T:947 info <general>: Librespot: librespot.Librespot.__init__ 2025-11-10 13:17:32.988 T:947 info <general>: Librespot: librespot.Librespot.__enter__ 2025-11-10 13:17:38.585 T:947 info <general>: Librespot: librespot.Librespot.start 2025-11-10 13:17:39.010 T:977 info <general>: Librespot: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.Code
Display More# librespot help [2025-11-10T12:19:33Z INFO librespot] librespot 0.7.1 b7228a2 (Built on 2025-09-04, Build ID: GLXwehFT, Profile: release) [2025-11-10T12:19:33Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0) *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. [2025-11-10T12:19:33Z INFO librespot_playback::convert] Converting with ditherer: tpdf [2025-11-10T12:19:33Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16 *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> [2025-11-10T12:19:51Z INFO librespot_core::session] Connecting to AP "ap-gew4.spotify.com:4070" [2025-11-10T12:19:51Z INFO librespot_core::session] Authenticated as 'someone' ! [2025-11-10T12:19:51Z INFO librespot_core::session] Country: "DE" [2025-11-10T12:19:51Z INFO librespot_core::spclient] Resolved "gew4-spclient.spotify.com:443" as spclient access point [2025-11-10T12:19:51Z INFO librespot_connect::spirc] active device is <AAA> with session BBB> [2025-11-10T12:19:52Z WARN librespot_connect::state::context] couldn't load context info because: context is not available. type: Default [2025-11-10T12:19:52Z INFO librespot_connect::spirc] session update: <Ok(NEW_SESSION)> for self, current session_id XXX, new session_id YYY [2025-11-10T12:19:52Z ERROR librespot_playback::player] Track should be available, but no alternatives found. [2025-11-10T12:19:52Z WARN librespot_playback::player] <spotify:track:0zUlGrTtM6SM40xhlNCFKI> is not available [2025-11-10T12:19:52Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:0zUlGrTtM6SM40xhlNCFKI")>: () [2025-11-10T12:19:52Z ERROR librespot_connect::spirc] could not dispatch player event: Invalid state { context is not available. type: Default } -
Oh well. I have enabled system Auto Updates, so I was still on LE 12.0.2., where the librespot version was 0.5 - didn't notice there was a 12.2 release. So I updated to 12.2 manually, reinstalled librespot¹ and it's working again. Thanks for the hint!

¹had to do that because I tried to change the application backend, where the default alsa hw:2.0 did not work. I just was too lazy to type the related output...
-
Hey there,
any chance on upgrading librespot to a current version? It was working well until recently (sometime this summer). From the logs I got
Code# tail -f .kodi/temp/kodi.log | grep librespot debug <general>: Librespot: [2025-10-24T21:41:26Z ERROR librespot_playback::player] Track should be available, but no alternatives found. debug <general>: Librespot: [2025-10-24T21:41:26Z WARN librespot_playback::player] <spotify:track:4bXkJxL5o6ro4iLmBAl80E> is not available debug <general>: Librespot: [2025-10-24T21:41:26Z ERROR librespot_playback::player] Skipping to next track, unable to load track <SpotifyId("spotify:track:4bXkJxL5o6ro4iLmBAl80E")>: () debug <general>: Librespot: [2025-10-24T21:41:26Z ERROR librespot_playback::player] Track should be available, but no alternatives found. debug <general>: Librespot: [2025-10-24T21:41:26Z WARN librespot_playback::player] <spotify:track:0WGgup9sYlZNyvvVhuv85q> is not availableWhich lead me to https://github.com/librespot-org/librespot/issues/1527. Trying the workaround with adding 0.0.0.0 apresolve.spotify.com to /storage/.config/hosts.conf did not work for me. I then get similar issues to https://github.com/librespot-org/…ment-3167524954
Code
Display More# tail -f .kodi/temp/kodi.log | grep librespot debug <CAddonSettings[[email protected]]>: trying to load setting definitions from old format... debug <general>: Librespot: ['librespot', '--bitrate', '320', '--device-type', 'tv', '--disable-audio-cache', '--disable-credential-cache', '--name', 'Librespot@kodi', '--onevent', 'onevent.py', '--quiet'] debug <general>: Librespot: librespot thread started debug <general>: Librespot: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi. debug <general>: Librespot: [2025-10-24T21:47:12Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks debug <general>: Librespot: [2025-10-24T21:47:12Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } debug <general>: Librespot: [2025-10-24T21:47:13Z WARN librespot_core::apresolve] Failed to resolve all access points, using fallbacks debug <general>: Librespot: [2025-10-24T21:47:13Z WARN librespot_core::apresolve] Resolve access points error: Service unavailable { client error (Connect) } debug <general>: Librespot: [2025-10-24T21:47:13Z WARN librespot_core::cdn_url] Cannot parse CDN URL expiry timestamp 'verify=1761428833-4YPnGCJdOXKmP%2FUOBHla2D%2FXViEQRo103fTpd2SDvzo%3D' from 'https://audio-cf.spotifycdn.com/audio/13dedb7ad34a58590d6ce3e4ea5e8c3992bc3dec?verify=1761428833-4YPnGCJdOXKmP%2FUOBHla2D%2FXViEQRo103fTpd2SDvzo%3D' debug <general>: Librespot: [2025-10-24T21:47:14Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: <AlsaSink> Device hw:2,0 May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)' debug <general>: Librespot: [2025-10-24T21:47:14Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: <AlsaSink> Device hw:2,0 May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_open' failed with error 'No such file or directory (2)' debug <general>: Librespot: [2025-10-24T21:47:14Z ERROR librespot_playback::player] PlayerInternal poll: Invalid PlayerState debug <general>: Librespot: *** WARNING *** The program 'librespot' uses the Apple Bonjour compatibility layer of Avahi.