librespot
librespot copied to clipboard
Manage multiple devices in same LAN?
Describe the bug Cloned a raspberry pi and booted up both device original and cloned.
To reproduce Steps to reproduce the behavior:
- Launch
librespot
with '/usr/bin/librespot' - Connect with 'Spotify web client'
- In the client click on 'Discovered Device name can see both piONE and piTWO'
- See error
Log `Jun 01 13:40:48 piONE librespot[503]: 3559534: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559533: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559532: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559531: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559530: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559529: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559528: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559527: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559526: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559525: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559524: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559523: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559522: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559521: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559520: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559519: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559518: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559517: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559516: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559515: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559514: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559513: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559512: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559511: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559510: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559509: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559508: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559507: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559506: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559505: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559504: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559503: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559502: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559501: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559500: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559499: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559498: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559497: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559496: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559495: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559494: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559493: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559492: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559491: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559490: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559489: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559488: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559487: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559486: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559485: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559484: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559483: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c Jun 01 13:40:48 piONE librespot[503]: 3559482: 0x651d90 - std::panicking::begin_panic::{{closure}}::h943ac5bc347d434c
Jun 01 13:46:43 piTWO librespot[3320]: [2023-06-01T12:46:43Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_connect::spirc] kMessageTypeNotify "Web Player (Chrome)" 23ae77873c71798f81e770e199bc8d94beffa691 1996304153 1685623483401 kPlayStatusStop
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_core::mercury] subscribed uri=hm://remote/user/31uvphdboz6iozsotl5a7rtzpstm/ count=0
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z INFO librespot_core::session] Country: "IT"
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_core::session] Session[0] strong=3 weak=2
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] command=VolumeSet(32767)
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] command=AddEventSender
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S32
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] new Player[0]
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::mixer::mappings] Input volume 32767 mapped to: 3.16%
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot::component] new MercuryManager
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_connect::spirc] canonical_username: 31uvphdboz6iozsotl5a7rtzpstm
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_connect::spirc] new Spirc[0]
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Release: 100 ms
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Attack: 5 ms
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Method: Dynamic
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Threshold: -2.0 dBFS
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Pregain: 0.0 dB
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_playback::player] Normalisation Type: Auto
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Log(60.0)
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z DEBUG librespot_core::session] new Session[0]
Jun 01 13:44:43 piTWO librespot[3320]: [2023-06-01T12:44:43Z INFO librespot_core::session] Authenticated as "31uvphdboz6iozsotl5a7rtzpstm" !
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z INFO librespot_core::session] Connecting to AP "ap-guc3.spotify.com:443"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:4070
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:80
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:443
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:4070
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z DEBUG librespot_discovery::server] Shutting down discovery server
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z DEBUG librespot_discovery::server] Zeroconf server listening on 0.0.0.0:40207
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_INITIAL_VOLUME="50"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_DEVICE="hw:0,0"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_PASSWORD="XXXXXXXX"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_USERNAME="XXXXXXXX"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_DEVICE_TYPE="avr"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_FORMAT="S32"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_BITRATE="320"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_VERBOSE="on"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_ENABLE_VOLUME_NORMALISATION="on"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_DISABLE_CREDENTIAL_CACHE="off"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_DISABLE_AUDIO_CACHE="on"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_AUTOPLAY="on"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_QUIET="off"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_SYSTEM_CACHE="/var/lib/raspotify"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_CACHE="/var/cache/raspotify"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_BACKEND="alsa"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] LIBRESPOT_NAME="Spoty_SL"
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z TRACE librespot] Environment variable(s):
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z INFO librespot] librespot 0.4.2 59ba283 (Built on 2023-05-12, Build ID: lSWxea6K, Profile: release)
Jun 01 13:44:42 piTWO librespot[3320]: [2023-06-01T12:44:42Z WARN librespot] --verbose
and --quiet
are mutually exclusive. Logging can not be both verbose and quiet. Using verbose mode.
Jun 01 13:44:42 piTWO systemd[1]: Started Raspotify (Spotify Connect Client).
Jun 01 13:44:30 piTWO systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Jun 01 13:44:30 piTWO systemd[1]: raspotify.service: Failed with result 'exit-code'.
Jun 01 13:44:30 piTWO systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Jun 01 13:44:30 piTWO librespot[2948]: [2023-06-01T12:44:30Z ERROR librespot_playback::player] Audio Sink Error Invalid Parameters: <AlsaSink> Device hw:0,0 Unsupported Format S32_LE (S32), ALSA function 'snd_pcm_hw_>
Jun 01 13:44:30 piTWO librespot[2948]: [2023-06-01T12:44:30Z TRACE librespot_playback::player] == Starting sink ==
Jun 01 13:44:30 piTWO librespot[2948]: [2023-06-01T12:44:30Z DEBUG librespot_playback::player] Calculated Normalisation Factor for Track: 44.00%
Jun 01 13:44:30 piTWO librespot[2948]: [2023-06-01T12:44:30Z DEBUG librespot_playback::player] Normalisation Data: NormalisationData { track_gain_db: -7.129997253417969, track_peak: 1.0043587684631348, album_gain_db:>
Jun 01 13:44:30 piTWO librespot[2948]: [2023-06-01T12:44:30Z INFO librespot_playback::player] <La Canzone Dell Amore Perduto> (205946 ms) loaded
Jun 01 13:44:29 piTWO librespot[2948]: [2023-06-01T12:44:29Z INFO librespot_connect::spirc] Resolved 50 tracks from <"spotify:playlist:6e05ZQ4U4OZD8K8rB3uNb8">
`
Host (what you are running librespot
on):
-
OS: RASPBIAN Linux 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
-
Platform: cat /sys/firmware/devicetree/base/model piONE Raspberry Pi 3 Model B Plus Rev 1.3 piTWO Raspberry Pi 3 Model B Rev 1.2
Please reproduce with the latest dev version and if so, find a way to get a more useful trace out of piONE.
Did you try giving each librespot instance a different name?