Thank you for your donation!


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


Solved: Moode not showing up in Spotify Connect
#1
Hello,

I have done several fresh installs of Moode Audio 9.1.2 on a Raspberry Pi 3 B with a cheap USB DAC. My problem is that the Spotify Connect renderer will not show up in the list of devices on my Spotify account. 
  • I am using Spotify Premium
  • The Raspberry Pi is on my LAN
  • My other devices are on my LAN
  • Other devices are appearing on the Spotify Connect list
  • My Spotify versions are up-to-date
  • The Spotify Renderer is enabled with default settings
  • I have tried restarting the RPi and my other devices
  • I have tried restarting the Spotify Renderer
  • I can play audio from other sources through the RPi (Bluetooth and internet radio)
  • I have tried both wireless and ethernet connections with the RPi
  • I am using a VPN with LAN bypass - I can access the moode web ui just fine and discover other local devices
My startup log

Code:
20241009 091926 worker: --
20241009 091926 worker: -- Start moOde 9 series
20241009 091926 worker: --
20241009 091926 worker: Successfully daemonized
20241009 091926 worker: Wait for Linux startup
20241009 091932 worker: Linux startup complete
20241009 091932 worker: Boot config is ok
20241009 091933 worker: Session loaded
20241009 091937 worker: Package locks applied
20241009 091938 worker: File check complete
20241009 091938 worker: Log to RAM    on
20241009 091938 worker: Debug logging off
20241009 091938 worker: --
20241009 091938 worker: -- System
20241009 091938 worker: --
20241009 091940 worker: Host name:     moode
20241009 091940 worker: RPi model:     Pi-3B 1.2 1GB
20241009 091940 worker: moOde release: 9.1.2 2024-09-28
20241009 091940 worker: RaspiOS:       12.7 Bookworm 64-bit
20241009 091940 worker: Linux Kernel:  6.6.47 64-bit
20241009 091940 worker: MPD version:   0.23.14
20241009 091940 worker: User id:       moode
20241009 091940 worker: Home folder:   /home/moode
20241009 091940 worker: Time zone:     America/Detroit
20241009 091940 worker: Kbd layout:    us
20241009 091940 worker: HDMI ports(s): on
20241009 091940 worker: HDMI-CEC:      off
20241009 091941 worker: Sys LED0:      on
20241009 091941 worker: Sys LED1:      on
20241009 091941 worker: Reduce power:  n/a
20241009 091941 worker: CPU governor:  ondemand
20241009 091941 worker: Integ audio:   vc4-kms-v3d
20241009 091941 worker: --
20241009 091941 worker: -- Network
20241009 091941 worker: --
20241009 091941 worker: Eth0
20241009 091941 worker: Ethernet: adapter exists
20241009 091941 worker: Ethernet: timeout off
20241009 091941 worker: Ethernet: address not assigned
20241009 091941 worker: Wlan0
20241009 091941 worker: Wireless: adapter exists
20241009 091941 worker: Wireless: country US
20241009 091941 worker: Wireless: SSID    
20241009 091941 worker: Wireless: other   None
20241009 091941 worker: Wireless: timeout up to 90 secs
20241009 091941 worker: Wireless: connect to
20241009 091941 worker: Wireless: method  dhcp
20241009 091941 worker: Wireless: address 192.168.0.108
20241009 091941 worker: Wireless: netmask 255.255.255.0
20241009 091941 worker: Wireless: gateway 192.168.0.1
20241009 091941 worker: Wireless: pri DNS 192.168.0.1
20241009 091941 worker: Wireless: domain  none found
20241009 091941 worker: --
20241009 091941 worker: -- File sharing
20241009 091941 worker: --
20241009 091941 worker: SMB file sharing:  off
20241009 091941 worker: NFS file sharing:  off
20241009 091941 worker: DLNA file sharing: off
20241009 091941 worker: --
20241009 091941 worker: -- Special configs
20241009 091941 worker: --
20241009 091941 worker: Plexamp:          not installed
20241009 091941 worker: RoonBridge:       not installed
20241009 091941 worker: Allo Piano 2.1:   not detected
20241009 091941 worker: Allo Boss 2:      not detected, OLED script ok
20241009 091941 worker: IQaudIO AMP*:     not detected
20241009 091941 worker: --
20241009 091941 worker: -- ALSA debug
20241009 091941 worker: --
20241009 091941 worker: Cards:  0:Device          1:vc4hdmi         2:empty           3:empty          
20241009 091941 worker:         4:empty           5:empty           6:empty           7:empty          
20241009 091942 worker: Mixers: 0:(Speaker)       1:none            2:none            3:none            
20241009 091942 worker:         4:none            5:none            6:none            7:none            
20241009 091942 worker: --
20241009 091942 worker: -- Audio configuration
20241009 091942 worker: --
20241009 091942 worker: Audio device:  0:USB Audio Device
20241009 091942 worker: ALSA card:     has not been reassigned
20241009 091942 worker: MPD config:    update not needed
20241009 091942 worker: ALSA output:   USB
20241009 091942 worker: ALSA mode:     Default (plughw)
20241009 091942 worker: ALSA mixer     Speaker
20241009 091943 worker: ALSA volume:   100% (0.00dB)
20241009 091943 worker: ALSA maxvol:   100%
20241009 091943 worker: ALSA loopback: off
20241009 091943 worker: MPD mixer      Software
20241009 091943 worker: Audio formats: S16_LE
20241009 091943 worker: CamillaDSP:    off
20241009 091943 worker: CDSP volume:   0dB
20241009 091943 worker: CDSP volrange: 60dB
20241009 091943 worker: --
20241009 091943 worker: -- MPD startup
20241009 091943 worker: --
20241009 091944 worker: MPD service:        started
20241009 091944 worker: MPD port 6600:      accepting connections
20241009 091944 worker: MPD ALSA Default:   on
20241009 091944 worker: MPD ALSA Bluetooth: off
20241009 091944 worker: MPD HTTP Server:    off
20241009 091944 worker: MPD volume:         0
20241009 091944 worker: Saved MPD vol:      -1
20241009 091944 worker: Saved SRC vol:      0
20241009 091944 worker: MPD crossfade:      off
20241009 091944 worker: MPD ignore CUE:     no
20241009 091944 worker: MPD first boot:     SDCARD scanned
20241009 092010 worker: MPD first boot:     default playlist loaded
20241009 092010 worker: MPD CDSP volsync:   off
20241009 092010 worker: --
20241009 092010 worker: -- Music sources
20241009 092010 worker: --
20241009 092010 worker: USB drives:     none
20241009 092010 worker: NVMe drives:    none
20241009 092010 worker: NAS sources:    none
20241009 092010 worker: --
20241009 092010 worker: -- Feature availability
20241009 092010 worker: --
20241009 092010 worker: Input select:    available, Source: MPD, Output: USB Audio Device
20241009 092012 worker: Bluetooth:       started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20241009 092012 worker: AirPlay:         available
20241009 092012 worker: Spotify Connect: started
20241009 092012 worker: Squeezelite:     available
20241009 092012 worker: UPnP client:     available
20241009 092012 worker: Plexamp:         not installed, ALSA maxvol: 100%
20241009 092012 worker: RoonBridge:      not installed
20241009 092012 worker: Multiroom:       available
20241009 092012 worker: GPIO buttons:    available
20241009 092012 worker: Stream recorder: n/a
20241009 092012 worker: --
20241009 092012 worker: -- Security
20241009 092012 worker: --
20241009 092012 worker: Web SSH server:    off
20241009 092012 worker: XSS detection:     off
20241009 092012 worker: HTTPS mode:        available
20241009 092012 worker: --
20241009 092012 worker: -- Peripherals
20241009 092012 worker: --
20241009 092017 worker: Local display:   off
20241009 092017 worker: HDMI 4K 60Hz:    off
20241009 092017 worker: On-screen kbd:   off
20241009 092017 worker: Rotary encoder:  off
20241009 092017 worker: USB volume knob: off
20241009 092017 worker: LCD updater:     off
20241009 092017 worker: --
20241009 092017 worker: -- Miscellaneous
20241009 092017 worker: --
20241009 092017 worker: Software update:   Automatic check off
20241009 092017 worker: Auto-CoverView:    off
20241009 092017 worker: CoverView timeout: Never
20241009 092017 worker: Auto-shuffle:      off
20241009 092017 worker: Auto-play:         off
20241009 092017 worker: Maintenance task:  360 mins
20241009 092017 worker: Current view:      reset to Playback
20241009 092017 worker: Active flags:      at least one true
20241009 092017 worker: Reset flags:       all reset to false
20241009 092017 worker: MPD volume:        set to 0
20241009 092017 worker: Session check:     ok
20241009 092017 worker: --
20241009 092017 worker: -- Startup complete
20241009 092017 worker: --
20241009 092017 worker: Mount monitor:    started
20241009 092017 worker: Radio monitor:    off
20241009 092017 worker: Watchdog monitor: started
20241009 092017 worker: Responsiveness:   Default
20241009 092017 worker: Ready
Reply
#2
Does it work without the VPN?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Yes and no. I deactivated the network lock, Spotify discovered the RPi, and then I reactivated the network lock. The RPi now appears on the list of devices that I can connect to in Spotify. Strange. It also appears on another device on the same VPN that I did not deactivate the network lock on. In any case, it seems to work now. Thanks.
Reply
#4
(10-09-2024, 01:37 PM)slowdown Wrote: Yes and no. I deactivated the network lock, Spotify discovered the RPi, and then I reactivated the network lock. The RPi now appears on the list of devices that I can connect to in Spotify. Strange. It also appears on another device on the same VPN that I did not deactivate the network lock on. In any case, it seems to work now. Thanks.

Once Spotify identifies a remote speaker (e.g. your RPi), it will continue to know about it for an interval of time (on the order of hours), even if it stops receiving direct advertisements, as long as both endpoints individually can maintain contact with the Spotify servers on the Internet which associate (for a time) both devices with your account.

Looking at your narrative, I'm going to guess that when your VPN ("network lock" is on, you will lose sight of the RPi eventually after your Spotify client stays disconnected for an hour or so. E.g. when you come back the next day and turn on the Spotify client, it will not see the RPi until you again temporarily deactivate your "network lock." 

You can use Wireshark running on the same machine as your official Spotify client to monitor whether that machine is currently receving advertisements from the RPi. Choose the right interface and type "mdns" in the display filter line at the top.

In my experience, it is very hard to get wifi (wireless access points) to handle mdns messages. Get your system working reliably between Spotify client and Moode player when both are on the same wired subnet. If you need to introduce wifi, get familiar with what the network traffic looks like on a wired LAN, then introduce wifi with knowledge the the wireless AP or router configuration is the problem if it is not working, and knowing what to look for in the network without needing to use the spotify client as your test.
Reply


Forum Jump: