Hi all,

I run a very stable machine (Pi3/raspbian, about 1 year old) with
logitechmediaserver 7.9.1~1491339164 on it
The machine has a cron entry that restarts LMS weekly at 4:00 on
Sundays. The gist of it is:
Code:
--------------------
    
  /usr/sbin/service "$SERVICE" stop
  sleep 5
  /usr/sbin/service "$SERVICE" start
--------------------


Today I received a mail telling me LMS had failed. I looked in server
log and LMS was caught in a restart loop. The problem happened at 4:00.

Code:
--------------------
    2018-10-07 04:00:02 squeezeboxserver_safe stopped.
  2018-10-07 04:00:08 squeezeboxserver_safe started.
  2018-10-07 04:00:15 Logitech Media Server died. Restarting.
  2018-10-07 04:00:20 Logitech Media Server died. Restarting.
  ...
--------------------


I ran /usr/sbin/squeezeboxserver --help and got this:
Code:
--------------------
    Number found where operator expected at /usr/share/perl5/Slim/Schema.pm 
line 2890, near "} 5"
        (Missing operator before  5?)
  Bareword found where operator expected at /usr/share/perl5/Slim/Schema.pm 
line 2892, near "$)sDebug"
        (Missing operator before sDebug?)
  Unrecognized character \xF4; marked by <-- HERE after                         
        $at<-- HERE near column 8 at /usr/share/perl5/Slim/Schema.pm line 2893.
  Compilation failed in require at /usr/share/perl5/Slim/Player/Song.pm line 18.
  ...
--------------------

Which corresponds to:
Code:
--------------------
    tail -2885 /usr/share/perl5/Slim/Schema.pm | more
  
  sub hasLibrary {
        return $initialized;
  }
  
  sub _connect {
        my ( $class, $dsn, $sql ) = @_;
        
        $sql ||= [];
        
        my ($driver, $source, $username, $password) = $class->sourceInformation;
  ...
--------------------


I reinstalled logitechmediaserver_7.9.1~1492077569_arm.deb, so not the
same version but one I had lying around in the machine.
This "solved" the problem as the server restarted ok this time.
The uptime of the machine was 78 days, dmesg or syslog didn't show
anything extraordinary. Load was a bit higher than normal due to LMS
restarting incessantly, but still very manageable for the system. LMS
doesn't work on Sundays on that machine :)

I guess something happened on the way to saving the DB when LMS stopped,
and then it failed to restart?
In any case I would like to know how to make my crontab restart script
less naive and avoid this problem in the future. Any idea what might
have happened and how to make restart more sturdy?

Thanks in advance.



3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9
(linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa
• IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon
Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael
Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by
Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin
Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=109559

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to