Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Upgrading LMS

  1. #1

    Upgrading LMS

    Hi,

    Since the version of LMS running on my server (Fedora 23...) is apparently too old to support the new Materials skin, I wanted to upgrade.

    So I downloaded the latest nightly build and tested the update. It failed:

    $rpm -Uvh --test logitechmediaserver-7.9.2-0.1.1543258616.noarch.rpm
    Preparing... ################################# [100%]
    package logitechmediaserver-1:7.9.0-0.126.20160422git1461319207.fc23.noarch (which is newer than logitechmediaserver-7.9.2-0.1.1543258616.noarch) is already installed

    followed by a bunch of conflicts.

    How can the 2 year old installed version be newer than the latest nightly?

  2. #2
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,831
    Always start with making a backup

    then find your perl version

    find the matching lms here
    http://wiki.slimdevices.com/index.ph..._Perl_Versions

    upgrade perl
    http://rpm.pbone.net/index.php3?stat...srodzaj=3&dist[]=100

  3. #3
    Quote Originally Posted by DJanGo View Post
    Always start with making a backup

    then find your perl version

    find the matching lms here
    http://wiki.slimdevices.com/index.ph..._Perl_Versions

    upgrade perl
    http://rpm.pbone.net/index.php3?stat...srodzaj=3&dist[]=100

    Thanks.

    My perl version is:
    $ perl -v|grep 5
    This is perl 5, version 22, subversion 2 (v5.22.2) built for x86_64-linux-thread-multi

    That seems to be OK for 7.9.2
    Your link refers to a Debian install. Is there also some documentation available for Fedora?

  4. #4
    Senior Member
    Join Date
    Sep 2005
    Posts
    2,831
    Quote Originally Posted by baggins View Post
    Your link refers to a Debian install. Is there also some documentation available for Fedora?
    After you fiddle that out - the wiki would be proud of having a fedora Howto like the Debian one ;-)

  5. #5
    Quote Originally Posted by DJanGo View Post
    After you fiddle that out - the wiki would be proud of having a fedora Howto like the Debian one ;-)
    Well actually, two years ago I fiddled that out when I installed LMS, totally unaware of the perl hassles. It was only later that I realised there were some issues with perl and possibly other stuff.
    Unfortunately I have no idea anymore what I did then...
    That is in fact the reason why that server is still running F23. I disabled all updates in order to avoid breaking LMS...

    So it looks like I would have to do a forced update of the rpm package...

    On the other hand, I also downloaded the tarball and gave that a try on another machine without issues. So I could use that instead. I only wonder how upgrades are done then...

  6. #6
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,277

    New perl versions.

    Hi all,
    Can anyone remind me the process for rebuilding LMS for a new perl release? I wound up with perl 5.28.1 while trying to get something else working on my i386 server and even the latest nightlies don't seem to support it yet ..
    I downloaded from here http://downloads.slimdevices.com/nightly/?ver=7.9
    Cheers!
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

  7. #7
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,277
    Well, I found the slimserver-vendor CPAN git libraries and ran "buildme.sh" and tried to copy in the arch/5.28/i686-.. folder to the base /usr/lib/squeezeboxserver/CPAN/arch folder.
    This works to a point, as root I get this:

    # /usr/sbin/squeezeboxserver
    [19-05-11 15:30:22.6350] main::init (387) Starting Logitech Media Server (v7.9.2, 1557550305, Sat May 11 07:16:51 CEST 2019) perl 5.028001 - i686-linux-gnu-thread-multi-64int
    [19-05-11 15:30:22.6386] main::changeEffectiveUserAndGroup (1004) Warning: Logitech Media Server must not be run as root! Trying user squeezeboxserver instead.
    [19-05-11 15:30:22.6435] Slim::Utils::PluginManager::init (74) Failed to load plugin downloader: Can't locate Slim/Utils/PluginDownloader.pm: /usr/share/squeezeboxserver/CPAN/arch/5.28/i686-linux-gnu-thread-multi-64int/Slim/Utils/PluginDownloader.pm: Permission denied at /usr/share/perl5/Slim/Utils/PluginManager.pm line 69.
    [19-05-11 15:30:22.7067] main::init (513) Warning: Can't locate Slim/Networking/SqueezeNetwork.pm: /usr/share/squeezeboxserver/CPAN/arch/5.28/i686-linux-gnu-thread-multi-64int/Slim/Networking/SqueezeNetwork.pm: Permission denied at /usr/sbin/squeezeboxserver line 513.


    .. so it compiled as root, but when running as "squeezeboxserver" it's falling over because of really odd permissions down the /usr/share/perl5/Slim tree.

    Still looking at this now.

    .. So I missed some permissions opening when I copied the arch/i686 tree in, so I've fixed that now but I'm still getting issues because perl is looking in /usr/local/share instead of /usr/share ..

    This is going round in circles, gah.

    # /usr/sbin/squeezeboxserver
    [19-05-11 15:54:11.3192] main::init (387) Starting Logitech Media Server (v7.9.2, 1557550305, Sat May 11 07:16:51 CEST 2019) perl 5.028001 - i686-linux-gnu-thread-multi-64int
    [19-05-11 15:54:11.3220] main::changeEffectiveUserAndGroup (1004) Warning: Logitech Media Server must not be run as root! Trying user squeezeboxserver instead.
    [19-05-11 15:54:11.4430] Slim::Schema::throw_exception (302) Error: Can't locate File/Copy.pm: /usr/local/lib/i386-linux-gnu/perl/5.28.1/File/Copy.pm: Permission denied at /usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/SQLite.pm line 10.
    BEGIN failed--compilation aborted at /usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/SQLite.pm line 10.
    Compilation failed in require at (eval 683) line 1.
    BEGIN failed--compilation aborted at (eval 683) line 1.
    BEGIN failed--compilation aborted at /usr/share/perl5/Slim/Schema/Storage.pm line 26.
    Compilation failed in require at /usr/share/squeezeboxserver/CPAN/Class/C3/Componentised.pm line 128.
    [19-05-11 15:54:11.4432] Slim::Schema::throw_exception (302) Backtrace:

    frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema.pm line 302)
    frame 1: Slim::Schema::throw_exception (/usr/share/squeezeboxserver/CPAN/Class/C3/Componentised.pm line 131)
    frame 2: Class::C3::Componentised::ensure_class_loaded (/usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 817)
    frame 3: (eval) (/usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 817)
    frame 4: DBIx::Class::Schema::connection (/usr/share/perl5/Slim/Schema.pm line 283)
    frame 5: Slim::Schema::_connect (/usr/share/perl5/Slim/Schema.pm line 130)
    frame 6: Slim::Schema::init (/usr/sbin/squeezeboxserver line 552)
    frame 7: main::init (/usr/sbin/squeezeboxserver line 675)
    frame 8: main::main (/usr/sbin/squeezeboxserver line 1213)

    [19-05-11 15:54:11.4434] DBIx::Class::Schema::connection (821) Warning: Can't locate object method "new" via package "Slim::Schema::Storage" at /usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 821.

    Yuck, I think my perl setup is hosed.
    Last edited by drmatt; 2019-05-11 at 07:57.
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

  8. #8
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,234

    Upgrading LMS

    > .. so it compiled as root, but when running as "squeezeboxserver" it's
    > falling over because of really odd permissions down the
    > /usr/share/perl5/Slim tree.


    chmod -R a+r /usr/share/perl5/Slim


    --

    Michael

  9. #9
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,277
    More perl nonsense:

    # /usr/sbin/squeezeboxserver
    [19-05-11 16:28:27.5680] main::init (387) Starting Logitech Media Server (v7.9.2, 1557550305, Sat May 11 07:16:51 CEST 2019) perl 5.028001 - i686-linux-gnu-thread-multi-64int
    [19-05-11 16:28:27.5709] main::changeEffectiveUserAndGroup (1004) Warning: Logitech Media Server must not be run as root! Trying user squeezeboxserver instead.
    [19-05-11 16:28:27.6900] Slim::Schema::throw_exception (302) Error: Can't locate File/Copy.pm: /usr/local/lib/i386-linux-gnu/perl/5.28.1/File/Copy.pm: Permission denied at /usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/SQLite.pm line 10.
    BEGIN failed--compilation aborted at /usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI/SQLite.pm line 10.
    Compilation failed in require at (eval 683) line 1.
    BEGIN failed--compilation aborted at (eval 683) line 1.
    BEGIN failed--compilation aborted at /usr/share/perl5/Slim/Schema/Storage.pm line 26.
    Compilation failed in require at /usr/share/squeezeboxserver/CPAN/Class/C3/Componentised.pm line 128.
    [19-05-11 16:28:27.6903] Slim::Schema::throw_exception (302) Backtrace:

    frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema.pm line 302)
    frame 1: Slim::Schema::throw_exception (/usr/share/squeezeboxserver/CPAN/Class/C3/Componentised.pm line 131)
    frame 2: Class::C3::Componentised::ensure_class_loaded (/usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 817)
    frame 3: (eval) (/usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 817)
    frame 4: DBIx::Class::Schema::connection (/usr/share/perl5/Slim/Schema.pm line 283)
    frame 5: Slim::Schema::_connect (/usr/share/perl5/Slim/Schema.pm line 130)
    frame 6: Slim::Schema::init (/usr/sbin/squeezeboxserver line 552)
    frame 7: main::init (/usr/sbin/squeezeboxserver line 675)
    frame 8: main::main (/usr/sbin/squeezeboxserver line 1213)

    [19-05-11 16:28:27.6905] DBIx::Class::Schema::connection (821) Warning: Can't locate object method "new" via package "Slim::Schema::Storage" at /usr/share/squeezeboxserver/lib/DBIx/Class/Schema.pm line 821.

    I'm somewhat confused about the "Permission denied" error, and I suspect this means it's not able to locate "File/Copy.pm", not that it's actually unable to read it. Strange thing here is that File/Copy.pm does exist in the standard perl @INC path but it's not loading for some reason that I can't currently see.

    e.g.:

    perl -V
    ...
    @INC:
    /etc/perl
    /usr/local/lib/i386-linux-gnu/perl/5.28.1
    /usr/local/share/perl/5.28.1
    /usr/lib/i386-linux-gnu/perl5/5.28
    /usr/share/perl5
    /usr/lib/i386-linux-gnu/perl/5.28
    /usr/share/perl/5.28
    /usr/local/lib/site_perl
    /usr/lib/i386-linux-gnu/perl-base

    And this runs fine:
    # perl -e "use File::Copy"

    .. and yet the squeezeboxserver doesn't seem to be able to load it.
    Last edited by drmatt; 2019-05-11 at 08:32.
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

  10. #10
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,277
    Yuck. Well, LMS has started, but I'm not happy about the mess of perl modules all over my box (well, this OS was built nearly 20 years ago and upgraded ever since, I guess it's time to do a reinstall!), and it looks like I need to reinstall the skin to get the webserver interface looking nice again after the LMS upgrade.

    So, I kinda trust Debian to do upgrades that keep *debian* alive, but I'd have to admit there's more and more anciliaries that break each time I do it ..!

    FWIW I think that due to some set-gid permissions in some of the CPAN-derived perl module trees the squeezebox server ID wasn't able to even enumerate the contents of some folders, so it was failing to search the rest of the @INC path for the modules. Now that I've fixed the permissions around the place it's able to resolve its modules correctly again and the server does now appear to be running. I've lost all my Plugins though..!
    Last edited by drmatt; 2019-05-11 at 09:01.
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

Posting Permissions

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