Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Junior Member
    Join Date
    May 2020
    Posts
    5

    Logitech Media Server on Ubuntu 20.04

    I posted this already to askubuntu.com and the ubuntu forum but maybe it is of interest here too. I could not register to his forum when I succeeded solving my problem to post this guide here in the first place.

    I upgraded to Ubuntu 20.04 and that broke my installation but I figured out how to make it work again:

    After some tempering around, I considered to do a fresh install. So I deleted the old stuff in /var/lib/squeezeboxserver/

    Then I got me a fresh deb-packet from: http://downloads.slimdevices.com/nightly/?ver=8.0

    Personally I used the version for the most plattforms but depending on plattform just select a fitting deb:

    Code:
    wget http://downloads.slimdevices.com/nig...180193_all.deb
    I Installed it with:

    Code:
    dpkg -i logitechmediaserver_8.0.0_1588799628_all.deb
    As I tried older versions too and even tried a git checkout I hope I lack no detail another script has already done for me without noticing it.

    If the dpkg installation not already added a user and group please do so:

    Code:
    adduser squeezeboxserver
    usermod -a -G squeezeboxserver squeezeboxserver
    Create a directory for the pid file:

    Code:
    mkdir /var/run/logitechmediaserver
    And give it to that user and group:

    Code:
    chown squeezeboxserver:squeezeboxserver /var/run/logitechmediaserver
    Same goes for the stuff in /var/lib/squeezeboxserver/

    Code:
    chown squeezeboxserver:squeezeboxserver /var/lib/squeezeboxserver
    chown -R squeezeboxserver:squeezeboxserver /var/lib/squeezeboxserver/*
    The problem comes with the startup script in /etc/init.d. It simply does not work, as Ubuntu 20.04 does not have the start-stop-daemon any more. It is simply linked to /bin/true which might work for some scripts but does not work for the logitechmediaserver. I tried a C implementation for this program, but it had it hinges so I dropped the start-stop-daemon and modified the startup program arcordingly.

    Just store the old startup script away (just to be save) and paste the attachment into an editor of your choice on your server or simply copy it to your filesystem and remove that .txt postfix. Without it, I could not upload it.

    That script is not pretty, but it does the job for me and will hopefully help you too. You have to place it in /etc/init.d under the name logitechmediaserver

    After that you have to run the following command to make systemctl happy:

    Code:
    systemctl daemon-reload
    Just give it a test run with starting it:

    Code:
    /etc/init.d/logitechmediaserver start
    You should be able to log in with your webbrowser to http://YourServerIP:9000/ and configure it.

    logitechmediaserver.txt

    And test if it does shut down again:

    Code:
    /etc/init.d/logitechmediaserver stop
    When everything has worked out, enable the service:

    Code:
    systemctl enable logitechmediaserver.service

  2. #2
    Senior Member
    Join Date
    Oct 2013
    Posts
    143
    I plan to upgrade my Xubuntu 18.04LTS installations to 20.04 when the first point release is there, and my first impression when reading this thread is that it should be possible to install some compatibility packages to run applications / services with classic init scripts. Have you looked into this option?

    On a sidenote: in my opinion the time has come to seriously consider using LMS in a container when running it on regular Linux installations based upon Ubuntu f.e.. I know the community over here is already busy with it and although I know it is not ready for 'prime time' yet, I strongly think it is the way forward for LMS on that type of installations.
    Last edited by zordaz; 2020-05-13 at 03:04.
    Living Room: HifiBerry DAC+ Pro & piCorePlayer
    Attic: HifiBerry DAC+ RCA & piCorePlayer
    Other rooms: 6x SB Radio
    LMS: Version 8.1.x on Xubuntu 20.04LTS

  3. #3
    Member
    Join Date
    Nov 2011
    Location
    UK
    Posts
    93
    Thanks for posting. I am going to be doing an install on Ubuntu 20 soon, so it's helpful to know of the problem and a possible workaround.

  4. #4
    Junior Member
    Join Date
    May 2020
    Posts
    5
    Quote Originally Posted by zordaz View Post
    I plan to upgrade my Xubuntu 18.04LTS installations to 20.04 when the first point release is there, and my first impression when reading this thread is that it should be possible to install some compatibility packages to run applications / services with classic init scripts. Have you looked into this option?

    On a sidenote: in my opinion the time has come to seriously consider using LMS in a container when running it on regular Linux installations based upon Ubuntu f.e.. I know the community over here is already busy with it and although I know it is not ready for 'prime time' yet, I strongly think it is the way forward for LMS on that type of installations.
    I would bet, there will be a package available when you want to install. There are some packages for 18.04 and the maintainer did some customisation for ubuntu.

    Quote Originally Posted by tw99 View Post
    Thanks for posting. I am going to be doing an install on Ubuntu 20 soon, so it's helpful to know of the problem and a possible workaround.
    You are welcome. With a little bit of luck, somebody has then already included it into the repository.

  5. #5
    Senior Member
    Join Date
    Oct 2013
    Posts
    143
    Quote Originally Posted by tw99 View Post
    Thanks for posting. I am going to be doing an install on Ubuntu 20 soon, so it's helpful to know of the problem and a possible workaround.
    Tonight I have done an upgrade from Xubuntu 18.04 to 20.04 on one of my machines as a test. After the upgrade LMS 7.9.3 is still installable and running without issues or manual Linux configuration. It can also be started and stopped without problems. I haven't tested LMS 8.0.0.
    Living Room: HifiBerry DAC+ Pro & piCorePlayer
    Attic: HifiBerry DAC+ RCA & piCorePlayer
    Other rooms: 6x SB Radio
    LMS: Version 8.1.x on Xubuntu 20.04LTS

  6. #6
    Junior Member
    Join Date
    May 2020
    Posts
    5
    Quote Originally Posted by zordaz View Post
    Tonight I have done an upgrade from Xubuntu 18.04 to 20.04 on one of my machines as a test. After the upgrade LMS 7.9.3 is still installable and running without issues or manual Linux configuration. It can also be started and stopped without problems. I haven't tested LMS 8.0.0.
    Lucky you. Did not work for me. But the box is damn old. XP is still on another partition.

  7. #7
    Junior Member
    Join Date
    May 2020
    Posts
    5
    I found a small bug and corrected it. Nothing critical, but thrown an error and a wrong message.
    logitechmediaserver_NEW.txt

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

    Logitech Media Server on Ubuntu20.04

    > I found a small bug and corrected it. Nothing critical, but thrown an
    > error and a wrong message.


    Could you please provide a diff, and some explanation what issue you fixed?

    --

    Michael

  9. #9
    Quote Originally Posted by alex.h View Post
    I found a small bug and corrected it. Nothing critical, but thrown an error and a wrong message.
    logitechmediaserver_NEW.txt
    With this file, and the one before it, I can start logitechmediaserver but it shuts down every 5 seconds and spawns a new process.

    service logitechmediaserver stop -> stops and disables the web interface
    service logitechmediaserver start -> web interface runs

    However, due to the constant restarts, nothing works, not a single player (all upnp players) are found.

    px aux | grep logitechmediaserver or ps aux | grep squeeze doesn't show any other instances running

    Can't seem to fix this at all.

    Can anyone help me out?

    PS. This behavior is exactly what @alex.h tried to fix.

    thanks

    [20-07-09 00:00:05.4564] main::init (388) Starting Logitech Media Server (v8.0.0, 1592130094, Sun Jun 14 12:49:11 CEST 2020) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [20-07-09 00:00:05.5604] Slim::Networking::UDP::init (38) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
    [20-07-09 00:00:05.5607] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) a>
    2020-07-09 00:00:09 Logitech Media Server died. Restarting.
    [20-07-09 00:00:10.4555] main::init (388) Starting Logitech Media Server (v8.0.0, 1592130094, Sun Jun 14 12:49:11 CEST 2020) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [20-07-09 00:00:10.5600] Slim::Networking::UDP::init (38) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
    [20-07-09 00:00:10.5603] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) a>
    2020-07-09 00:00:14 Logitech Media Server died. Restarting.
    [20-07-09 00:00:15.4696] main::init (388) Starting Logitech Media Server (v8.0.0, 1592130094, Sun Jun 14 12:49:11 CEST 2020) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [20-07-09 00:00:15.5747] Slim::Networking::UDP::init (38) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
    [20-07-09 00:00:15.5750] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) a>
    2020-07-09 00:00:19 Logitech Media Server died. Restarting.
    [20-07-09 00:00:20.4584] main::init (388) Starting Logitech Media Server (v8.0.0, 1592130094, Sun Jun 14 12:49:11 CEST 2020) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [20-07-09 00:00:20.5615] Slim::Networking::UDP::init (38) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
    [20-07-09 00:00:20.5618] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) a>
    2020-07-09 00:00:24 Logitech Media Server died. Restarting.
    [20-07-09 00:00:25.4626] main::init (388) Starting Logitech Media Server (v8.0.0, 1592130094, Sun Jun 14 12:49:11 CEST 2020) perl 5.030000 - x86_64-linux-gnu-thread-multi
    [20-07-09 00:00:25.5661] Slim::Networking::UDP::init (38) FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use)
    [20-07-09 00:00:25.5664] Log::Log4perl::Logger::and_die (868) Warning: FATAL: There is already another copy of the Logitech Media Server running on this machine. (Address already in use) a>
    2020-07-09 00:00:29 Logitech Media Server died. Restarting.
    Last edited by TonioRoffo; 2020-07-09 at 01:12.

  10. #10
    Senior Member
    Join Date
    Sep 2017
    Location
    ┼kersberga, Sweden
    Posts
    118

    Any experience with LMS on Ubuntu 20.04.1 (LTS)?

    Now that Ubuntu has released the ".1" upgrade to 20.04, is there any experience on running LMS on this?
    I have read alex.h's excellent start script (linked in a post above) which explains that the start-stop-daemon is discontinued in 20.04 and I wonder if anything has changed since, such as incorporating alex-h's startscipt in LMS or someone has provided an update of the start-stop-daemon script in Ubuntu. Or some other solution.
    2 Touch, 2 Picoreplayer v6.1.0 on RaspBerry 3B
    LMS 8.2.0 on Debian 10 on Intel-NUC. All wired
    Main audio system: speakers Magnepan 3.6, amp "Gdis 400", DAC & pre: NAD M51, streamers: SB Touch // NAD M50

Tags for this Thread

Posting Permissions

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