Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Junior Member
    Join Date
    May 2022
    Posts
    2

    LMS Won't Start on Ubuntu 22.04

    Hi All,

    I've just installed LMS 8.2.0 on Ubuntu 22.04 from the Debian package (logitechmediaserver_8.2.0_amd64.deb) using the instructions from the Wiki (https://wiki.slimdevices.com/index.p...anPackage.html)

    The installation seems to have completed within any issues and when I run
    Code:
    sudo service logitechmediaserver start
    there appears to be no problem (it just returns to the command prompt after a moment). However, when I check
    Code:
    service --status-all
    I can see the LMS service is not running.

    The relevant output of
    Code:
    journalctl -u service-name.service -b
    shows:

    May 19 08:18:16 horse systemd[1]: Started Logitech Media Server.
    May 19 08:18:16 horse squeezeboxserver[2072]: The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Sub::Name
    May 19 08:18:16 horse squeezeboxserver[2072]: This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi
    May 19 08:18:16 horse squeezeboxserver[2072]: (with 50 registered patches, see perl -V for more detail)

    This would suggest there are some Perl module dependencies missing, however all of the modules named above are installed with their latest versions.

    I reviewed the another thread on LMS Ubuntu start up problems on this forum, but this doesn't seem to work for me (https://forums.slimdevices.com/showt...n-Ubuntu-20-04).

    Any suggestions on how else to try and troubleshoot this start-up issue would be most appreciated.

    Thanks in advance!

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    5,222
    From my memory (it was a while ago ) I installed LMS in Linux Mint on an old Shuttle computer.


    In a terminal

    Code:
    wget http://downloads.slimdevices.com/nightly/8.2/lms/fa05c7966aaf4a9f0a4a00451c4c31817fa85d80/logitechmediaserver_8.2.1~1652946838_amd64.deb
    then

    Code:
    sudo apt install -y ./logitechmediaserver.........[whatever is downloaded by the wget]
    hope that helps

    ronnie

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

    LMS Won't Start on Ubuntu 22.04

    > May 19 08:18:16 horse squeezeboxserver[2072]: This is perl 5, version
    > 34, subversion 0 (v5.34.0) built for x86_64-linux-gnu-thread-multi


    LMS 8.2.0 doesn't support Perl 5.34. I've back-ported the necessary
    changes from LMS 8.3.0. They should soon be available with the 8.2.1
    "nightly" build.

    Please check again in about an hour.

    https://downloads.slimdevices.com/nightly/?ver=8.2

  4. #4
    Junior Member
    Join Date
    May 2022
    Posts
    2
    Thanks so much for the prompt responses. I used Man in a Van's suggested approach and it seems to have solved the problem - the service runs now and I can access the web GUI

  5. #5
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Has this also been fixed in ARM? Because I am still getting this error regarding incompatible perl packages even in the 8.3 nightly.

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

    LMS Won't Start on Ubuntu 22.04

    > Has this also been fixed in ARM? Because I am still getting this error
    > regarding incompatible perl packages even in the 8.3 nightly.


    No, Perl 5.34 support currently is macOS and Linux/x86_64 only.

  7. #7
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Quote Originally Posted by mherger View Post
    > No, Perl 5.34 support currently is macOS and Linux/x86_64 only.
    I see, thank you. That explains my difficulties. I guess I shall have to retreat back to 21.10 for the moment. Any ETA for ARM (I guess I particularly need ARM64, in case it matters) 5.34 support?

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

    LMS Won't Start on Ubuntu 22.04

    > I see, thank you. That explains my difficulties. I guess I shall have to
    > retreat back to 21.10 for the moment. Any ETA for ARM (I guess I
    > particularly need ARM64, in case it matters) 5.34 support?


    It should be straight forward to build the necessary binaries yourself.
    See https://github.com/Logitech/slimserv...ublic/8.3/CPAN

  9. #9
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Quote Originally Posted by mherger View Post
    >
    It should be straight forward to build the necessary binaries yourself.
    See https://github.com/Logitech/slimserv...ublic/8.3/CPAN
    Well, it took a pretty long time (30-40 minutes maybe?), but somewhat to my surprise it worked! Excellent. I now have LMS running on 22.04. Thank you.

    In case anyone else wants to try, here's what I did:
    Code:
    # I used this to find out where the CPAN files need to be installed
    dpkg -L logitechmediaserver
    # According to the directions everything under build/arch/ should be copied to
    # /usr/share/squeezeboxserver/CPAN/arch
    # Pull the repo
    sudo aptitude install git
    git clone https://github.com/Logitech/slimserver-vendor
    cd slimserver-vendor/
    # We should be already on 8.3
    git branch -a
    cd CPAN
    # Many build tools are not installed by default
    sudo aptitude install gcc g++ rsync make nasm libz-dev
    ./buildme.sh 
    # It takes a long time
    sudo cp -r build/arch/* /usr/share/squeezeboxserver/CPAN/arch
    sudo service logitechmediaserver start

  10. #10
    Senior Member
    Join Date
    Dec 2020
    Posts
    273
    DBI, EV and JSON::XS are fairly common modules. The reason that LMS fails is that your system has these modules installed because some other app required them but they also exist in LMS as a different version. Due to the search path order LMS will find its own version of the .pm file first while Perl's module loader will grab the associated .so (or .dll on Windows) library file from the Perl system path first and that doesn't work.

    The solution is somewhat drastic, but LMS really does not rely on any specific version of these modules, except DBIx but those modules do not have any .so files associated with them. So to fix, simply delete all duplicates inside the LMS folders (obviously, if you delete them from the system folders the other apps will seize to work) but keep everything that has DBIx in its name/path.

Posting Permissions

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