Thank you for your donation!


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


Solved: Squeezelite does not show up in LMS
#1
Hello,

I've got an Raspberry Pi 4 with a DAC/AMP HAT that works when using Local Playback or Radio streams.

But the Squeezelite Settings are activated yet not reconized by LMS.
I do have a proper connection from the player to the server, that should not be the problem.

Quote:Haldi@player:~ $ nmap -p 3483 192.168.1.2
Starting Nmap 7.80 ( https://nmap.org ) at 2023-11-02 21:52 CET
Nmap scan report for NAS.lan (192.168.1.2)
Host is up (0.0016s latency).

PORT     STATE SERVICE
3483/tcp open  slim-devices

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
Haldi@player:~ $


Using the Squeezelite-X app on Windows and using some Squeezelite-ESP32 boards do work fine. so i think it's not an issue from my server.
I've tried to restart Server and Player multiple times. No difference.


Sadly i'm not very well versed in linux troubleshooting.
So i'm looking forward to tips on what to try.


Code:
Audio information
Input / Output
Source Squeezelite stream
Encoded at Unknown
Decoded to Unknown, VBR
Output rate 32 bit, 44.1 kHz, Stereo, 2.822 Mbps
Output mode ALSA Default
Output chain Squeezelite
DSP operations
Resample rate
Selective
Volume type MPD Software (24-bit)
Audio Device
Device MERUS(tm) Amp piHAT ZW
Mixer name n/a
Chip Infineon MA12070P
Interface I2S
Formats S24_LE, S32_LE
Platform Pi-4B 1.4 2GB

Code:
System information

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

moOde release        = 8.3.6 2023-09-05
RaspiOS            = 11.7
Linux kernel        = 6.1.21-v8+ #1642
Platform        = Pi-4B 1.4 2GB
Architecture        = aarch64 (64-bit)
Home directory        = /home/Haldi
System uptime        = up 1 hour, 17 minutes
Timezone        = Europe/Berlin
Current time        = 2023-11-02 22:03:56

Host name        = player
Ethernet address    = unassigned
Ethernet MAC        = dc:a6:32:f6:66:07
WLAN address        = 192.168.1.120
WLAN MAC        = dc:a6:32:f6:66:0a
WLAN country        = CH
WLAN AP SSID        = Moode
WLAN AP chan        = 6
WLAN AP router        = Off

SoC identifier        = bcm2711
Core count        = 4
Kernel timer freq    = 250 Hz
SDCard freq        = 50 MHz
USB boot        = enabled
Warranty        = OK

Root size        = 59G
Root used        = 5%
Root available        = 54G
Root expand        = expanded
Memory total        = 1893 MB
Memory free        = 1433 MB
Memory used        = 460 MB
SoC temperature        = 65.2°C
Throttled bitmask    = 0x0
Throttled text        = No throttling has occurred

Worker responsiveness    = Default
CPU governor        = ondemand
USB auto-mounter    = udisks-glue
Pi integrated WiFi    = On
Pi integrated BT    = On
HDMI output        = On
LED state        = 1,1
IP addr timeout        = 90 (secs)
Ethernet check        = No
SSH term server        = On
Reduced sys logging    = Off

SMB file sharing    = Off
NFS file sharing    = Off
NFS access        =
NFS options        = rw,sync,no_subtree_check,no_root_squash

PHP-FPM version        = 7.4.33
NGINX version        = 1.18.0
SQLite3 version        = 3.34.1
Hostapd version        = 2.9
RPi.GPIO version    = 0.7.0

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

Audio device        = MERUS(tm) Amp piHAT ZW
Interface        = I2S
Mixer name        = none
Hardware mixer        = No
Supported formats    = S24_LE, S32_LE
ALSA max volume        = 100
ALSA output mode    = Default (plughw)
ALSA loopback        = Off
MPD max volume        = 100
Volume step limit    = 10
Display dB volume    = Off
Audio source        = Local
Output device        = Local
Resume MPD        = No
Volume knob        = 12
Volume mute        = Unmuted
Saved MPD vol        = 0
Preamp volume        = 0
ALSA version        = 1.2.4-1.1+rpt2
SoX version        = 0.1.3-4

Bluetooth controller    = Off
Pairing agent        = Off
AirPlay receiver    = Off
Spotify receiver    = Off
Squeezelite        = On
RoonBridge        = Not installed
UPnP client        = On
DLNA server        = Off
GPIO button handler    = Off
Multiroom sender    = Off
Multiroom receiver    = Disabled

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
CamillaDSP        = off
CamillaDSP volsync    = Off
MPD httpd        = Off
Ignore CUE files    = Yes

P R E F E R E N C E S

Appearance
----------------------
Theme            = Default
Accent color        = Carrot
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
Native lazyload        = Yes

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

Library
----------------------
One touch album        = Play
One touch radio        = Play
One touch playlist    = No action
Albumview sort order    = by Artist
Tagview sort order    = by Artist
Track play        = Track
Recently added        = 1 Month
Show sample rate    = No
Cover search pri    = Embedded cover
Pixel ratio        = 1.5
Thumbgen scan fmts    = Default
Thumbnail resolution    = Auto
Thumbnail columns    = 6/2 (Default)

Library (Advanced)
----------------------
Tag view genre        = Genres
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
----------------------
Timed display        = Never
Automatic display    = Off
Backdrop style        = Gradient (Linear)
Display mode        = Cover
Layout            = Default
Extra metadata        = No

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

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

Sort tag        = Name
Group method        = No grouping

M P D   S E T T I N G S

Version            = 0.23.12
Volume type        = software
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
Device buffer        = 500 (ms)
Device period        = 125 (ms)

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

Version            = 5.55
Bluealsa        = v4.1.0
Pairing agent        = 1.0.0
Pi-Bluetooth        = 0.1.19
Resume MPD        = No
PCM buffer time        = 500000 (µs)

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

Version            = 4.2
Friendly name        = Moode AirPlay
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

Version            = 0.4.2
Friendly name        = Moode Spotify
Bitrate (kbps)        = 160
Format            = S16
Dither            = Automatic (Default)
Volume curve        = log
Volume range (dB)    = 60
Initial volume (%)    = 0
Volume normalization    = No
Method            = dynamic
Gain type        = auto
Pregain (dB)        = 0
Threshold (dBFS)    = -2
Attack (ms)        = 5
Release (ms)        = 100
Knee            = 1
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            = 1.9.8-1317 "DSD/SRC enabled"
Friendly name        = TEST
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

20231102 204232 worker: --
20231102 204232 worker: -- Start moOde 8 series
20231102 204232 worker: --
20231102 204232 worker: Successfully daemonized
20231102 204232 worker: Waiting for Linux startup...
20231102 204244 worker: Linux startup complete
20231102 204244 worker: Boot config backed up
20231102 204246 worker: File check (OK)
20231102 204247 worker: Session vacuumed
20231102 204247 worker: Session loaded
20231102 204247 worker: Debug logging (OFF)
20231102 204247 worker: Reduced system logging (OFF)
20231102 204247 worker: --
20231102 204247 worker: -- Audio debug
20231102 204247 worker: --
20231102 204247 worker: ALSA cards: (0:sndrpimerusamp | 1:empty | 2:empty | 3:empty
20231102 204247 worker: MPD config: (0:MERUS(tm) Amp piHAT ZW | mixer:(none) | card:0)
20231102 204247 worker: ALSA mixer actual (none)
20231102 204248 worker: ALSA volume (none)
20231102 204248 worker: --
20231102 204248 worker: -- System
20231102 204248 worker: --
20231102 204248 command/index.php: Connection to MPD failed
20231102 204249 worker: Host      (moode)
20231102 204249 worker: Hardware  (Pi-4B 1.4 2GB)
20231102 204249 worker: moOde     (8.3.6 2023-09-05)
20231102 204249 worker: RaspiOS   (11.7)
20231102 204249 worker: Kernel    (6.1.21-v8+ #1642)
20231102 204249 worker: Procarch  (aarch64, 64-bit)
20231102 204249 worker: MPD ver   (0.23.12)
20231102 204249 worker: CPU gov   (ondemand)
20231102 204249 worker: Userid    (Haldi)
20231102 204249 worker: Homedir   (/home/Haldi)
20231102 204249 worker: Timezone  (Europe/Berlin)
20231102 204249 worker: Keyboard  (ch)
20231102 204249 worker: USB boot  (enabled)
20231102 204249 worker: File sys  (expanded)
20231102 204249 worker: HDMI port (On)
20231102 204249 worker: Sys LED0  (On)
20231102 204249 worker: Sys LED1  (On)
20231102 204249 worker: --
20231102 204249 worker: -- Network
20231102 204249 worker: --
20231102 204249 worker: eth0 adapter exists
20231102 204249 worker: eth0 address check (Off)
20231102 204249 worker: eth0 address not assigned
20231102 204250 worker: wlan0 adapter exists
20231102 204250 worker: wlan0 country (CH)
20231102 204250 worker: wlan0 configured SSID (bring Cookies)
20231102 204250 worker: wlan0 SSID alternates (None)
20231102 204250 worker: wlan0 router mode (Off)
20231102 204250 worker: wlan0 address check (up to 90 secs)
20231102 204250 worker: wlan0 connected to SSID (bring Cookies)
20231102 204250 worker: wlan0 power save (Disabled)
20231102 204250 worker: IP addr (192.168.1.120)
20231102 204250 worker: Netmask (255.255.255.0)
20231102 204250 worker: Gateway (192.168.1.1)
20231102 204250 worker: Pri DNS (192.168.1.1)
20231102 204250 worker: Domain  (lan)
20231102 204250 worker: --
20231102 204250 worker: -- Software update
20231102 204250 worker: --
20231102 204250 worker: Automatic check (Off)
20231102 204250 worker: --
20231102 204250 worker: -- File sharing
20231102 204250 worker: --
20231102 204250 worker: SMB file sharing (Off)
20231102 204250 worker: NFS file sharing (Off)
20231102 204250 worker: --
20231102 204250 worker: -- Audio config
20231102 204250 worker: --
20231102 204250 worker: MPD conf updated
20231102 204250 worker: ALSA card number (0)
20231102 204250 worker: MPD audio output (MERUS(tm) Amp piHAT ZW)
20231102 204250 worker: Audio formats (S24_LE, S32_LE)
20231102 204250 worker: ALSA mixer name (none)
20231102 204250 worker: MPD mixer type (software)
20231102 204250 worker: Hdwr volume controller not detected
20231102 204250 worker: ALSA output mode (Default)
20231102 204250 worker: ALSA loopback (Off)
20231102 204250 worker: Renderer active flags (reset)
20231102 204250 worker: CamillaDSP configuration (off)
20231102 204250 worker: --
20231102 204250 worker: -- MPD startup
20231102 204250 worker: --
20231102 204251 worker: MPD started
20231102 204251 worker: MPD accepting connections
20231102 204251 worker: MPD output 1 ALSA Default (On)
20231102 204251 worker: MPD output 2 ALSA Bluetooth (Off)
20231102 204251 worker: MPD output 3 HTTP Server (Off)
20231102 204251 worker: MPD crossfade (off)
20231102 204251 worker: MPD ignore CUE files (yes)
20231102 204251 worker: MPD camilladsp volume sync (Off)
20231102 204251 worker: MPD camilladsp volume range (60 dB)
20231102 204251 worker: --
20231102 204251 worker: -- Music sources
20231102 204251 worker: --
20231102 204251 worker: USB sources
20231102 204251 worker: No drives found
20231102 204251 worker: NAS sources
20231102 204251 worker: None configured
20231102 204251 worker: --
20231102 204251 worker: -- Feature availability
20231102 204251 worker: --
20231102 204251 worker: Input select (available)
20231102 204251 worker: Input (MPD)
20231102 204251 worker: Output (MERUS(tm) Amp piHAT ZW)
20231102 204251 worker: Bluetooth (available)
20231102 204251 worker: AirPlay renderer (available)
20231102 204251 worker: Spotify renderer (available)
20231102 204251 worker: Squeezelite (available: started)
20231102 204251 worker: RoonBridge renderer (not installed)
20231102 204251 worker: Multiroom sender (available)
20231102 204251 worker: Multiroom receiver (available)
20231102 204251 worker: UPnP renderer (available)
20231102 204251 worker: DLNA server (available)
20231102 204251 worker: GPIO button handler (available)
20231102 204251 worker: Stream recorder (n/a)
20231102 204251 worker: HTTPS-Only mode (n/a)
20231102 204251 worker: --
20231102 204251 worker: -- Other
20231102 204251 worker: --
20231102 204251 worker: USB volume knob (Off)
20231102 204251 worker: Shellinabox SSH started
20231102 204251 worker: USB auto-mounter (udisks-glue)
20231102 204251 worker: Saved MPD vol level (0)
20231102 204251 worker: Preamp volume level (0)
20231102 204251 worker: MPD volume level (0) restored
20231102 204251 worker: ALSA volume level (None)
20231102 204251 worker: Auto-play (Off)
20231102 204252 worker: LocalUI (Off)
20231102 204252 worker: Automatic CoverView (Off)
20231102 204252 worker: On-screen keyboard (Off)
20231102 204252 worker: Library scope (all)
20231102 204252 worker: Library active search (None)
20231102 204252 worker: View reset to (Playback)
20231102 204252 worker: Maintenance interval (360 minutes)
20231102 204252 worker: Screen saver activation (Never)
20231102 204252 worker: Session permissions (OK)
20231102 204252 worker: --
20231102 204252 worker: -- Startup complete
20231102 204252 worker: --
20231102 204252 worker: Mount monitor (off)
20231102 204252 worker: Watchdog monitor (started)
20231102 204252 worker: Responsiveness (Default)
20231102 204252 worker: Ready
20231102 204837 worker: Job slsvc
20231102 204858 worker: Job slcfgupdate
20231102 204931 worker: Job slsvc
20231102 204949 worker: Job slrestart
20231102 205932 worker: Job slrestart
20231102 210715 worker: Job slsvc
20231102 210724 worker: Job upnpsvc
20231102 215144 worker: Job slsvc

Code:
Release Information

   Release: 8.3.6 2023-09-05
   Maintainer: Tim Curtis © 2014
   Documentation: View release notes, View setup guide
   Contributors: View contributors
   License: View GPLv3

Platform Information

   RaspiOS: 11.7
   Linux kernel: 6.1.21-v8+ #1642
   Pi model: Pi-4B 1.4 2GB
   Architecture: aarch64
   MPD version: 0.23.12
Reply
#2
The symptoms suggest something external to moOde software for example a network issue, etc. I ran a quick test and it plays fine on my end with latest LMS 8.3.1 installed on MacOS Ventura 13.1

       

All moOde does is launch squeezelight. Everything else that happens is between squeezelite and LMS. To see if squeezelite has crashed run the command below. It returns 1 if its running and 0 if it's not.


Code:
pi@moode:~ $ pgrep -c squeezelite
1
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
FYI, I get the same results as @Tim Curtis  reports. I ran my test with LMS 8.3.1 installed on a Linux Mint box.

Regards,
Kent
Reply
#4
Code:
Haldi@player:~ $ pgrep -c squeezelite
1
   

but LMS (on Docker on Synology NAS) only shows the ESP device and Windows instance.
   

Quote:Server
  • Version: 8.3.1 - 1676361197 @ Fri Feb 17 06:43:16 CET 2023
  • Hostname: lmscommunity-logitechmediaserver-1
  • Server IP Address: 172.17.0.9
  • Operating system: Debian (Docker) - EN - utf8
  • Platform Architecture: x86_64-linux
  • Perl Version: 5.32.1 - x86_64-linux-gnu-thread-multi
  • Audio::Scan: 1.06
  • IO::Socket::SSL: 2.069
  • Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

It seems like it "should" work. but just doesn't show up.
Reply
#5
(11-03-2023, 01:34 PM)Haldi Wrote:
Code:
Haldi@player:~ $ pgrep -c squeezelite
1


but LMS (on Docker on Synology NAS) only shows the ESP device and Windows instance.


Quote:Server
  • Version: 8.3.1 - 1676361197 @ Fri Feb 17 06:43:16 CET 2023
  • Hostname: lmscommunity-logitechmediaserver-1
  • Server IP Address: 172.17.0.9
  • Operating system: Debian (Docker) - EN - utf8
  • Platform Architecture: x86_64-linux
  • Perl Version: 5.32.1 - x86_64-linux-gnu-thread-multi
  • Audio::Scan: 1.06
  • IO::Socket::SSL: 2.069
  • Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

It seems like it "should" work. but just doesn't show up.

Wait a bit... is it me not understanding, or the two networks have nothing to do with each-other?
192.168.1.2 vs 172.17.0.9
Reply
#6
(11-03-2023, 01:34 PM)Haldi Wrote:
Code:
Haldi@player:~ $ pgrep -c squeezelite
1


but LMS (on Docker on Synology NAS) only shows the ESP device and Windows instance.


Quote:Server
  • Version: 8.3.1 - 1676361197 @ Fri Feb 17 06:43:16 CET 2023
  • Hostname: lmscommunity-logitechmediaserver-1
  • Server IP Address: 172.17.0.9
  • Operating system: Debian (Docker) - EN - utf8
  • Platform Architecture: x86_64-linux
  • Perl Version: 5.32.1 - x86_64-linux-gnu-thread-multi
  • Audio::Scan: 1.06
  • IO::Socket::SSL: 2.069
  • Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

It seems like it "should" work. but just doesn't show up.

From earlier post your config showed the Pi on 192.168.1.120 but server is on 172.17.0.9. Traffic can't pass between these two networks unless a route is explicitly defined.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
I'm not sure the autodiscovery process works across net/subnet boundaries even if an explicit route between them is established. 

However, if the route exists, then the squeezelite -s option may help

Code:
pi@moode:~ $ squeezelite -h

Option error: -h

Squeezelite v1.9.8-1317, Copyright 2012-2015 Adrian Smith, 2015-2021 Ralph Irving. See -t for license terms
Usage: squeezelite [options]
 -s <server>[:<port>]    Connect to specified server, otherwise uses autodiscovery to find server
...

Haven't tried it.

Just my 2-cents worth.

Regards,
Kent
Reply
#8
(11-03-2023, 02:03 PM)Nutul Wrote: Wait a bit... is it me not understanding, or the two networks have nothing to do with each-other?
192.168.1.2 vs 172.17.0.9

Nah thats just Docker!
The LMS is easily reachable from all other devices, including my PC via 192.168.1.2 (NAS) on port 9000 and 3483

as succesfully testet in my first post:

Code:
Haldi@player:~ $ nmap -p 3483 192.168.1.2
Starting Nmap 7.80 ( https://nmap.org ) at 2023-11-02 21:52 CET
Nmap scan report for NAS.lan (192.168.1.2)
Host is up (0.0016s latency).

PORT     STATE SERVICE
3483/tcp open  slim-devices

Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
Haldi@player:~ $
player is the Moodeaudio device on 192.168.1.120

so the two devices ARE capable of communication with each other.
It just doesnt show up in LMS.
Reply
#9
(11-03-2023, 02:31 PM)TheOldPresbyope Wrote: However, if the route exists, then the squeezelite -s option may help

Code:
pi@moode:~ $ squeezelite -h

Option error: -h

Squeezelite v1.9.8-1317, Copyright 2012-2015 Adrian Smith, 2015-2021 Ralph Irving. See -t for license terms
Usage: squeezelite [options]
 -s <server>[:<port>]    Connect to specified server, otherwise uses autodiscovery to find server
...
That sounds like a great idea! If it's only the auto discovery that's not working then this should help.


Code:
Default: -W -D 500 -R E -S /var/local/www/commandw/slpower.sh
Already has the -S command with the shell script so i assume that stuff is Case sensitive?

it is!

Code:
-W -D 500 -R E -s 192.168.1.2:3483 -S /var/local/www/commandw/slpower.sh

   

so it was a discovery issue.

@tim Curtis
i Propose adding another explanation line with the -s command for direct connection to servers.
   
Reply
#10
(11-03-2023, 11:38 PM)Haldi Wrote:
(11-03-2023, 02:31 PM)TheOldPresbyope Wrote: However, if the route exists, then the squeezelite -s option may help

Code:
pi@moode:~ $ squeezelite -h

Option error: -h

Squeezelite v1.9.8-1317, Copyright 2012-2015 Adrian Smith, 2015-2021 Ralph Irving. See -t for license terms
Usage: squeezelite [options]
 -s <server>[:<port>]    Connect to specified server, otherwise uses autodiscovery to find server
...
That sounds like a great idea! If it's only the auto discovery that's not working then this should help.


Code:
Default: -W -D 500 -R E -S /var/local/www/commandw/slpower.sh
Already has the -S command with the shell script so i assume that stuff is Case sensitive?

it is!

Code:
-W -D 500 -R E -s 192.168.1.2:3483 -S /var/local/www/commandw/slpower.sh



so it was a discovery issue.

@tim Curtis
i Propose adding another explanation line with the -s command for direct connection to servers.

Good idea, I'll update the help.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: