Thank you for your donation!


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


Cannot stream to spotify
#1
Hi,
I've turned on spotify renderer but cannot seem to connect to it from my devices (phone or laptop). 
I can see it in the list but it wont connect when I try. 
I've tried a fresh install and still same problem. 
This is a brand new rPi 5 4GB. It was working for me previously with no problems with my rPi 3b. Unsure why it now is not working with Pi 5. 

Code:
20250426 171552 worker: --
20250426 171552 worker: -- Start moOde 9 series
20250426 171552 worker: --
20250426 171552 worker: Daemonize:     complete
20250426 171558 worker: Linux startup: complete
20250426 171558 worker: Boot config:   ok
20250426 171558 worker: Boot folder:   ok
20250426 171558 worker: Radio table:   ok
20250426 171559 worker: PHP session:   cleaned
20250426 171559 worker: PHP session:   loaded
20250426 171559 worker: Package locks: applied
20250426 171600 worker: File check:    complete
20250426 171600 worker: Log to RAM:    on
20250426 171600 worker: Tmp to RAM:    on
20250426 171600 worker: Debug logging: off
20250426 171600 worker: --
20250426 171600 worker: -- System
20250426 171600 worker: --
20250426 171600 worker: Host name:     mo0de
20250426 171600 worker: RPi model:     Pi-5B 1.0 4GB
20250426 171600 worker: moOde release: 9.3.2 2025-04-16
20250426 171600 worker: RaspiOS:       12.10 Bookworm 64-bit
20250426 171600 worker: Linux Kernel:  6.12.20 64-bit
20250426 171600 worker: MPD version:   0.24.3
20250426 171600 worker: User id:       nila
20250426 171600 worker: Home folder:   /home/nila
20250426 171600 worker: Time zone:     Asia/Singapore
20250426 171600 worker: Kbd layout:    us
20250426 171600 worker: HDMI ports(s): on
20250426 171600 worker: HDMI-CEC:      off
20250426 171600 worker: Sys LED0:      on
20250426 171600 worker: Sys LED1:      on
20250426 171600 worker: Reduce power:  off
20250426 171600 worker: Fan control:   50C, 45C, 75
20250426 171600 worker: CPU governor:  ondemand
20250426 171600 worker: --
20250426 171600 worker: -- Network
20250426 171600 worker: --
20250426 171600 worker: Eth0
20250426 171600 worker: Ethernet: adapter exists
20250426 171600 worker: Ethernet: timeout off
20250426 171600 worker: Ethernet: address not assigned
20250426 171600 worker: Wlan0
20250426 171601 worker: Wireless: adapter exists
20250426 171601 worker: Wireless: country US
20250426 171601 worker: Wireless: SSID    WiFive
20250426 171601 worker: Wireless: other   None
20250426 171601 worker: Wireless: timeout up to 90 secs
20250426 171601 worker: Wireless: connect to WiFive
20250426 171601 worker: Wireless: method  dhcp
20250426 171601 worker: Wireless: address 192.168.0.115
20250426 171601 worker: Wireless: netmask 255.255.255.0
20250426 171601 worker: Wireless: gateway 192.168.0.1
20250426 171601 worker: Wireless: pri DNS 192.168.0.114
20250426 171601 worker: Wireless: domain  none found
20250426 171601 worker: mDNS
20250426 171601 worker: Discover: IPv4 and IPv6
20250426 171601 worker: --
20250426 171601 worker: -- File sharing
20250426 171601 worker: --
20250426 171601 worker: SMB file sharing:  off
20250426 171601 worker: SMB password:      none
20250426 171601 worker: NFS file sharing:  off
20250426 171601 worker: DLNA file sharing: off
20250426 171601 worker: --
20250426 171601 worker: -- Special configs
20250426 171601 worker: --
20250426 171601 worker: Plexamp:          not installed
20250426 171601 worker: RoonBridge:       not installed
20250426 171601 worker: Allo Boss 2:      not detected, OLED script ok
20250426 171601 worker: Allo Piano 2.1:   not detected
20250426 171601 worker: IQaudIO DigiAMP+: not detected
20250426 171601 worker: RPi DigiAMP+:     not detected
20250426 171601 worker: Bluetooth:        session vars ok
20250426 171601 worker: --
20250426 171601 worker: -- ALSA debug
20250426 171601 worker: --
20250426 171601 worker: Cards:  0:sndrpirpidac    1:vc4hdmi0        2:vc4hdmi1        3:empty          
20250426 171601 worker:         4:empty           5:empty           6:empty           7:empty          
20250426 171601 worker: Mixers: 0:none            1:none            2:none            3:none            
20250426 171601 worker:         4:none            5:none            6:none            7:none            
20250426 171601 worker: --
20250426 171601 worker: -- Audio configuration
20250426 171601 worker: --
20250426 171601 worker: Audio device:  0:Audiophonics ES9023 DAC
20250426 171601 worker: ALSA card:     has not been reassigned
20250426 171601 worker: MPD config:    update not needed
20250426 171601 worker: ALSA output:   I2S
20250426 171601 worker: ALSA mode:     Default (plughw)
20250426 171601 worker: ALSA mixer:    none exists
20250426 171604 worker: ALSA volume:   controller not detected
20250426 171604 worker: ALSA maxvol:   100%
20250426 171604 worker: ALSA loopback: off
20250426 171604 worker: MPD mixer      Software
20250426 171604 worker: Integ audio:   vc4-kms-v3d
20250426 171604 worker: Audio formats: S16_LE, S24_LE
20250426 171604 worker: CamillaDSP:    off
20250426 171604 worker: CDSP volume:   0dB
20250426 171604 worker: CDSP volrange: 60dB
20250426 171604 worker: --
20250426 171604 worker: -- MPD startup
20250426 171604 worker: --
20250426 171604 worker: MPD service:        started
20250426 171604 worker: MPD port 6600:      accepting connections
20250426 171604 worker: MPD ALSA Default:   on
20250426 171604 worker: MPD ALSA Bluetooth: off
20250426 171604 worker: MPD HTTP Server:    off
20250426 171604 worker: MPD volume:         0
20250426 171604 worker: Saved MPD vol:      -1
20250426 171604 worker: Saved SRC vol:      0
20250426 171604 worker: MPD crossfade:      off
20250426 171604 worker: MPD ignore CUE:     no
20250426 171604 worker: MPD CDSP volsync:   off
20250426 171604 worker: --
20250426 171604 worker: -- Music sources
20250426 171604 worker: --
20250426 171604 worker: USB drives:     none
20250426 171604 worker: NVMe drives:    none
20250426 171604 worker: SATA drives:    none
20250426 171604 worker: NAS sources:    none
20250426 171604 worker: --
20250426 171604 worker: -- Feature availability
20250426 171604 worker: --
20250426 171604 worker: Input select:    available, Source: MPD, Output: Audiophonics ES9023 DAC
20250426 171606 worker: Bluetooth:       started, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250426 171606 worker: AirPlay:         available
20250426 171606 worker: Spotify Connect: started
20250426 171606 worker: Deezer Connect:  available
20250426 171606 worker: Squeezelite:     available
20250426 171606 worker: UPnP client:     available
20250426 171606 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250426 171606 worker: RoonBridge:      not installed
20250426 171606 worker: Multiroom:       available
20250426 171606 worker: GPIO buttons:    available
20250426 171606 worker: Stream recorder: n/a
20250426 171606 worker: --
20250426 171606 worker: -- Security
20250426 171606 worker: --
20250426 171606 worker: Web SSH server:    off
20250426 171606 worker: XSS detection:     off
20250426 171606 worker: HTTPS mode:        available
20250426 171606 worker: --
20250426 171606 worker: -- Peripherals
20250426 171606 worker: --
20250426 171606 worker: Local display:   off
20250426 171606 worker: Chromium ver:    126.0.6478.164-rpt1
20250426 171606 worker: Chromium cfg:    directory ok
20250426 171606 worker: Screen blank     600
20250426 171606 worker: On-screen kbd:   off
20250426 171606 worker: Disable GPU:     off
20250426 171606 worker: HDMI orient:     landscape
20250426 171606 worker: HDMI 4K 60Hz:    off
20250426 171606 worker: DSI scn type:    none
20250426 171606 worker: DSI port:        1
20250426 171606 worker: DSI brightness:  255
20250426 171606 worker: DSI rotate:      0
20250426 171606 worker: Rotary encoder:  off
20250426 171606 worker: Triggerhappy:    off
20250426 171606 worker: LCD updater:     off
20250426 171606 worker: --
20250426 171606 worker: -- Miscellaneous
20250426 171606 worker: --
20250426 171606 worker: Software update:   Automatic check off
20250426 171606 worker: Auto-CoverView:    off
20250426 171606 worker: CoverView timeout: Never
20250426 171606 worker: Auto-shuffle:      off
20250426 171606 worker: Auto-play:         off
20250426 171606 worker: Maintenance task:  360 mins
20250426 171606 worker: Current view:      reset to Playback
20250426 171606 worker: Active flags:      all false
20250426 171606 worker: Reset flags:       skipped
20250426 171606 worker: Session check:     ok
20250426 171606 worker: --
20250426 171606 worker: -- Startup complete
20250426 171606 worker: --
20250426 171606 worker: Mount monitor:    started
20250426 171606 worker: Radio monitor:    off
20250426 171606 worker: Watchdog monitor: started
20250426 171606 worker: Responsiveness:   Boosted
20250426 171606 worker: Ready
20250426 171823 watchdog: Started Spotify Connect after crash detected
20250426 171837 worker: Job spotifysvc
20250426 171851 worker: Job spotifysvc
20250426 171855 worker: Job spotifysvc
20250426 171921 worker: Job spotifysvc
20250426 171938 worker: Job spotifysvc
20250426 171950 worker: Job spotify_clear_credentials
20250426 172002 worker: Job spotifysvc
20250426 172117 watchdog: Started Spotify Connect after crash detected
20250426 172340 watchdog: Started Spotify Connect after crash detected
20250426 172514 watchdog: Started Spotify Connect after crash detected
20250426 172537 DEBUG: phpSession(get_status): status=PHP_SESSION_ACTIVE
20250426 172537 worker: Job clearsyslogs
20250426 172538 DEBUG: waitWorker(): Wait 1 for sys-config
20250426 172544 DEBUG: phpSession(get_status): status=PHP_SESSION_ACTIVE
20250426 172545 worker: Job clearplayhistory
20250426 172545 DEBUG: waitWorker(): Wait 1 for sys-config
20250426 172634 DEBUG: chkVariables(): Excluded key: fs_smb_pwd
20250426 172648 watchdog: Started Spotify Connect after crash detected
20250426 172648 DEBUG: startSpotify(): (librespot --name "Mo0dy Spot" --bitrate 320 --format S16 --mixer softvol --initial-volume 5 --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 -v > /var/log/moode_librespot.log 2>&1 &)
20250426 172754 DEBUG: chkVariables(): Excluded key: fs_smb_pwd
Reply
#2
Oh yeah - and I've tried changing both the name of the spotify renderer and also the pi name.
Neither made any difference.
Reply
#3
Seem to have gotten it working.
Unsure which thing it was as I changed a few but it was either:
* Changed my DNS server
* Put logging out of RAM
* Put on debug

Then started working.
Kept working after I put logging back to RAM.
Reply
#4
ssh onto my Pi helped me also when I looked at this file
* /var/log/moode_librespot.log
And realized it was having problems connecting to some spotify site on the web (unsure why it needed to)
Reply
#5
Spotify Connect needs to connect to a Spotify "Access Point" to validate the account. These AP servers are Internet based and so your network needs to be able to resolve their addresses.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Yup. That sounds about right based on the domain.

Thanks
Reply


Forum Jump: