Thank you for your donation!


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


Problem: Spotify connect with multiple spotify accounts
#1
Hi!

I'm running moode 7.0.1 and trying to get the Spotify Connect receiver to work for two Spotify accounts connected to the same WiFi. I have previously had this setup in Volumio where both my girlfriend and I could connect to it with our device of choice (iPhone, Android phone, iPad, PC etc) and with our respective accounts. Out of nowhere it stopped working, so I changed to moOde as I heard that it was a more stable solution.

Anyway, it does not seem to work fully on moOde either. I have activated the receiver in the Audio settings and confirmed that it starts at boot:
Code:
Generating info...

S Y S T E M   P A R A M E T E R S

moOde release           = 7.0.1 2020-12-23
RaspiOS                 = 10.6
Linux kernel            = 5.4.77+ #1371
Platform                = Pi-Zero W 512MB v1.1
Architecture            = armv6l (32-bit)
System uptime           = up 4 minutes
Timezone                = Europe/Stockholm
Current time            = 2021-01-06 17:07:33

Host name               = moode
Ethernet address        = unassigned
Ethernet MAC            = no adapter
WLAN address            = 192.168.1.147
WLAN MAC                = b8:27:eb:17:a8:47
WLAN country            = SE

SoC identifier          = bcm2835
Core count              = 1
Kernel timer freq       = 100 Hz
SDCard freq             = 50 MHz
USB boot                = not available
Warranty                = OK

Root size               = 3.4G
Root used               = 83%
Root available          = 583M
Root expand             = not expanded
Memory free             = 198 MB
Memory used             = 78 MB
SoC temperature         = 37.9°C

CPU governor            = ondemand
Onboard WiFi            = On
Onboard BT              = On
HDMI output             = Off
LED state               = 1,1
Eth addr wait           = On
USB auto-mounter        = udisks-glue
Max USB current         = Off
USB (UAC2) fix          = Off
SSH term server         = Off

PHP-FPM version         = 7.3.19
NGINX version           = 1.14.2
SQLite3 version         = 3.27.2
Hostapd version         = 2.8-devel
WiringPi version        = 2.50
RPi.GPIO version        = 0.7.0

A U D I O   P A R A M E T E R S

Audio device            = ODAC-revB
Interface               = USB
Mixer name              = PCM
Hardware mixer          = Yes
Max ALSA volume         = 100
Max MPD volume          = 100
Volume step limit       = 10
Display dB volume       = Off
Audio source            = Local
Output device           = Local
Resume MPD              = No
Volume knob             = 100
Volume mute             = Unmuted
Saved MPD vol           = 0
Preamp volume           = 0
ALSA version            = 1.1.8-1+rpt1
SoX version             = 0.1.2-3

Bluetooth controller    = On
Pairing agent           = On
Airplay receiver        = On
Spotify receiver        = On
Squeezelite             = Off
UPnP client             = Off
DLNA server             = Off
GPIO button handler     = Off
UPnP browser            = Off

Auto-shuffle            = Off
Ashuffle mode           = Track
Ashuffle filter         = None
Autoplay                = Off
Rotary encoder          = Off
Encoder params          = 100 2 3 23 24
USB volume knob         = Off
Polarity inversion      = Off
Crossfeed               = Off
Crossfade               = Off
Parametric EQ           = Off
Graphic EQ              = Off
MPD httpd               = Off

P R E F E R E N C E S

Appearance
----------------------
Theme                   = Default
Accent color            = Emerald
Alpha blend             = 1.0
Adaptive background     = No
Background image        = No
Cover backdrop          = No
Cover blur              = 20px
Cover scale             = 1.25
Renderer backdrop       = No
Font size               = Normal

Playback
----------------------
Show Queue thumbs       = Yes
Show extra metadata     = album,genre,track,disc,date,composer,conductor,performer,encoded
Search site             = Google
Playback history log    = No

Library
----------------------
One touch action        = Play
Albumview sort order    = by Artist
Tagview sort order      = by Artist
Recently added          = 1 Month
Show sample rate        = No
Cover search pri        = Embedded cover
Pixel ratio             = 1.25
Thumbnail resolution    = Auto
Thumbnail columns       = 6/2 (Default)

Library (Advanced)
----------------------
Tag view artist         = Artist
Album key               = Album@Artist (Default)
Include comment tag     = No
Library filter          = full_lib
Library filter str      =
Ignore articles         = a,an,the
Show tagview genres     = Yes
Show tagview covers     = Yes
Ellipsis limited text   = No
UTF8 character filter   = No

CoverView
----------------------
Automatic display       = Never
Backdrop style          = Gradient (Linear)

R A D I O   M A N A G E R   S E T T I N G S

Sort tag                = Name
Group method            = No grouping
Show moOde stations     = No action
Show other stations     = No action

M P D   S E T T I N G S

Version                 = 0.22.3_p0x3
Volume mixer            = hardware
ALSA device             = hw:1
SoX resampling          = disabled
Selective resampling    = disabled
SoX quality             = high
SoX multithreading      = off
DSD over PCM (DoP)      = no
Replaygain              = off
Replaygain preamp       = 0
Volume normalization    = No
Audio buffer            = 4 (MB)
Output buffer size      = 128 (MB)
Max playlist items      = 16384
Input cache             = Disabled

B L U E T O O T H   S E T T I N G S

Bluetooth ver           = 5.50
Bluealsa ver            = v3.0.0
Speaker sharing         = No
Resume MPD              = No
PCM buffer time         = 500000 (μs)

A I R P L A Y   S E T T I N G S

Version                 = 3.3.6
Friendly name           = hallonpaj
ALSA device             = hw:1
Interpolation           = soxr
Output bit depth        = S16
Output sample rate      = 44100
Session interruption    = no
Session timeout         = 120 (ms)
Latency offset          = 0.0 (secs)
Audio buffer            = 0.2 (secs)
Resume MPD              = No

S P O T I F Y   S E T T I N G S

Friendly name           = hallonpaj
ALSA device             = plughw:1
Bit rate                = 320
Initial volume          = 100
Volume curve            = Logarithmic
Volume normalization    = No
Normalization pregain   = 0
Autoplay                = No
Resume MPD              = No

S Q U E E Z E L I T E   S E T T I N G S

Version                 =  "DSD/SRC disabled"
Friendly name           = Moode
ALSA device             = hw:0
ALSA params             = 80:4::1
Output buffers          = 40000:100000
Task priority           = 45
Codec list              = flac,pcm,mp3,ogg,aac,alac,dsd
Other options           = -W -D 500 -R E -S /var/local
Resume MPD              = No

L O C A L   D I S P L A Y   S E T T I N G S

Local UI display        = Off
Mouse cursor            = On
Screen blank            = 600 Secs
Wake display on play    = Off
Brightness              = 255
Pixel aspect ratio      = Default
Rotate screen           = 0 Deg

M O O D E   S T A R T U P   L O G

20210106 170309 worker: -- Start
20210106 170309 worker: Successfully daemonized
20210106 170310 worker: Integrity check (passed)
20210106 170313 moode.php: MPD connect failed: cmd=(playlist)
20210106 170314 worker: File check (OK)
20210106 170314 worker: Session loaded
20210106 170314 worker: Debug logging (OFF)
20210106 170314 worker: -- Device
20210106 170314 worker: ALSA cards: (0:b1 | 1:ODACrevB | 2:empty | 3:empty
20210106 170314 worker: Configured: (1:ODAC-revB | mixer:(HDMI) | alsavol:0)
20210106 170314 worker: ALSA mixer actual (PCM)
20210106 170315 worker: ALSA PCM volume set to (0%)
20210106 170315 worker: -- System
20210106 170317 moode.php: MPD connect failed: cmd=(playlist)
20210106 170318 worker: Host     (moode)
20210106 170319 worker: moOde    (7.0.1 2020-12-23)
20210106 170319 worker: RaspiOS  (10.6)
20210106 170319 worker: Kernel   (5.4.77+ #1371)
20210106 170319 worker: Platform (Pi-Zero W 512MB v1.1)
20210106 170319 worker: ARM arch (armv6l, 32-bit kernel)
20210106 170319 worker: MPD ver  (0.22.3_p0x3)
20210106 170319 worker: CPU gov  (ondemand)
20210106 170319 worker: USB boot not available
20210106 170319 worker: File system not expanded yet
20210106 170319 worker: HDMI port off
20210106 170319 worker: -- Network
20210106 170319 worker: eth0 does not exist
20210106 170319 worker: eth0 address not assigned
20210106 170319 worker: wlan0 exists
20210106 170319 worker: wifi country (SE)
20210106 170319 worker: wlan0 trying SSID (Boogie WonderLANd)
20210106 170319 worker: IP addr (192.168.1.147)
20210106 170319 worker: Netmask (255.255.255.0)
20210106 170319 worker: Gateway (192.168.1.1)
20210106 170320 worker: Pri DNS (192.168.1.1)
20210106 170320 worker: Domain  (None)
20210106 170320 worker: -- Audio
20210106 170321 worker: MPD conf updated
20210106 170321 worker: ALSA outputs unmuted
20210106 170321 worker: ALSA card number (1)
20210106 170322 worker: Audio output (ODAC-revB)
20210106 170322 worker: Audio formats (S16_LE, S24_3LE)
20210106 170323 worker: ALSA mixer name (PCM)
20210106 170323 worker: MPD volume control (hardware)
20210106 170323 worker: Hdwr volume controller exists
20210106 170323 worker: Max ALSA volume (100%)
20210106 170323 worker: Reset renderer active flags
20210106 170323 worker: -- MPD
20210106 170324 worker: MPD started
20210106 170325 worker: MPD accepting connections
20210106 170325 worker: Configure MPD outputs
20210106 170325 worker: MPD output 1 ALSA default (on)
20210106 170325 worker: MPD output 2 ALSA crossfeed (off)
20210106 170325 worker: MPD output 3 ALSA parametric eq (off)
20210106 170325 worker: MPD output 4 ALSA graphic eq (off)
20210106 170325 worker: MPD output 5 ALSA polarity inversion (off)
20210106 170325 worker: MPD output 6 ALSA bluetooth (off)
20210106 170325 worker: MPD output 7 HTTP stream (off)
20210106 170325 worker: MPD crossfade (off)
20210106 170325 worker: -- Feature availability
20210106 170325 worker: Source select (available)
20210106 170325 worker: Source select (source: MPD)
20210106 170326 worker: Source select (output: ODAC-revB)
20210106 170326 worker: Bluetooth (available)
20210106 170326 worker: Bluetooth (started)
20210106 170333 worker: Bluetooth pairing agent (started)
20210106 170333 worker: Airplay renderer (available)
20210106 170333 worker: Airplay renderer (started)
20210106 170333 worker: Spotify renderer (available)
20210106 170333 worker: Spotify renderer (started)
20210106 170333 worker: Squeezelite renderer (available)
20210106 170333 worker: UPnP renderer (available)
20210106 170333 worker: DLNA server (available)
20210106 170333 worker: UPnP browser (available)
20210106 170333 worker: GPIO button handler (available)
20210106 170333 worker: Stream recorder (n/a)
20210106 170333 worker: -- Music sources
20210106 170333 worker: USB sources (none attached)
20210106 170333 worker: NAS and UPnP sources (none configured)
20210106 170333 worker: -- Miscellaneous
20210106 170333 worker: USB volume knob (Off)
20210106 170333 worker: USB auto-mounter (udisks-glue)
20210106 170350 worker: LED0 (On)
20210106 170350 worker: LED1 (sysclass does not exist)
20210106 170350 worker: Saved MPD vol level (0)
20210106 170350 worker: Preamp volume level (0)
20210106 170350 worker: MPD volume level (100) restored
20210106 170351 worker: ALSA PCM volume (100%)
20210106 170351 worker: Auto-play (Off)
20210106 170351 worker: Maintenance interval (3 hrs)
20210106 170351 worker: Screen saver activation (Never)
20210106 170351 worker: Session permissions (OK)
20210106 170351 worker: Watchdog started
20210106 170351 worker: Ready

I've also checked with pgrep that librespot is running.

In short, what happens is that the first account that connects to the Spotify connect receiver seems to "hog" it. If I run "Clear credential cache" and then restart the receiver, both accounts can then see the device in the connect tab in the Spotify app (most times, sometimes only one user can, seemingly randomly). However, after one account connects, the other one can't see the moOde device anymore and therefore can't connect. I thought it might be a network issue, however I have tried disabling the firewall etc in case it was interferring with Spotify's discovery mode but it doesn't solve it. 

I'm out of ideas, does anyway know this issue since before? I've searched the forums but haven't found anything that works.
Reply
#2
You should prolly post the issue to the librespot repo
https://github.com/librespot-org/librespot/issues
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
My daughter and I often connect to one of my players from two different accounts without seeing any issues. I've noticed when one of us is connected the player isn't visible in the other account (which makes sense since it isn't available to use), and that it can take a while for Spotify connect to "find" a player again after it becomes available again. Could it be yo simply need to wait a bit longer for Spotify connect to notice the player is free once more?
----------------
Robert
Reply
#4
I have kind of the same setup: I and the wife have different accounts and have no issues playing music on the same RPi with moode, but as @the_bertrum says when one uses the player, the other one can't see it in spotify.
Reply
#5
Thanks for the answers! It actually seems to work the same way as for you, the other user can't see the moOde when another one is using it.

Earlier with Volumio, we used to be able to take over the device from the other user without disconnecting first, maybe Spotify has changed something in their Connect function. What made me change to moOde was that since a few months ago, my girlfriend could never see the device and connect to it, even if I would have been disconnected for days or weeks! So moOde seems to work better in this case!
Reply
#6
So...this is happening to me. I have mutiple accounts, but the other account is not active and I still cannot see my moOde Spotify renderer.

It has always shown up and the only change is to 7.0. Just tried upgrading to 7.0.1 and still nothing. Restarted MBD, restarted Pi, restarted Spotify, restarted phone...no dice.
Reply
#7
Spotify Connect, Airplay etc, etc rely on auto-discovery protocols (mDNS, Bonjour, Avahi, etc) which IME sometimes require rebooting the client, Router or other network devices in order to get them to start "auto-discovering" things afresh.

I'm not having any issues whatsoever on my end with Spotify, Airplay, Bluetooth, etc.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
I can attest to having to reboot random things after an upgrade to get Spotify to appear on occasion. I usually start with moOde, then the client, then my router. At some point it comes back but it could just be that the rebooting did nothing other than occupy my time while it sorted itself anyway Smile
----------------
Robert
Reply


Forum Jump: