Thank you for your donation!


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


Help with Spotify Connect
#1
Hi all,

I've been reading threads but can't find a clear answer, and it's probably due to my limited ability with SSH type operations.

I had RuneAudio installed on a RPi 2B, with a HiFiBerry DAC+, and decided to give MoOde a go. I've flashed it and installed it ok, however:
- MoOde doesn't show up in Spotify Connect;
- MoOde does show up in AirPlay;
- I've connected it to a SMB share on my NAS, and it appears to play music, but I get no sound

From what I've been able to tell looking at threads, the issue with Spotify Connect (which is my preferred means of streaming) appears to be LibreSpot - if I pgrep it, it's not running (no process id). When I look at moode.log, it's apparent that Librespot is endlessly restarting.

Code:
20200507 203445 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200507 203452 watchdog: LIBRESPOT restarted (check syslog for errors)
20200507 203456 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200507 203502 watchdog: LIBRESPOT restarted (check syslog for errors)
20200507 203507 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)

There are no instances of "libre" in the syslog. I'd attach it, but the forum software won't allow it.

Can anyone please suggest how I might go about troubleshooting it?
Reply
#2
Reboot and then post the Moode startup log.

Code:
moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Code:
20200508 071427 worker: -- Start
20200508 071427 worker: Successfully daemonized
20200508 071428 worker: Integrity check (passed)
20200508 071428 worker: Session loaded
20200508 071428 worker: Debug logging (on)
20200508 071428 worker: Device raw: (0:sndrpihifiberry|1:empty|i2s:HiFiBerry DAC+ ADC)
20200508 071428 worker: Device cfg: (HiFiBerry DAC+ ADC|0|0|Digital|0)
20200508 071428 worker: ALSA volume set to (0%)
20200508 071429 worker: -- System
20200508 071431 worker: Host     (moode)
20200508 071431 worker: moOde    (6.5.2 2020-05-03)
20200508 071431 worker: Raspbian (10.3)
20200508 071431 worker: Kernel   (4.19.115-v7+ #1305)
20200508 071431 worker: Platform (Pi-2B 1GB v1.1)
20200508 071431 worker: ARM arch (armv7l, 32-bit kernel)
20200508 071431 worker: MPD ver  (0.21.22)
20200508 071431 worker: CPU gov  (ondemand)
20200508 071431 worker: USB boot not available
20200508 071431 worker: File system not expanded yet
20200508 071431 worker: HDMI port off
20200508 071432 worker: File check (OK)
20200508 071432 worker: -- Network
20200508 071433 worker: eth0 exists
20200508 071433 worker: IP addr (10.1.1.30)
20200508 071433 worker: Netmask (255.255.255.0)
20200508 071433 worker: Gateway (0.0.0.0)
20200508 071434 worker: Pri DNS (fe80::e2b9:e5ff:fe72:3d52%eth0)
20200508 071434 worker: Domain  (lan)
20200508 071434 worker: wlan0 does not exist
20200508 071434 worker: -- Audio
20200508 071434 worker: ALSA outputs unmuted
20200508 071434 worker: ALSA card number (0)
20200508 071434 worker: Audio output (I2S audio device)
20200508 071434 worker: Audio device (HiFiBerry DAC+ ADC)
20200508 071435 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20200508 071435 worker: ALSA mixer name (Digital)
20200508 071435 worker: MPD volume control (software)
20200508 071435 worker: Hdwr volume controller exists
20200508 071435 worker: Max ALSA volume (%)
20200508 071435 worker: Reset renderer active flags
20200508 071435 worker: -- MPD
20200508 071436 worker: MPD conf updated
20200508 071436 worker: MPD started
20200508 071436 openMpdSocket(): connection failed (1)
20200508 071436 openMpdSocket(): errorno: 111, Connection refused
20200508 071437 openMpdSocket(): connection failed (2)
20200508 071437 openMpdSocket(): errorno: 111, Connection refused
20200508 071437 worker: MPD accepting connections
20200508 071437 worker: Configure MPD outputs
20200508 071437 worker: MPD output 1 ALSA default (on)
20200508 071437 worker: MPD output 2 ALSA crossfeed (off)
20200508 071437 worker: MPD output 3 ALSA parametric eq (off)
20200508 071437 worker: MPD output 4 ALSA graphic eq (off)
20200508 071437 worker: MPD output 5 ALSA polarity inversion (off)
20200508 071437 worker: MPD output 6 ALSA bluetooth (off)
20200508 071437 worker: MPD output 7 HTTP stream (off)
20200508 071437 worker: MPD crossfade (off)
20200508 071437 worker: -- Feature availability
20200508 071437 worker: Source select (available)
20200508 071437 worker: Source select (source: MPD)
20200508 071437 worker: Source select (output: I2S audio device)
20200508 071438 worker: Bluetooth (available)
20200508 071438 worker: Airplay renderer (available)
20200508 071438 worker: (/usr/local/bin/shairport-sync -vv -a "Moode Airplay" -- -d hw:0 > /var/log/shairport-sync.log 2>&1 &)
20200508 071438 worker: Airplay renderer (started)
20200508 071438 worker: Spotify renderer (available)
20200508 071438 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071438 worker: Spotify renderer (started)
20200508 071438 worker: Squeezelite renderer (available)
20200508 071438 worker: UPnP renderer (available)
20200508 071438 worker: DLNA server (available)
20200508 071438 worker: UPnP browser (available)
20200508 071438 worker: Audio scrobbler (available)
20200508 071438 worker: GPIO button handler (available)
20200508 071438 worker: -- Music sources
20200508 071438 worker: USB sources (none attached)
20200508 071439 sourceMount(): result=()
20200508 071439 worker: NAS and UPnP sources (mountall initiated)
20200508 071439 worker: -- Miscellaneous
20200508 071439 worker: USB volume knob (Off)
20200508 071439 worker: USB auto-mounter (udisks-glue)
20200508 071439 worker: LED0 (On)
20200508 071439 worker: LED1 (On)
20200508 071439 worker: Saved MPD vol level (0)
20200508 071439 worker: Preamp volume level (0)
20200508 071439 worker: MPD volume level (0) restored
20200508 071440 worker: ALSA volume level (0%)
20200508 071440 worker: Auto-play (Off)
20200508 071440 worker: Maintenance interval (3 hrs)
20200508 071440 worker: Screen saver activation (Never)
20200508 071440 worker: Session permissions (OK)
20200508 071440 worker: Watchdog started
20200508 071440 worker: Ready
20200508 071440 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071441 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071441 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071441 enhanceMetadata(): Song file
20200508 071441 engine-mpd: Metadata returned to client: Size=(29)
20200508 071447 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071448 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071448 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071448 enhanceMetadata(): Song file
20200508 071448 engine-mpd: Metadata returned to client: Size=(30)
20200508 071506 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071507 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071507 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071507 enhanceMetadata(): Song file
20200508 071507 engine-mpd: Metadata returned to client: Size=(30)
20200508 071513 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071514 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071514 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071514 enhanceMetadata(): Song file
20200508 071514 engine-mpd: Metadata returned to client: Size=(30)
20200508 071520 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071521 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071521 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071521 enhanceMetadata(): Song file
20200508 071521 engine-mpd: Metadata returned to client: Size=(30)
20200508 071527 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071528 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071528 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071528 enhanceMetadata(): Song file
20200508 071528 engine-mpd: Metadata returned to client: Size=(30)
20200508 071534 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071534 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071535 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071535 enhanceMetadata(): Song file
20200508 071535 engine-mpd: Metadata returned to client: Size=(30)
20200508 071541 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071541 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071541 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071541 enhanceMetadata(): Song file
20200508 071541 engine-mpd: Metadata returned to client: Size=(30)
20200508 071548 watchdog: LIBRESPOT restarted (check syslog for errors)
20200508 071548 worker: (librespot --name "Moody" --bitrate 320 --initial-volume 70 --linear-volume --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "plughw:0" --onevent /var/local/www/commandw/spotevent.sh > /dev/null 2>&1 &)
20200508 071548 enhanceMetadata(): coverurl: (/coverart.php/NAS%2FFreenas%2FMedia%2FMusic%2FAdam%20Freeland%2FAdam%20Freeland_%20On%20Tour%2F10%20Rhythm%20Device.flac)
20200508 071548 enhanceMetadata(): Song file
20200508 071548 engine-mpd: Metadata returned to client: Size=(30)
Reply
#4
The network section of the log shows some odd values for Gateway and Primary DNS. I would have expected to see something like Gateway 10.1.1.1 and Pro DNS 10.1.1.1 which would be the address of the Router's LAN port.

Code:
20200508 071433 worker: IP addr (10.1.1.30)
20200508 071433 worker: Netmask (255.255.255.0)
20200508 071433 worker: Gateway (0.0.0.0)
20200508 071434 worker: Pri DNS (fe80::e2b9:e5ff:fe72:3d52%eth0)
20200508 071434 worker: Domain  (lan)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
(05-07-2020, 10:48 PM)Tim Curtis Wrote: The network section of the log shows some odd values for Gateway and Primary DNS. I would have expected to see something like Gateway 10.1.1.1 and Pro DNS 10.1.1.1 which would be the address of the Router's LAN port.

Code:
20200508 071433 worker: IP addr (10.1.1.30)
20200508 071433 worker: Netmask (255.255.255.0)
20200508 071433 worker: Gateway (0.0.0.0)
20200508 071434 worker: Pri DNS (fe80::e2b9:e5ff:fe72:3d52%eth0)
20200508 071434 worker: Domain  (lan)

Thank you! I must have missed setting Gateway and DNS when setting up.

I initially thought something else was wrong as there was a connection but no sound, but then realised Max ALSA was on zero.

When I set Max ALSA, am I able to adjust volume in the Spotify app? It doesn't seem so, it appear to be locked at that volume.
Reply
#6
(05-07-2020, 11:19 PM)JamesA Wrote: When I set Max ALSA, am I able to adjust volume in the Spotify app? It doesn't seem so, it appear to be locked at that volume.

Actually scratch that, it works, I just wasn't giving it enough time to react!  Big Grin
Reply


Forum Jump: