dtcooper / raspotify

A Spotify Connect client that mostly Just Works™

Home Page:https://dtcooper.github.io/raspotify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspotify outputs no sound, and keeps skipping songs

Emilurenius opened this issue · comments

Compatible Device

  • I'm running Raspotify on a compatible Device

Compatible OS

  • I'm running Raspotify on a compatible OS

Latest Version

  • I'm running the latest version of Raspotify

Due Diligence

  • I have done my due diligence

What happened?

I have been using raspotify for two weeks without issues, and then suddenly one day it just stopped working properly. There is no sound output anymore, even though it is outputting to the correct audio device. I have checked that all hardware works, and I am able to get sound out of the raspberry pi with other software.

Spotify also skips to the next song about 20 times after connecting to the Pi with spotify connect.

I have tried reinstalling the OS and raspotify, but the issue persists.

Relevant log output

No response

Hardware?
Audio details?
Log?

Where in the world are you?

You might have the same issue as I did in #542

Check your logs and try blocking apresolve.spotify.com if you get ChannelError.

Here are the logs I am getting:
-- Journal begins at Mon 2022-04-04 16:52:30 CEST, ends at Wed 2022-05-11 09:45:58 CEST. -- May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track,>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Player::pause called fr>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypte>May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track,>lines 1-29...skipping... -- Journal begins at Mon 2022-04-04 16:52:30 CEST, ends at Wed 2022-05-11 09:45:58 CEST. -- May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 269881097637946755373035848119632447855, audio_typ> May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:33 raspi4 librespot[2178]: [2022-05-10T13:38:33Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 124292201033741413902278096745161214135, audio_typ> May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 276936665107733024281373331087441724011, audio_typ> May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 109796569721069273484947060932279210150, audio_typ> May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 148612980007165824095836223877209380409, audio_typ> May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:34 raspi4 librespot[2178]: [2022-05-10T13:38:34Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 34339769539121434925260846993019721180, audio_type> May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 11950010150635156591781342619160691705, audio_type> May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 213219934840563912268806586450128302214, audio_typ> May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Player::pause called from invalid state May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 253581188429163582409053633697201185805, audio_typ> May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 85799288830328475021529582757019561524, audio_type> May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:35 raspi4 librespot[2178]: [2022-05-10T13:38:35Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 309051274830764948428738123608283104645, audio_typ> May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 31771411018736283168757637781684840015, audio_type> May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 155289907147447338035236447923178550565, audio_typ> May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 73184493035254112977498708500111703600, audio_type> May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 242549767193362990952073370335630552752, audio_typ> May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_core::channel] channel error: 2 1 May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z ERROR librespot_playback::player] Unable to load encrypted file: ChannelError May 10 15:38:36 raspi4 librespot[2178]: [2022-05-10T13:38:36Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 160693545495108062392491181430724548846, audio_typ>

I can see why it is skipping songs now. Seems you may be right Kirenida. I am not sure of how to block apresolve.spotify.com. Is it through the firewall on the Pi, or on the router itself?

@Emilurenius

I just put the address in my piHole blacklist, so you can do that if you're using piHole. Just make sure that the pi is set up correctly.

Or you can just add '127.0.0.1 apresolve.spotify.com' to your '/etc/hosts' file on the raspberry.

Or you can do it for your whole network by blocking it through the router.

your

That fixed it instantly! Thank you so much!

This is an upstream issue. You should file an issue with librespot.