Upgraded from 7.9.1 => 7.9.4: Logitech Media Server died. Restarting.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mps
    Senior Member
    • Feb 2010
    • 404

    Upgraded from 7.9.1 => 7.9.4: Logitech Media Server died. Restarting.

    > I am just not familiar enough with those little animals Raspberries and
    > all PiCo to know what to buy


    Pi4/2GB

    > and install...




    :-)

    If you can update the NAS to some new OS, then you can handle pCP easily!

    --

    Michael
  • mps
    Senior Member
    • Feb 2010
    • 404

    #2
    Upgraded from 7.9.1 => 7.9.4: Logitech Media Server died. Restarting.

    I just upgraded my ReadyNas Pro Logitech Media Server from 7.9.1 => 7.9.4, and it no longer starts

    slimserver.log just keeps repeating " Logitech Media Server died. Restarting."

    I tried manually running /usr/sbin/squeezeboxserver and immediately get a segmentation fault.

    I am using perl 5.8.8.

    Any help in making sense of the above and getting it running again would be greatly appreciated.

    Thanks,
    Mike

    Comment

    • mps
      Senior Member
      • Feb 2010
      • 404

      #3
      A small update. Following the advice in https://forums.slimdevices.com/showt...AS-Ultra/page2, I set SLIMOPTIONS to --d_startup with absolutely no change in behavior

      Comment

      • mherger
        Babelfish's Best Boy
        • Apr 2005
        • 24099

        #4
        Upgraded from 7.9.1 => 7.9.4:Logitech Media Server died. Restarting.

        > A small update. Following the advice in
        > https://forums.slimdevices.com/showt...AS-Ultra/page2,
        > I set SLIMOPTIONS to --d_startup with absolutely no change in behavior


        That option wouldn't change any of the behaviour, except for the
        logging. Could you please check your server.log for any new hint about
        the crash? I must assume there's a problem with one of the binary perl
        modules. Alas, I haven't updated them for 5.8 AFAIK. Therefore a hint
        from the log would be great.

        --

        Michael
        Michael

        "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
        (LMS: Settings/Information)

        Comment

        • mps
          Senior Member
          • Feb 2010
          • 404

          #5
          Thanks for responding, Michael. Unfortunately, the log is also the same
          Code:
          prairie:/etc/frontview/addons/bin/SQUEEZEBOX# cat /c/.squeezeboxserver/log/server.log
          2020-11-21 00:30:05 squeezeboxserver_safe started.
          2020-11-21 00:30:20 Logitech Media Server died. Restarting.
          Did any binary modules change between 7.9.1 and 7.9.4?

          Comment

          • mherger
            Babelfish's Best Boy
            • Apr 2005
            • 24099

            #6
            Upgraded from 7.9.1 => 7.9.4:Logitech Media Server died. Restarting.

            > Thanks for responding, Michael. Unfortunately, the log is also the same

            Hmm... what if you run the server directly as you tried before? With the
            additional --d_startup parameter?

            > Did any binary modules change between 7.9.1 and 7.9.4?


            No! That's exactly why I'm utterly confused, why I'd like to understand
            where it crashes.

            --

            Michael
            Michael

            "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
            (LMS: Settings/Information)

            Comment

            • mps
              Senior Member
              • Feb 2010
              • 404

              #7
              Originally posted by mherger
              > Thanks for responding, Michael. Unfortunately, the log is also the same

              Hmm... what if you run the server directly as you tried before? With the
              additional --d_startup parameter?
              Still segfaults...

              Comment

              • mherger
                Babelfish's Best Boy
                • Apr 2005
                • 24099

                #8
                Upgraded from 7.9.1 => 7.9.4:Logitech Media Server died. Restarting.

                >>> Thanks for responding, Michael. Unfortunately, the log is also the
                >> same
                >>
                >> Hmm... what if you run the server directly as you tried before? With the
                >>
                >> additional --d_startup parameter?
                >>

                > Still segfaults...


                Sure, but still no additional output?!? Can you paste the full command
                as you entered it, with all its output?

                --

                Michael
                Michael

                "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                (LMS: Settings/Information)

                Comment

                • mps
                  Senior Member
                  • Feb 2010
                  • 404

                  #9
                  Originally posted by mherger
                  >>> Thanks for responding, Michael. Unfortunately, the log is also the[color=blue][color=green]


                  Sure, but still no additional output?!? Can you paste the full command
                  as you entered it, with all its output?

                  Michael
                  Code:
                  prairie:/etc/frontview/addons/bin/SQUEEZEBOX# /usr/sbin/squeezeboxserver --prefsdir /c/.squeezeboxserver/prefs --logdir /c/.squeezeboxserver/log --cachedir /c/.squeezeboxserver/cache
                  Segmentation fault
                  However, note that I changed SLIMOPTIONS in /etc/init.d/squeezeboxserver, so that change wouldn't be picked up if I run /usr/sbin/squeezeboxserver directly...

                  Comment

                  • mherger
                    Babelfish's Best Boy
                    • Apr 2005
                    • 24099

                    #10
                    Exactly. Please add —d_startup on the command line, too.
                    Michael

                    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                    (LMS: Settings/Information)

                    Comment

                    • mps
                      Senior Member
                      • Feb 2010
                      • 404

                      #11
                      Thanks, Michael. Now we're getting somewhere
                      Code:
                      prairie:/etc/frontview/addons/bin/SQUEEZEBOX# /usr/sbin/squeezeboxserver --prefsdir /c/.squeezeboxserver/prefs --logdir /c/.squeezeboxserver/log --cachedir /c/.squeezeboxserver/cache  --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/local/lib/perl/5.8.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/local/lib/perl/5.8.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/local/lib/perl/5.8.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/CPAN/common/sense.pm
                              File/Spec/Unix.pm => /usr/local/lib/perl/5.8.8/File/Spec/Unix.pm
                              Exporter/Heavy.pm => /usr/share/perl/5.8/Exporter/Heavy.pm
                              vars.pm => /usr/share/perl/5.8/vars.pm
                              strict.pm => /usr/share/perl/5.8/strict.pm
                              constant.pm => /usr/share/perl/5.8/constant.pm
                              Config_heavy.pl => /usr/lib/perl/5.8/Config_heavy.pl
                              overload.pm => /usr/share/perl/5.8/overload.pm
                              AutoLoader.pm => /usr/share/perl/5.8/AutoLoader.pm
                              HTML/Entities.pm => /usr/share/squeezeboxserver/CPAN/HTML/Entities.pm
                              lib.pm => /usr/lib/perl/5.8/lib.pm
                              Slim/Utils/OS/Unix.pm => /usr/share/perl5/Slim/Utils/OS/Unix.pm
                              DynaLoader.pm => /usr/lib/perl/5.8/DynaLoader.pm
                      
                      The following modules are loaded after the second 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/local/lib/perl/5.8.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/local/lib/perl/5.8.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/local/lib/perl/5.8.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/CPAN/common/sense.pm
                              File/Spec/Unix.pm => /usr/local/lib/perl/5.8.8/File/Spec/Unix.pm
                              Exporter/Heavy.pm => /usr/share/perl/5.8/Exporter/Heavy.pm
                              vars.pm => /usr/share/perl/5.8/vars.pm
                              strict.pm => /usr/share/perl/5.8/strict.pm
                              constant.pm => /usr/share/perl/5.8/constant.pm
                              Config_heavy.pl => /usr/lib/perl/5.8/Config_heavy.pl
                              overload.pm => /usr/share/perl/5.8/overload.pm
                              AutoLoader.pm => /usr/share/perl/5.8/AutoLoader.pm
                              HTML/Entities.pm => /usr/share/squeezeboxserver/CPAN/HTML/Entities.pm
                              lib.pm => /usr/lib/perl/5.8/lib.pm
                              Slim/Utils/OS/Unix.pm => /usr/share/perl5/Slim/Utils/OS/Unix.pm
                              DynaLoader.pm => /usr/lib/perl/5.8/DynaLoader.pm
                      
                      Segmentation fault

                      Comment

                      • mherger
                        Babelfish's Best Boy
                        • Apr 2005
                        • 24099

                        #12
                        Upgraded from 7.9.1 => 7.9.4:Logitech Media Server died. Restarting.

                        > The following modules are loaded after the second attempt:
                        > .....
                        > Segmentation fault


                        Ok, you seem to feel comfortable on the command line. What we see here
                        is that you get pretty far in the bootstrap process. The above line
                        comes from:



                        Could you please add a bunch of "print" statements after this, to see
                        where it exits? Eg. before each of the following "if" statements and
                        right at the end of the "loadModules" section. Then re-run to see how
                        far we get in there.

                        The file should be in /usr/share/squeezeboxserver/Slim/bootstrap.pm or similar.

                        --

                        Michael
                        Last edited by mherger; 2020-11-21, 08:29.
                        Michael

                        "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                        (LMS: Settings/Information)

                        Comment

                        • mps
                          Senior Member
                          • Feb 2010
                          • 404

                          #13
                          Thanks, Michael. It segfaults in https://github.com/Logitech/slimserv...tstrap.pm#L257
                          Code:
                                  $SIG{'PIPE'} = 'IGNORE';

                          Comment

                          • mps
                            Senior Member
                            • Feb 2010
                            • 404

                            #14
                            Oops! That wasn't the line that was crashing! Since I was printing to stdout, the output was buffered and not necessarily printed before the crash. Changing my print statement to print STDERR shows that I get all the way to the end of loadModules. I will push forward to find the actual segfaulting line.

                            Comment

                            • mps
                              Senior Member
                              • Feb 2010
                              • 404

                              #15
                              Hmm, it successfully gets to the end of the BEGIN block that calls loadModule, do you have any ideas where to print next?

                              In case it's useful, here's a gdb stacktrace of the segv, but there is no symbol table info, so I can't do anything like "info locals"
                              Code:
                              Program received signal SIGSEGV, Segmentation fault.
                              [Switching to Thread -144542032 (LWP 10363)]
                              0x000000ff in ?? ()
                              (gdb) t
                              [Current thread is 2 (Thread -144542032 (LWP 10363))]
                              (gdb) backtrace
                              #0  0x000000ff in ?? ()
                              #1  0x080bdaa1 in Perl_pp_entersub ()
                              #2  0x080bc379 in Perl_runops_standard ()
                              #3  0x080626be in Perl_magicname ()
                              #4  0x080632ee in Perl_call_sv ()
                              #5  0x0806360e in Perl_call_list ()
                              #6  0x08097bef in Perl_newATTRSUB ()
                              #7  0x08087d7d in Perl_yyparse ()
                              #8  0x080ebd7e in Perl_pp_range ()
                              #9  0x080edabb in Perl_pp_require ()
                              #10 0x080bc379 in Perl_runops_standard ()
                              #11 0x080626be in Perl_magicname ()
                              #12 0x080632ee in Perl_call_sv ()
                              #13 0x0806360e in Perl_call_list ()
                              #14 0x08097bef in Perl_newATTRSUB ()
                              #15 0x080960fb in Perl_utilize ()
                              #16 0x08087413 in Perl_yyparse ()
                              #17 0x080ebd7e in Perl_pp_range ()
                              #18 0x080edabb in Perl_pp_require ()
                              #19 0x080bc379 in Perl_runops_standard ()
                              #20 0x080626be in Perl_magicname ()
                              #21 0x080632ee in Perl_call_sv ()
                              #22 0x0806360e in Perl_call_list ()
                              #23 0x08097bef in Perl_newATTRSUB ()
                              #24 0x080960fb in Perl_utilize ()
                              #25 0x08087413 in Perl_yyparse ()
                              #26 0x080ebd7e in Perl_pp_range ()
                              #27 0x080edabb in Perl_pp_require ()
                              #28 0x080bc379 in Perl_runops_standard ()
                              #29 0x080626be in Perl_magicname ()
                              #30 0x080632ee in Perl_call_sv ()
                              #31 0x0806360e in Perl_call_list ()
                              #32 0x08097bef in Perl_newATTRSUB ()
                              #33 0x080960fb in Perl_utilize ()
                              #34 0x08087413 in Perl_yyparse ()
                              #35 0x08066381 in perl_free ()
                              #36 0x080671cc in perl_parse ()
                              #37 0x0805ff72 in main ()
                              Any suggestions?

                              Comment

                              Working...