Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Member
    Join Date
    Jan 2009
    Location
    Nuremberg, Germany
    Posts
    33

    LMS restart error: Found left-over process 441 (squeezeboxserve)

    Hi,

    I just successfully installed LMS on my new RPi 4+ 4GB. Works like a charm.

    Except when it comes to a restart:

    If I use
    Code:
    service logitechmediaserver restart
    or
    Code:
    sudo systemctl restart logitechmediaserver.service
    the LMS always starts a full scan upon restart. This is also true for a reboot or general start of LMS.

    If I use
    Code:
    service logitechmediaserver status
    , I get the following error of a "left-over process":

    Code:
    pi@RPiWohnzimmer:/proc/2885 $ service logitechmediaserver status
    ● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
       Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
       Active: active (running) since Wed 2019-11-13 14:11:05 CET; 23h ago
         Docs: man:systemd-sysv-generator(8)
      Process: 2878 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
        Tasks: 6 (limit: 4915)
       Memory: 1.3G
       CGroup: /system.slice/logitechmediaserver.service
               ├─2885 /bin/bash /usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset=utf8
               └─2887 /usr/bin/perl /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezebox
    
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Stopped LSB: Startup script for the Logitech Media Server.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: logitechmediaserver.service: Found left-over process 441 (squeezeboxserve) in control group while starting unit. Ignoring.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Starting LSB: Startup script for the Logitech Media Server...
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Making sure that Logitech Media Server is not running first: start-stop-daemon: warning: failed to kill 437: No such process
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Starting Logitech Media Server.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Started LSB: Startup script for the Logitech Media Server.
    Now, specifically, might this error be the cause for a full re-scan on every startup:
    Code:
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: logitechmediaserver.service: Found left-over process 441 (squeezeboxserve) in control group while starting unit. Ignoring.
    Or are these 2 issues which I should separate? I would love to solve both!

    Regards, Till

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,887
    Try a "stop" rather than a "restart" and see if it really does stop and how long it takes.

    If it exits cleanly then try a "start".
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  3. #3
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,182
    I've seen that from time to time and I suspect it to be an issue with the Airplay bridge or Castbridge not shutting down cleanly but I have yet to spend any time looking further.

    Do you run either of those plugins ?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  4. #4
    Member
    Join Date
    Jan 2009
    Location
    Nuremberg, Germany
    Posts
    33
    Quote Originally Posted by Paul Webster View Post
    Try a "stop" rather than a "restart" and see if it really does stop and how long it takes.

    If it exits cleanly then try a "start".
    This is what I did:
    Code:
    pi@RPiWohnzimmer:~ $ sudo systemctl stop logitechmediaserver.service 
    pi@RPiWohnzimmer:~ $ sudo systemctl status logitechmediaserver.service 
    ● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
       Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
       Active: inactive (dead) since Thu 2019-11-14 18:22:47 CET; 11s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 2878 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
      Process: 12373 ExecStop=/etc/init.d/logitechmediaserver stop (code=exited, status=0/SUCCESS)
        Tasks: 5 (limit: 4915)
       Memory: 1.3G
       CGroup: /system.slice/logitechmediaserver.service
               └─2887 /usr/bin/perl /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver -
    
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Starting LSB: Startup script for the Logitech Media Server...
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Making sure that Logitech Media Server is not running first: start-stop-daemon: warning: failed to kill 437: No
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
    Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Starting Logitech Media Server.
    Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Started LSB: Startup script for the Logitech Media Server.
    Nov 14 18:22:47 RPiWohnzimmer systemd[1]: Stopping LSB: Startup script for the Logitech Media Server...
    Nov 14 18:22:47 RPiWohnzimmer logitechmediaserver[12373]: Stopping Logitech Media Server.
    Nov 14 18:22:47 RPiWohnzimmer systemd[1]: logitechmediaserver.service: Succeeded.
    Nov 14 18:22:47 RPiWohnzimmer systemd[1]: Stopped LSB: Startup script for the Logitech Media Server.
    It seems to stop immediately (I executed the 2 commands stop and status in close sequence).

    Error of a leftover process still seems to be there:
    Code:
    pi@RPiWohnzimmer:~ $ ps -A |grep squee
      635 ?        00:12:05 squeezelite
     2887 ?        1-04:45:43 squeezeboxserve
    pi@RPiWohnzimmer:~ $

  5. #5
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    402
    I find that if I wait for a few seconds ( 3 ?, 5 ? ) after stopping, then any "stray" processes will clear themselves out.

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,887
    Squeezelite is a separate player.

    Do you have any plugins running that launch extra processes?
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  7. #7
    Member
    Join Date
    Jan 2009
    Location
    Nuremberg, Germany
    Posts
    33
    Quote Originally Posted by d6jg View Post
    I've seen that from time to time and I suspect it to be an issue with the Airplay bridge or Castbridge not shutting down cleanly but I have yet to spend any time looking further.

    Do you run either of those plugins ?
    Nope - I'm not (yet) using either of these plugins.

  8. #8
    Member
    Join Date
    Jan 2009
    Location
    Nuremberg, Germany
    Posts
    33
    First of all thanks folks for so readily replying.

    Quote Originally Posted by Paul Webster View Post
    Squeezelite is a separate player.

    Do you have any plugins running that launch extra processes?
    1) I know that Squeezelite is a player - I installed it But does the player also have a squeezeserver since ps -A |grep squee yields squeezeserve.
    2) I am not a aware of any active plugins launching extra processes - however, how do I know if they cause this? Is there a way of listing all plugins that are activated?

    Quote Originally Posted by mrw View Post
    I find that if I wait for a few seconds ( 3 ?, 5 ? ) after stopping, then any "stray" processes will clear themselves out.
    my ps -A |grep squee shows the squeezeserve process even after about 8 minutes. Is there any other way to tell if the LMS is completely shut down?
    Last edited by mi6; 2019-11-14 at 10:45.

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,887
    Check the LMS logs just in case there is a clue.
    Also ps/grep for perl
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  10. #10
    Member
    Join Date
    Jan 2009
    Location
    Nuremberg, Germany
    Posts
    33
    Quote Originally Posted by Paul Webster View Post
    Check the LMS logs just in case there is a clue.
    server.log:
    Code:
    [19-11-14 08:56:13.2057] Plugins::TrackStat::Storage::refreshTracks (1242) TrackStat: Synchronizing TrackStat data, please wait...
    [19-11-14 09:06:02.6019] Plugins::TrackStat::Storage::refreshTracks (1891) TrackStat: Synchronizing TrackStat data finished
    [19-11-14 09:06:05.4392] Plugins::TrackStat::Storage::refreshTracks (1242) TrackStat: Synchronizing TrackStat data, please wait...
    [19-11-14 09:15:49.0596] Plugins::TrackStat::Storage::refreshTracks (1891) TrackStat: Synchronizing TrackStat data finished
    [19-11-14 14:13:45.4417] Slim::Web::HTTP::generateHTTPResponse (991) Access to settings pages is restricted to the local network or localhost: 85.203.44.147 -> 192.168.1.31 (settings/index.html)
    2019-11-14 18:22:47 squeezeboxserver_safe stopped.
    Quote Originally Posted by Paul Webster View Post
    Also ps/grep for perl
    ? Sorry - you mean ps -A |grep perl?
    Code:
    pi@RPiWohnzimmer:~ $ sudo ps -A |grep perl
    pi@RPiWohnzimmer:~ $ sudo ps -A |grep squee
      635 ?        00:12:14 squeezelite
     2887 ?        1-05:17:28 squeezeboxserve

Posting Permissions

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