Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Spotify went crazy!!
#41
@oasis1701

Sorry I'm late to the game but I've now repro'd your issue running 64-bit moOde 8.1.2 on an RPi3A. I'm located in Maryland/USA using Comcast ISP services and librespot is connecting with a different server: ap-guc3.spotify.com:4070. I'm using the Spotify app on my iPad. Everything worked fine for enough longer than 2 minutes that I thought I was in the clear but then saw the same error

Code:
[2022-08-30T15:09:24Z ERROR librespot_playback::player] Unable to load audio item: MercuryError
[2022-08-30T15:09:24Z ERROR librespot_core::session] Connection reset by peer (os error 104)
[2022-08-30T15:09:24Z ERROR librespot_connect::spirc] subscription terminated
[2022-08-30T15:09:24Z WARN  librespot] Spirc shut down unexpectedly
[2022-08-30T15:09:24Z INFO  librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070"

moOde  8.1.2 incorporates librespot 0.4.1.

The test team is now wringing bugs out of a pre-release version of moOde 8.2.0 which incorporates librespot 0.4.2. As you've seen in other posts, the librespot maintainer has said this is the last, most stable version of the 0.4 series. 

I've just spun up a copy of moOde 8.2.0 pre1 on the same RPi3A. Things started off on the right foot

Code:
pi@m820pre1:~ $ sudo librespot --name "Moode Spotify" --bitrate 160 --format S16 --mixer softvol --initial-volume 50 --volume-ctrl log --volume-range 60 --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "_audioout" --onevent /var/local/www/commandw/spotevent.sh
[2022-08-30T15:18:25Z INFO  librespot] librespot 0.4.2 22f8aed (Built on 2022-08-18, Build ID: LQ4hikXT, Profile: release)
[2022-08-30T15:18:25Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443
[2022-08-30T15:18:25Z INFO  librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070"
[2022-08-30T15:18:25Z INFO  librespot_core::session] Authenticated as "<--elided-->" !
[2022-08-30T15:18:25Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2022-08-30T15:18:25Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2022-08-30T15:18:25Z INFO  librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
[2022-08-30T15:18:25Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"VOLUME": "32767", "PLAYER_EVENT": "volume_set"}
[2022-08-30T15:18:25Z INFO  librespot_core::session] Country: "US"
[2022-08-30T15:19:08Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"PLAYER_EVENT": "started", "TRACK_ID": "05YcMrnmypzN34kfDy01Vc"}
...

A long track played to the end, nearly 10 minutes. Then I tried to start playing a new set of tracks and kerplooey

Code:
[2022-08-30T15:29:01Z INFO  librespot_playback::player] Loading <Changing the Way> with Spotify URI <spotify:track:5aUAsHcy5yKC0j6TIKOJyL>
[2022-08-30T15:29:01Z INFO  librespot_playback::player] <Changing the Way> (508466 ms) loaded
[2022-08-30T15:29:01Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"TRACK_ID": "5aUAsHcy5yKC0j6TIKOJyL", "PLAYER_EVENT": "preloading"}
[2022-08-30T15:29:31Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"OLD_TRACK_ID": "1FMYNBIfIA8p5IxPU2wiBu", "TRACK_ID": "5aUAsHcy5yKC0j6TIKOJyL", "PLAYER_EVENT": "changed"}
[2022-08-30T15:29:31Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"DURATION_MS": "508466", "TRACK_ID": "5aUAsHcy5yKC0j6TIKOJyL", "PLAYER_EVENT": "playing", "POSITION_MS": "0"}
[2022-08-30T15:37:18Z ERROR librespot_core::session] Connection reset by peer (os error 104)
[2022-08-30T15:37:18Z WARN  librespot_audio::fetch::receive] Error from channel for data receiver for range 9195520 (+16384).
[2022-08-30T15:37:18Z WARN  librespot_audio::fetch::receive] Error from channel for data receiver for range 9244672 (+16384).
[2022-08-30T15:37:18Z WARN  librespot_audio::fetch::receive] Error from channel for data receiver for range 9211904 (+16384).
[2022-08-30T15:37:18Z WARN  librespot_audio::fetch::receive] Error from channel for data receiver for range 9228288 (+16384).
[2022-08-30T15:37:18Z ERROR librespot_connect::spirc] subscription terminated
[2022-08-30T15:37:18Z WARN  librespot] Spirc shut down unexpectedly
[2022-08-30T15:37:19Z WARN  librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:80
[2022-08-30T15:37:19Z INFO  librespot_core::session] Connecting to AP "ap-guc3.spotify.com:4070"
[2022-08-30T15:37:19Z INFO  librespot_core::session] Authenticated as "uj2jxg6mwq5qds68p1xg9yksd" !
[2022-08-30T15:37:19Z INFO  librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
[2022-08-30T15:37:19Z INFO  librespot_playback::convert] Converting with ditherer: tpdf
[2022-08-30T15:37:19Z INFO  librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
[2022-08-30T15:37:19Z INFO  librespot::player_event_handler] Running ["/var/local/www/commandw/spotevent.sh"] with environment variables {"PLAYER_EVENT": "volume_set", "VOLUME": "32767"}
[2022-08-30T15:37:19Z INFO  librespot_core::session] Country: "US"

The Spotify app has disconnected from moOde and reverted to playing via the iPad speaker.

Effectively the same behavior showed up in the librespot issues log (Issue #1035) 29 days ago, to which the maintainer commented "Typical case of temporary channel errors. If you search this repo you will find many cases like it." He asked the issue poster for verbose debugging output which was not provided so that particular issue was closed. I'll have to gen up some of my own and post it.

Regards,
Kent


Messages In This Thread
Spotify went crazy!! - by starbender - 07-15-2022, 09:59 AM
RE: Spotify went crazy!! - by Paccidat - 07-16-2022, 06:17 PM
RE: Spotify went crazy!! - by Paccidat - 07-16-2022, 06:34 PM
RE: Spotify went crazy!! - by starbender - 07-19-2022, 09:38 PM
RE: Spotify went crazy!! - by Sander - 07-17-2022, 07:12 PM
RE: Spotify went crazy!! - by Tim Curtis - 07-17-2022, 07:34 PM
RE: Spotify went crazy!! - by Tim Curtis - 07-20-2022, 01:21 AM
RE: Spotify went crazy!! - by jonners - 07-21-2022, 08:46 PM
RE: Spotify went crazy!! - by Tim Curtis - 07-21-2022, 09:08 PM
RE: Spotify went crazy!! - by TheOldPresbyope - 07-22-2022, 03:01 AM
RE: Spotify went crazy!! - by Tim Curtis - 07-22-2022, 03:21 AM
RE: Spotify went crazy!! - by TheOldPresbyope - 07-22-2022, 02:27 PM
RE: Spotify went crazy!! - by Falco - 07-22-2022, 07:19 AM
RE: Spotify went crazy!! - by rph-r - 07-25-2022, 07:53 AM
RE: Spotify went crazy!! - by ycdtosa - 07-26-2022, 06:22 PM
RE: Spotify went crazy!! - by roderickvd - 07-26-2022, 06:52 PM
RE: Spotify went crazy!! - by Tim Curtis - 07-26-2022, 09:52 PM
RE: Spotify went crazy!! - by roderickvd - 07-27-2022, 06:21 AM
RE: Spotify went crazy!! - by starbender - 07-30-2022, 06:56 AM
RE: Spotify went crazy!! - by Falco - 08-15-2022, 08:18 AM
RE: Spotify went crazy!! - by roderickvd - 07-29-2022, 08:40 PM
RE: Spotify went crazy!! - by rph-r - 08-15-2022, 09:05 AM
RE: Spotify went crazy!! - by Falco - 08-15-2022, 09:35 AM
RE: Spotify went crazy!! - by Tim Curtis - 08-15-2022, 11:26 AM
RE: Spotify went crazy!! - by roderickvd - 08-25-2022, 04:57 PM
RE: Spotify went crazy!! - by Nutul - 08-25-2022, 06:46 PM
RE: Spotify went crazy!! - by rph-r - 08-17-2022, 08:16 PM
RE: Spotify went crazy!! - by the_bertrum - 08-26-2022, 12:50 PM
RE: Spotify went crazy!! - by roderickvd - 08-26-2022, 02:30 PM
RE: Spotify went crazy!! - by oasis1701 - 08-27-2022, 03:29 PM
RE: Spotify went crazy!! - by Tim Curtis - 08-27-2022, 04:38 PM
RE: Spotify went crazy!! - by oasis1701 - 08-28-2022, 12:40 PM
RE: Spotify went crazy!! - by oasis1701 - 08-28-2022, 01:24 PM
RE: Spotify went crazy!! - by oasis1701 - 08-30-2022, 12:36 AM
RE: Spotify went crazy!! - by Tim Curtis - 08-30-2022, 01:02 AM
RE: Spotify went crazy!! - by oasis1701 - 08-30-2022, 10:16 AM
RE: Spotify went crazy!! - by Tim Curtis - 08-30-2022, 11:30 AM
RE: Spotify went crazy!! - by oasis1701 - 08-30-2022, 01:23 PM
RE: Spotify went crazy!! - by Tim Curtis - 08-30-2022, 02:13 PM
RE: Spotify went crazy!! - by oasis1701 - 08-30-2022, 03:38 PM
RE: Spotify went crazy!! - by TheOldPresbyope - 08-30-2022, 03:54 PM
RE: Spotify went crazy!! - by oasis1701 - 08-30-2022, 04:21 PM
RE: Spotify went crazy!! - by Tim Curtis - 08-30-2022, 06:21 PM
RE: Spotify went crazy!! - by peter - 09-03-2022, 04:02 PM
RE: Spotify went crazy!! - by Falco - 09-13-2022, 12:59 PM
RE: Spotify went crazy!! - by TheOldPresbyope - 09-01-2022, 10:43 PM
RE: Spotify went crazy!! - by roderickvd - 09-04-2022, 09:18 PM
RE: Spotify went crazy!! - by rph-r - 12-23-2022, 10:05 AM
RE: Spotify went crazy!! - by Tim Curtis - 12-23-2022, 03:21 PM
RE: Spotify went crazy!! - by Tim Curtis - 12-23-2022, 03:28 PM

Forum Jump: