Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-29 Thread Pascal Hibon


Hello Michael,

The issue with my NAS is sorted thanks to the great ReadyNAS community. 
Apparently something messed up either my apache configuration or Perl
setup. My NAS issues started right after my issues with LMS. It is quite
possible that the two issues where linked. 
Anyway, as a result i won't be running LMS on my NAS anymore. I have it
installed on a RPI that was already running HomeBridge. So all is up and
running again. 
Thank you for your support!



'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon

Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-27 Thread Pascal Hibon


mherger wrote: 
> Try to run
> 
> > 
Code:

  >   > /usr/sbin/squeezeboxserver --d_startup --prefsdir 
/c/.squeezeboxserver/prefs --logdir /c/.squeezeboxserver/log --cachedir 
/c/.squeezeboxserver/cache

> > 

Hi Michael, I will try that as soon as possible. 
In the meantime, I ran into another issue with my NAS. I can't access
the admin pages anymore and I'm trying to sort it out with ReadyNAS
support. 
Don't you just love IT...



'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon

Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-27 Thread mherger


Try to run


Code:

/usr/sbin/squeezeboxserver --d_startup --prefsdir 
/c/.squeezeboxserver/prefs --logdir /c/.squeezeboxserver/log --cachedir 
/c/.squeezeboxserver/cache




Michael

http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-26 Thread Pascal Hibon


mherger wrote: 
> >dirsFor: Didn't find a match request: [scprefs]
> >Segmentation fault
> 
> A segfault. I'm pretty sure the line before has nothing to do with it. 
> But then I don't know what Perl code change would cause a segfault. The 
> binaries haven't changed since 7.9.1.
> 
> Did you run squeezeboxserver without any further parameter? Can you try 
> to re-construct the full command line as it would be used in the startup
> 
> script?
> 
> -- 
> 
> Michael

Hi Michael,
Thank you for your support so far!

If have copied the squeezeboxserver file in /etc/init.d/ below.
I'm in no means an expert in coding. Is this what you are looking for?


Code:


  
  
  
  
  #!/bin/sh
  #
  # $Id$
  #
  # squeezeboxinitscript for slimserver.pl
  #   This file should be placed in /etc/init.d.
  #
  # Original Author: Mattias Holmlund
  #
  # Updated By: Dan Sully
  
  
  set -e
  
  
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  DESC="Logitech Media Server"
  NAME=squeezeboxserver
  DAEMON=/usr/sbin/$NAME
  DAEMON_SAFE=/usr/sbin/${NAME}_safe
  PIDFILE=/var/run/$NAME.pid
  SCRIPTNAME=/etc/init.d/$NAME
  SLIMUSER=root
  PREFSDIR=/c/.$NAME/prefs
  LOGDIR=/c/.$NAME/log
  CACHEDIR=/c/.$NAME/cache
  SLIMOPTIONS=-utf8
  
  
  # Read config file if it is present.
  if [ -r /etc/default/$NAME ]
  then
  . /etc/default/$NAME
  fi
  
  
  #
  #   Function that starts the daemon/service.
  #
  d_start() {
  # Use squeezebox_safe to restart the daemon when
  # it dies. This must be done to handle mysql restarts.
  start-stop-daemon --start --quiet \
  --chuid $SLIMUSER \
  --pidfile $PIDFILE \
  --exec /bin/bash \
  --background \
  --make-pidfile \
  --name squeezeboxserve \
  --startas $DAEMON_SAFE \
  -- \
  $DAEMON \
  --prefsdir $PREFSDIR \
  --logdir $LOGDIR \
  --cachedir $CACHEDIR \
  $SLIMOPTIONS
  }
  
  
  d_start_direct() {
  start-stop-daemon --start --quiet \
  --chuid $SLIMUSER \
  --pidfile $PIDFILE \
  --exec $DAEMON \
  -- \
  --pidfile $PIDFILE \
  --daemon \
  --prefsdir $PREFSDIR \
  --logdir $LOGDIR \
  --cachedir $CACHEDIR \
  $SLIMOPTIONS
  }
  
  
  #   Function that stops the daemon/service.
  #
  d_stop() {
  start-stop-daemon --oknodo --stop --pidfile $PIDFILE --name squeezeboxserve 
--retry=TERM/30/KILL/5
  }
  
  
  #
  #   Function that sends a SIGHUP to the daemon/service.
  #
  d_reload() {
  start-stop-daemon --stop --quiet --pidfile $PIDFILE \
  --name squeezeboxserve --signal 1
  }
  
  
  case "$1" in
  start)
  
  
  # We should not stop the service on a simple start call - this causes 
playback to be interrupted whenever the ReadyNAS receives a WOL packet
  # This was added in response to some dependency issues when we were 
introducing MySQL back in 2009. But we're no longer using MySQL. - mh
  #   echo -n "Making sure $DESC is stopped already: "
  #   d_stop
  echo -n "Starting $DESC: "
  d_start
  echo "."
  ;;
  stop)
  echo -n "Stopping $DESC: "
  d_stop
  echo "."
  ;;
  restart|force-reload)
  #
  #   If the "reload" option is implemented, move the "force-reload"
  #   option to the "reload" entry above. If not, "force-reload" is
  #   just the same as "restart".
  #
  echo -n "Restarting $NAME: "
  d_stop
  d_start
  echo "."
  ;;
  *)
  # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
  echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
  exit 1
  ;;
  esac
  
  
  exit 0
  
  
  
  




'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon

Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-26 Thread Michael Herger

   dirsFor: Didn't find a match request: [scprefs]
   Segmentation fault


A segfault. I'm pretty sure the line before has nothing to do with it. 
But then I don't know what Perl code change would cause a segfault. The 
binaries haven't changed since 7.9.1.


Did you run squeezeboxserver without any further parameter? Can you try 
to re-construct the full command line as it would be used in the startup 
script?


--

Michael
___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-26 Thread Pascal Hibon


mherger wrote: 
> 
> Hmm... I'm not familiar with the ReadyNAS anymore... 
> 
Are you saying that I better find another device to run LMS on? 
And if so, would an RPI be a better option? I have an RPI running
HomeBridge on a Raspbian OS. I could install LMS on that PI if that is a
better option. 


mherger wrote: 
> 
> but you could try 
> to run "/usr/sbin/squeezeboserver -d_startup" manually from the shell. 
> That should give you all the errors that are not logged to server.log.
> Michael


This is what got spit out on the screen. Hope it tells you something
meaningfull (it doesn't to me :-) ):

Code:


  Bigbear:/usr/sbin# squeezeboxserver -d_startup
  Got @INC containing:
  /c/.squeezeboxserver
  /usr/share/squeezeboxserver/CPAN
  /usr/share/squeezeboxserver
  /usr/sbin
  /etc/perl
  /usr/local/lib/perl/5.8.8
  /usr/local/share/perl/5.8.8
  /usr/lib/perl5
  /usr/share/perl5
  /usr/lib/perl/5.8
  /usr/share/perl/5.8
  /usr/local/lib/site_perl
  .
  
  
  Extended @INC to contain:
  /usr/share/squeezeboxserver/CPAN/arch/5.8/i386-linux-thread-multi
  /usr/share/squeezeboxserver/CPAN/arch/5.8/i386-linux-thread-multi/auto
  /usr/share/squeezeboxserver/CPAN/arch/5.8.8/i486-linux-gnu-thread-multi
  /usr/share/squeezeboxserver/CPAN/arch/5.8.8/i486-linux-gnu-thread-multi/auto
  /usr/share/squeezeboxserver/CPAN/arch/5.8/i486-linux-gnu-thread-multi
  /usr/share/squeezeboxserver/CPAN/arch/5.8/i486-linux-gnu-thread-multi/auto
  /usr/share/squeezeboxserver/CPAN/arch/i486-linux-gnu-thread-multi
  /usr/share/squeezeboxserver/CPAN/arch/5.8
  /usr/share/squeezeboxserver/lib
  /usr/share/squeezeboxserver/CPAN
  /usr/share/squeezeboxserver
  /c/.squeezeboxserver
  /usr/share/squeezeboxserver/CPAN
  /usr/share/squeezeboxserver
  /usr/sbin
  /etc/perl
  /usr/local/lib/perl/5.8.8
  /usr/local/share/perl/5.8.8
  /usr/lib/perl5
  /usr/share/perl5
  /usr/lib/perl/5.8
  /usr/share/perl/5.8
  /usr/local/lib/site_perl
  .
  
  
  Loaded module: [version] ok!
  Loaded module: [Time::HiRes] ok!
  Loaded module: [DBI] ok!
  Loaded module: [EV] ok!
  Loaded module: [XML::Parser::Expat] ok!
  Loaded module: [HTML::Parser] ok!
  Loaded module: [JSON::XS] ok!
  Loaded module: [Digest::SHA1] ok!
  Loaded module: [YAML::XS] ok!
  Loaded module: [Sub::Name] ok!
  The following modules are loaded after the first attempt:
  attributes.pm => /usr/share/squeezeboxserver/CPAN/attributes.pm
  re.pm => /usr/lib/perl/5.8/re.pm
  Slim/Utils/OS/Debian.pm => /usr/share/perl5/Slim/Utils/OS/Debian.pm
  HTML/Parser.pm => /usr/share/squeezeboxserver/CPAN/HTML/Parser.pm
  File/Spec/Functions.pm => /usr/share/perl/5.8/File/Spec/Functions.pm
  List/Util.pm => /usr/lib/perl/5.8/List/Util.pm
  POSIX.pm => /usr/lib/perl/5.8/POSIX.pm
  /usr/lib/perl/5.8/auto/POSIX/load_imports.al => 
/usr/lib/perl/5.8/auto/POSIX/load_imports.al
  Getopt/Long.pm => /usr/share/perl/5.8/Getopt/Long.pm
  Cwd.pm => /usr/lib/perl/5.8/Cwd.pm
  warnings.pm => /usr/share/perl/5.8/warnings.pm
  YAML/XS.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS.pm
  Slim/Utils/OSDetect.pm => /usr/share/perl5/Slim/Utils/OSDetect.pm
  B.pm => /usr/lib/perl/5.8/B.pm
  Digest/base.pm => /usr/share/squeezeboxserver/CPAN/Digest/base.pm
  Slim/Utils/OS/Linux.pm => /usr/share/perl5/Slim/Utils/OS/Linux.pm
  Symbol.pm => /usr/share/perl/5.8/Symbol.pm
  Sub/Name.pm => /usr/share/squeezeboxserver/CPAN/Sub/Name.pm
  Scalar/Util.pm => /usr/lib/perl/5.8/Scalar/Util.pm
  UNIVERSAL.pm => /usr/share/perl/5.8/UNIVERSAL.pm
  Exporter.pm => /usr/share/perl/5.8/Exporter.pm
  Slim/Utils/OS.pm => /usr/share/perl5/Slim/Utils/OS.pm
  version/vpp.pm => /usr/share/squeezeboxserver/CPAN/arch/5.8/version/vpp.pm
  File/Spec.pm => /usr/share/perl/5.8/File/Spec.pm
  JSON/XS.pm => /usr/share/squeezeboxserver/CPAN/JSON/XS.pm
  File/Path.pm => /usr/share/perl/5.8/File/Path.pm
  /usr/lib/perl/5.8/auto/POSIX/autosplit.ix => 
/usr/lib/perl/5.8/auto/POSIX/autosplit.ix
  FindBin.pm => /usr/share/perl/5.8/FindBin.pm
  locale.pm => /usr/share/perl/5.8/locale.pm
  warnings/register.pm => /usr/share/perl/5.8/warnings/register.pm
  XSLoader.pm => /usr/lib/perl/5.8/XSLoader.pm
  Slim/bootstrap.pm => /usr/share/perl5/Slim/bootstrap.pm
  Digest/SHA1.pm => /usr/share/squeezeboxserver/CPAN/Digest/SHA1.pm
  Time/HiRes.pm => /usr/lib/perl/5.8/Time/HiRes.pm
  Slim/Utils/OS/ReadyNAS.pm => /usr/share/perl5/Slim/Utils/OS/ReadyNAS.pm
  XML/Parser/Expat.pm => /usr/share/squeezeboxserver/CPAN/XML/Parser/Expat.pm
  version.pm => /usr/share/squeezeboxserver/CPAN/arch/5.8/version.pm
  B/Deparse.pm => /usr/lib/perl/5.8/B/Deparse.pm
  DBI.pm => /usr/share/squeezeboxserver/CPAN/DBI.pm
  base.pm => /usr/share/perl/5.8/base.pm
  Config.pm => /usr/lib/perl/5.8/Config.pm
  File/Basename.pm => /usr/share/perl/5.8/File/Basename.pm
  EV.pm => /usr/share/squeezeboxserver/CPAN/EV.pm
  Carp.pm => /usr/share/perl/5.8/Carp.pm
  YAML/XS/LibYAML.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS/LibYAML.pm
  common/sense.pm => /usr/share/squeezeboxserver/CP

Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-26 Thread Michael Herger

I added the "--d_startup" to SLIMOPTIONS in
/etc/default/squeezeboxserver but the log file doesn't give me any more
information (it's still the exact same message).


Hmm... I'm not familiar with the ReadyNAS anymore... but you could try 
to run "/usr/sbin/squeezeboserver -d_startup" manually from the shell. 
That should give you all the errors that are not logged to server.log.


--

Michael
___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-25 Thread Pascal Hibon


mherger wrote: 
> > I thought I would upgrade LMS 7.9.1 to the latest 7.9.2. (date code
> > august 16 2019). This is on a ReadyNAS NVX.
> 
> Is this the x86 based model?
> 
> >2019-08-25 14:58:22 squeezeboxserver_safe started.
> >2019-08-25 14:58:37 Logitech Media Server died. Restarting.
> 
> Please edit /etc/default/squeezeboxserver and add "--d_startup" to the 
> SLIMOPTIONS. This should give you more information about the startup 
> failure.
> 
> -- 
> 
> Michael

Hi Michael,

Yes this is an x86 based NAS. 
I added the "--d_startup" to SLIMOPTIONS in
/etc/default/squeezeboxserver but the log file doesn't give me any more
information (it's still the exact same message).
I've looked in the log files that ReadyNAS provides and also in
c/.squeezeboxserver/log/sever.log. Both contain the same entries.
Anything else I can try?



'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon

Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-25 Thread Michael Herger

I thought I would upgrade LMS 7.9.1 to the latest 7.9.2. (date code
august 16 2019). This is on a ReadyNAS NVX.


Is this the x86 based model?


   2019-08-25 14:58:22 squeezeboxserver_safe started.
   2019-08-25 14:58:37 Logitech Media Server died. Restarting.


Please edit /etc/default/squeezeboxserver and add "--d_startup" to the 
SLIMOPTIONS. This should give you more information about the startup 
failure.


--

Michael
___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-25 Thread mrw


One reason known to me is that the log file cannot be written to, or its
directory doesn't exist, or somesuch. That might be worth checking,
although it seems unlikely to be the cause if all you did was a simple
upgrade.



mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


[SlimDevices: SqueezeCenter] LMS server dies at stratup

2019-08-25 Thread Pascal Hibon


Hi there,

I thought I would upgrade LMS 7.9.1 to the latest 7.9.2. (date code
august 16 2019). This is on a ReadyNAS NVX. 
The server is now in a continuous loop trying to start:


Code:


  2019-08-25 14:58:22 squeezeboxserver_safe started.
  2019-08-25 14:58:37 Logitech Media Server died. Restarting.
  2019-08-25 14:58:52 Logitech Media Server died. Restarting.
  2019-08-25 14:59:07 Logitech Media Server died. Restarting.
  2019-08-25 14:59:22 Logitech Media Server died. Restarting.
  2019-08-25 14:59:37 Logitech Media Server died. Restarting.
  2019-08-25 14:59:52 Logitech Media Server died. Restarting.
  2019-08-25 15:00:07 Logitech Media Server died. Restarting.
  2019-08-25 15:00:22 Logitech Media Server died. Restarting.
  2019-08-25 15:00:37 squeezeboxserver_safe stopped.
  2019-08-25 15:01:59 squeezeboxserver_safe started.
  2019-08-25 15:02:14 Logitech Media Server died. Restarting.
  2019-08-25 15:02:29 Logitech Media Server died. Restarting.
  2019-08-25 15:02:44 Logitech Media Server died. Restarting.
  2019-08-25 15:02:59 Logitech Media Server died. Restarting.
  2019-08-25 15:03:14 Logitech Media Server died. Restarting.
  2019-08-25 15:03:29 Logitech Media Server died. Restarting.
  




I tried the cleanup utility (delete preferences and delete the cache
folder etc) but this did not help.
Any idea how to recover from this issue? 

Thank you!



'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon

Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=110903

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter