Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36
  1. #1
    Junior Member
    Join Date
    Nov 2020
    Posts
    19

    squeezelite with config file starts but no sound

    Hello all, I've just installed LMS and squeezelite (1.9.9-1386) on a RaspPi 3. LMS is working fine via a separate/standalone pCP player plus 2 Sonos speakers (using a plugin) However, I can't start a local player (i.e. on the LMS pi) after following instructions. I'm sure I'm doing something wrong somewhere but I can't see where.

    I can start squeezelite from cli with...

    Code:
    squeezelite -n "Player" -o sysdefault:CARD=Headphones -r 44100 -a :::0
    ...and all is fine, everything I select plays OK. Yet if I put those same settings in the config file (/etc/default/squeezelite)...

    Code:
    SL_NAME="Player"
    SL_SOUNDCARD="sysdefault:CARD=Headphones"
    SB_EXTRA_ARGS="-r 44100 -a :::0"
    ...then whilst the service starts with no (apparent) errors, I get no sound. Any help would be greatly appreciated.

    I'm using the standard 3.5 output jack on the Pi.

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,766
    I have just added

    -r 44100

    to a similar install and it plays OK

    Did you do

    Code:
    sudo /etc/init.d/squeezelite restart
    after saving the config file ?

    Also, did you check alsamixer ?

    ronnie

  3. #3
    Junior Member
    Join Date
    Nov 2020
    Posts
    19
    Thanks for the reply ronnie.

    Yes, I did the restart after checking and saving the config. I got....

    Code:
    [ ok ] Restarting squeezelite (via systemctl): squeezelite.service.
    ...but still no sound.

    FYI,
    Code:
    sudo /etc/init.d/squeezelite status -l
    gives me...

    Loaded: loaded (/etc/init.d/squeezelite; generated)
    Active: active (exited) since Mon 2021-06-14 14:15:18 CEST; 3min 25s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 7258 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS)

    Jun 14 14:15:18 media-server systemd[1]: Starting LSB: Lightweight headless Squeezebox emulator...
    Jun 14 14:15:18 media-server systemd[1]: Started LSB: Lightweight headless Squeeze box emulator.

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,956
    Looks like it is exiting immediately.

    Try running it from command line using
    /etc/init.d/squeezelite start
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  5. #5
    Junior Member
    Join Date
    Nov 2020
    Posts
    19
    Quote Originally Posted by Paul Webster View Post
    Try running it from command line using
    /etc/init.d/squeezelite start
    Same. Still no sound.


    ● squeezelite.service - LSB: Lightweight headless Squeezebox emulator
    Loaded: loaded (/etc/init.d/squeezelite; generated)
    Active: active (exited) since Mon 2021-06-14 14:15:18 CEST; 43min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 7258 ExecStart=/etc/init.d/squeezelite start (code=exited, status=0/SUCCESS)

    Jun 14 14:15:18 media-server systemd[1]: Starting LSB: Lightweight headless Squeezebox emulator...
    Jun 14 14:15:18 media-server systemd[1]: Started LSB: Lightweight headless Squeezebox emulator.
    Also checked alsamixer and have set it to max dB gain.

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,956
    Try putting sone diagnostics in the startup script
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  7. #7
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,766
    @pantomnesia

    Which OS are you using ?

  8. #8
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,766
    Quote Originally Posted by Man in a van View Post
    @pantomnesia

    Which OS are you using ?

    I asked this because I was going to suggest that you re-install squeezelite.

    However, not being certain of the correct command I managed to botch things up before I foound the correct one

    Re-installing squeezelite gave a couple of errors that I could nor circumscribe so I made a fresh install of raspberry PI OS Buster Desktop 32 bit.

    Updated and installed squeezelite Alsa via the package manager

    Edited the config file:

    Code:
    # Defaults for squeezelite initscript
    # sourced by /etc/init.d/squeezelite
    # installed at /etc/default/squeezelite by the maintainer scripts
    
    # The name for the squeezelite player:
    SL_NAME="$(hostname -s)"
    
    # ALSA output device:
    SL_SOUNDCARD="sysdefault:CARD=Headphones"
    
    # Squeezebox server (Logitech Media Server):
    # Uncomment the next line if you want to point squeezelite at the IP address of
    # your squeezebox server. This is usually unnecessary as the server is
    # automatically discovered.
    #SB_SERVER_IP="192.168.x.y"
    
    # Additional options to pass to squeezelite:
    # Please do not include -z to make squeezelite daemonise itself.
    SB_EXTRA_ARGS="-r 44100 -a :::0"
    Plays fine, updated (whilst listening) with

    Code:
    sudo /etc/init.d/squeezelite stop
    wget -O squeezelite.tgz https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/squeezelite-1.9.9.1386-armhf.tar.gz
    sudo tar -C /usr/bin -zxvf squeezelite.tgz
    sudo chmod a+x /usr/bin/squeezelite
    sudo /etc/init.d/squeezelite start
    which I pasted in a block, music continues, all is good

    I would suggest you do the same and make a back up as soon as possible

    ronnie

  9. #9
    Junior Member
    Join Date
    Nov 2020
    Posts
    19
    Quote Originally Posted by Man in a van View Post
    Which OS are you using ?
    Debian 10 Buster headless

    I was already running squeezelite 1.9.9-1386 but I downloaded it again, followed your instructions and tried to restart... no joy. Tbh, I'm not familiar with the workings of init.d etc so am at a bit of loss to see what's going wrong. I put some debug messages into the /etc/init.d/squeezelite script (redirecting output to a log file) but it didn't see what looked like errors...

    + [ -x /usr/bin/squeezelite ]
    + [ -r /etc/default/squeezelite ]
    + . /etc/default/squeezelite
    + SL_NAME=Player
    + SL_SOUNDCARD=sysdefault:CARD=Headphones
    + SB_EXTRA_ARGS=-r 44100 -a :::0
    + . /lib/init/vars.sh
    + TMPTIME=0
    + SULOGIN=no
    + DELAYLOGIN=no
    + UTC=yes
    + VERBOSE=no
    + FSCKFIX=no
    + [ -f /etc/default/rcS ]
    + unset EDITMOTD
    + unset RAMRUN
    + unset RAMLOCK
    + [ -r /proc/cmdline ]
    + cat /proc/cmdline
    + [ ]
    + . /lib/lsb/init-functions
    + run-parts --lsbsysinit --list /lib/lsb/init-functions.d
    + [ -r /lib/lsb/init-functions.d/20-left-info-blocks ]
    + . /lib/lsb/init-functions.d/20-left-info-blocks
    + [ -r /lib/lsb/init-functions.d/40-systemd ]
    + . /lib/lsb/init-functions.d/40-systemd
    + _use_systemctl=0
    + [ -d /run/systemd/system ]
    + [ -n ]
    + [ squeezelite = init-d-script ]
    + [ squeezelite = start ]
    + executable=/etc/init.d/squeezelite
    + argument=start
    + prog=squeezelite
    + service=squeezelite.service
    + systemctl -p LoadState --value show squeezelite.service
    + state=loaded
    + [ loaded = masked ]
    + [ 11094 -ne 1 ]
    + [ -z ]
    + readlink -f /etc/init.d/squeezelite
    + [ loaded != not-found ]
    + _use_systemctl=1
    + systemctl -p CanReload --value show squeezelite.service
    + [ no = no ]
    + [ start = reload ]
    + [ 1 = 1 ]
    + set +e
    + set +u
    + systemctl_redirect /etc/init.d/squeezelite start
    + local s
    + local rc
    + local prog=squeezelite
    + local command=start
    + s=Starting squeezelite (via systemctl)
    + service=squeezelite.service
    + systemctl is-system-running
    + OUT=degraded
    + [ degraded != degraded ]
    + [ start = status ]
    + log_daemon_msg Starting squeezelite (via systemctl) squeezelite.service
    + [ -z Starting squeezelite (via systemctl) ]
    + log_daemon_msg_pre Starting squeezelite (via systemctl) squeezelite.service
    + log_use_fancy_output
    + TPUT=/usr/bin/tput
    + EXPR=/usr/bin/expr
    + [ -t 1 ]
    + FANCYTTY=0
    + false
    + [ -z squeezelite.service ]
    + echo -n Starting squeezelite (via systemctl): squeezelite.service
    Starting squeezelite (via systemctl): squeezelite.service+ log_daemon_msg_post Starting squeezelite (via systemctl) squeezelite.service
    + :
    + /bin/systemctl --no-pager start squeezelite.service
    + rc=0
    + [ start = status ]
    + log_end_msg 0
    + [ -z 0 ]
    + local retval
    + retval=0
    + log_end_msg_pre 0
    + log_use_fancy_output
    + TPUT=/usr/bin/tput
    + EXPR=/usr/bin/expr
    + [ -t 1 ]
    + FANCYTTY=0
    + false
    + log_use_fancy_output
    + TPUT=/usr/bin/tput
    + EXPR=/usr/bin/expr
    + [ -t 1 ]
    + FANCYTTY=0
    + false
    + RED=
    + YELLOW=
    + NORMAL=
    + [ 0 -eq 0 ]
    + echo .
    .
    + log_end_msg_post 0
    + :
    + return 0
    + return 0
    + exit 0
    bin/expr
    + [ -t 1 ]
    + FANCYTTY=0
    + false
    + RED=
    + YELLOW=
    + NORMAL=
    + [ 0 -eq 0 ]
    + echo .
    .
    + log_end_msg_post 0
    + :
    + return 0
    + return 0
    + exit 0
    It looks to me like the service is running...
    Code:
    sudo systemctl is-active --quiet squeezelite && echo running
    gives
    running
    Something that might be of use; on '/etc/init.d/squeezelite start', sometimes the player 'Player' is found by LMS and sometimes not. If it is, then the volume is at zero.

    Tbh, I'm not super worried about it as I can start the player via a cron script @reboot. That's working just fine but I'm just a little baffled why it doesn't work as a service.

  10. #10
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,766
    Quote Originally Posted by pantomnesia View Post
    Debian 10 Buster headless

    .
    Just so we are on the same page, is this the Raspberry Pi Foundation Buster Lite OS or the Debian-10.9.0-armhf-xfce- ?

    ronnie

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •