SOLVED: volumio & Logitech Media Server on RasPi parallel

Get help for Volumio here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

SOLVED: volumio & Logitech Media Server on RasPi parallel

Postby BlackSenator » Wed May 03 2017 09:26

Hello,

I had reported in the Squeezebox forum that I gave up to operate Logitech Media Server (LMS) on a MyBook Live Duo and instead moved with it to a Raspberry Pi with a already installed volumio.

Unfortunately my enthusiasm was rash.

System:
A) Raspberry Pi 1 Model B + with 8 GB SD
B) volumio 2.141 runs stable
C) NAS WD MyBook Live Duo with 4 GB Raid1 neatly mounted
D) 66K plus x music files on NAS

Findings:
1. The installation of the LMS 7.9.0 was easy and the volumio instance showed no interdependencies
2. LMS was running likewise stable
3. The media scan in LMS, which drove me crazy on the MBDL, ran successfully and initially took about 8h
4. some additional scans - manual started - done a good job

Everything looked fine - so far so good...

Then a reboot was required (reducing the amount of plugins in LMS).
volumio came back as exspected and without any faults. But...
... I could no longer reach LMS via port 9000. So no Web-UI - no connection of my Squeezebox Radio to this dedicated server!

I have since completely reinstalled LMS several times and tried out various hints from the www - but always it ends with the described behavior:
After a restart of the RasbPi, the port 9000 is no longer active.

The LM server is definitely running (ps aux | grep squeeze), but the port 9000 is "dead" (netstat)
All attempts with tips on similar constellation do not lead to success.

Yes fourtunatly - I could install LMS on a RasbPi of it´s own - but I like the idea to use sytems (like the MBLD or RasbPi) which are already in service.
Any help is appreciated!

Regards

Black Senator
Last edited by BlackSenator on Wed Aug 16 2017 20:03, edited 1 time in total.
User avatar
BlackSenator
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Mon Jan 05 2015 20:13
Location: Region Hannover

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


volumio & Logitech Media Server on Raspberry Pi parallel

Postby BlackSenator » Fri May 12 2017 21:14

Since no one has answered here, I have helped myself.

To solve the problem, I thought it would be useful to have an installation on RasbPi without Volumio - for comparison.

I still had a RasbPi in stock and therefore simply installed the current version Rasbian. After the necessary basic configuration (language, time, memory usage, keyboard and fixed IP) I installed LMS 7.9.0 and ...
it runs stable and clean.
After some attempts I have also integrated my music library on the NAS via mount e.g. fstab entry and an additional cache directory on the NAS with. The LMS music database moves to this cache next, so that read / write operations on the SD card remain as low as possible.

Thus, I have created a reference system and can now compare this to the corrupt LMS installation on Volumio-Distro.

I would be very helpfull if someone of the experts here give me some hints what volumio is doing via (re)start/reboot that killed a befor stable installed LMS instance.


Regards


Black Senator
User avatar
BlackSenator
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Mon Jan 05 2015 20:13
Location: Region Hannover


volumio & Logitech Media Server on Raspberry Pi parallel

Postby michelangelo » Mon May 15 2017 14:07

I am not LMS expert at all.
My guess is this:
LMS start BEFORE network is initialized by Volumio, therefore it will not be reachable from the outside.

To confirm this, after Volumio has started, just restart LMS and see if that works.

From there, we will see how to fix it
User avatar
michelangelo
Founder
 
Posts: 4071
Joined: Sun Dec 15 2013 23:18


volumio & Logitech Media Server on Raspberry Pi parallel

Postby BlackSenator » Wed May 17 2017 06:56

Dear Michelangelo,

thanks very much for reply and suggestions. But ...

... I tried to restart/reboot des LMS Server "a hundred times" but it´s not starting again.

As I wrote before:
1. The installation of the LMS 7.9.0 shows no interdependencies to the volumio instance (and initially vice versa)
2. LMS was running stable after installation and was scaning my media initially (after that even some additional scans - manual started - done a good job)
3. Then a reboot was required
4. volumio came back stable and shows no interdependecies, but ...
4. I could no longer reach the LMS (via port 9000). So no Web-UI and no connection of my Squeezebox Radio to this dedicated server as befor!
5. The LM server is definitely running (check via: ps aux | grep squeeze), but the port 9000 is "dead" (check via: netstat -> shows no activ port 900* any more)

I have since completely reinstalled LMS several times and tried out various hints from the www - but always it ends with the described behavior:
After a restart/reboot of the RasbPi, the LMS e.g. port 9000 is no longer active.

So my only conclusion is: after a reboot/restart of the device, the volumio instance is changing something during starting procedure, what kills/corrupt the LMS.

I´m at my wits end :(


Regards

Black Senator
User avatar
BlackSenator
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Mon Jan 05 2015 20:13
Location: Region Hannover


PLEASE HELP!

Postby BlackSenator » Thu Jun 08 2017 07:16

Dear all!

isn´t there anybody how has the same configuration and/or problem? Or someone how can give a hint.

The described problem still exists. I have now made the update on 2.185 and installed the Logitech Media Server (LMS) again several times. After a reboot/restart of the system (Raspi), LMS does not start anymore.

As long as I do not reboot/restart volumio I can switch off LMS and on again
Code: Select all
sudo service logitechmediaservice stop
sudo service logitechmediaservice start

and everything is still fine...

After one of the installations I have saved all directories of the LMS installation*. After a reboot and usual fail of LMS I copied them one by one back to the original places, to find out where the reboot has made a change. But with no success! LMS did not start.
If I instead install LMS (over the corrupt version) it came back to life - until the next reboot...

I would be very happy if someone "with enough light on the bike" could help me!


Regards

Black Senator


*
/etc/squeezeboxserver
/usr/share/squeezeboxserver
/usr/share/perl5/Slim
/var/lib/squeezeboxserver
User avatar
BlackSenator
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Mon Jan 05 2015 20:13
Location: Region Hannover


volumio & Logitech Media Server on Raspberry Pi parallel

Postby chsims1 » Thu Jun 08 2017 07:59

I'm sorry that you are having problems, but people (on the forum) are not familiar with the operation of LMS. This is always a potential problem when using unsupported software alongside Volumio. Perhaps you could ask on their forums? Please do report back if you manage to solve it.
New to Volumio? Please read the Quick Start Guide to get your system up and running :). FAQs? PM me if you want one adding.
User avatar
chsims1
Moderator
 
Posts: 1682
Joined: Sat Aug 02 2014 10:44
Location: East Yorkshire, UK


volumio & Logitech Media Server on Raspberry Pi parallel

Postby obrienk » Sun Aug 13 2017 12:40

Hi,

I just successfully installed Logitech Media Server on my Volumio Raspberry Pi, so thought I'd update this thread.

The basic problem I believe you're having is nothing to do with ports, but rather that LMS will fail to start if it cannot open its log files at startup. It uses the location /var/log/squeezeboxserver which is a directory created at installation time. Unfortunately on Raspbian this directory is in a temporary in-memory space (to save wear and tear on your sd card) so is wiped out after each reboot. To fix this we need to tell raspbian to re-create the directory after each reboot.

Here's the whole process to install Logitech Media Server (since this page is the first link that popped up when I googled for "Install Logitech Media Server on Volumio"

Log into the command prompt on your volumio box. Then type the following (pressing enter at the end of each line):

(this first bit is taken form Logitechs own info page: http://wiki.slimdevices.com/index.php/Debian_Package#installing_7.9.0)

Code: Select all
url="http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=deb"
latest_lms=$(wget -q -O - "$url")
mkdir -p /sources
cd /sources
wget $latest_lms
lms_deb=${latest_lms##*/}
sudo dpkg -i $lms_deb


That's the server installed, and it should be running fine if you point your browser at http://volumio:9000 (this may not be the correct address for your own server)

Next we need to re-create the temp directory each time:

Code: Select all
sudo nano /etc/rc.local


Now insert the next three lines just before the 'exit 0' line

Code: Select all
mkdir /var/log/squeezeboxserver/
chown squeezeboxserver /var/log/squeezeboxserver/
chmod 775 /var/log/squeezeboxserver/

exit 0



Then press Ctrl+X, and Y to save.

Code: Select all
sudo reboot


Once the system is back up Logitech Media Server should start normally. There may be a more correct way to re-create this directory, but this works for me.

Hope that helps!
Karl.
Random avatar
obrienk
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Sun Aug 13 2017 12:24


SOLVED: volumio & Logitech Media Server on RasPi parallel

Postby BlackSenator » Wed Aug 16 2017 20:08

Karl,

thanks a lot! That is the solution!
I am very happy that after so many months someone has found this old thread and then unexpectedly knows the right solution.
You are the brightest candle in the chandelier!

Best regards

Black Senator
User avatar
BlackSenator
Sunday DIYer
Sunday DIYer
 
Posts: 18
Joined: Mon Jan 05 2015 20:13
Location: Region Hannover


SOLVED: volumio & Logitech Media Server on RasPi parallel

Postby michelangelo » Sun Aug 20 2017 05:05

A more elegant way would be to add the log folder creation to a pre-script in the LMS systemd unit file.
Is there anyone willing to develop an LMS plugin for Volumio? I can assist with this
User avatar
michelangelo
Founder
 
Posts: 4071
Joined: Sun Dec 15 2013 23:18


SOLVED: volumio & Logitech Media Server on RasPi parallel

Postby JohnW » Sun Aug 20 2017 05:50

Having a LMS plugin for Volumio would be a MASSIVE plus, and resolving one of Volumio biggest "missing" feature.

Sadly its beyond my scope of expertise...
User avatar
JohnW
Sunday DIYer
Sunday DIYer
 
Posts: 23
Joined: Sat May 13 2017 15:29

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests