Upgrade of Logitech Media Server

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 9:00 am

As Jocko suggested I manually updated the current version 8.0 with the 8 files changes and 1 new file and the Spotify plugin now works as expected!

I've attached the files just in case someone else encounters the same issue and is comfortable manually updating the files. The files already have the correct owner/permissions which may be retained if copied using Linux/Mac systems.

I updated my backup NAS first, and that now works perfectly. I then updated my main NAS and whilst the Spotify plugin is working fine it does not launch automatically ( I have to manually start it). I believe this is another issue which I may have introduced whilst playing around trying to get the Spotify plugin to work.

As for version 8.1 - thanks for preparing this so quickly fvdw!!! Seeing as my main NAS is not running perfectly I will try a fresh install of 8.1 and report back shortly.
You do not have the required permissions to view the files attached to this post.
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 7:14 pm

Hi fvdw,

No luck with version 7.8.1. The server log (slimserver/Logs/server.log) reports the following..

Code: Select all
[14-04-08 19:58:41.5269] main::init (368) Starting Logitech Media Server (v7.8.1, 1396556579, Mon Apr  7 03:20:09 UTC 2014) perl 5.014002
[14-04-08 19:58:43.0522] YAML::XS::DumpFile (31) Warning: Can't open '/share/1000/fvdw/addons-lms781/slimserver/Cache/plugin-data.yaml' for output:
Permission denied at /share/1000/fvdw/addons/slimserver/CPAN/YAML/XS.pm line 31.


I installed it as you suggested. I also then removed slimserver and all the perl directories and installed it using your firmware. Still no luck. I then deleted everything and reinstalled 7.8.0 and it worked OK, and then tried once more with 7.8.1 but still no luck.

The install for 7.8.1 also created the folder /fvdw/addons-lms781/slimserver/Cache which contains no files in any of these folders.

The error above in the log is referencing the folder addons-lms781. Should I add the plugin-data.yaml to this folder, or do you need to update the reference to point to its location in the addons/slimserver/Cache folder?

Hope this helps.
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

Re: Upgrade of Logitech Media Server

Postby fvdw » Tue Apr 08, 2014 7:23 pm

this problem can be solved easily, probably I did not fully complete initialization. In thie first time LMS runs it creates some folders and those will have ownership root, such as the cacher, prefs and log folder. This is how to solve it

connect via ssh using putty
give following command
Code: Select all
cd /share/1000/fvdw/addons
chown -R nobody:nobody slimserver/


now everything should be ok.
If you get again a permission error, repeat the procedure
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 7:37 pm

fvdw wrote:this problem can be solved easily, probably I did not fully complete initialization. In thie first time LMS runs it creates some folders and those will have ownership root, such as the cacher, prefs and log folder. This is how to solve it

connect via ssh using putty
give following command
Code: Select all
cd /share/1000/fvdw/addons
chown -R nobody:nobody slimserver/


now everything should be ok.
If you get again a permission error, repeat the procedure


I can run chown command, but why the "addonslms-781" folder?
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

Re: Upgrade of Logitech Media Server

Postby Jocko » Tue Apr 08, 2014 7:44 pm

Hi rimoth,

I did not download the fvdw's tar file but I assume it should have a wrong root directory.
[14-04-08 19:58:43.0522] YAML::XS::DumpFile (31) Warning: Can't open '/share/1000/fvdw/addons-lms781/slimserver/Cache/plugin-data.yaml' for output:


Slimserver must be saved to the folder '/share/1000/fvdw/addons'. So move it to this folder
Code: Select all
mv /share/1000/fvdw/addons-lms781/slimserver /share/1000/fvdw/addons
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 7:50 pm

Fvdw,

I ran the chown twice and still get the same error:

Code: Select all
[14-04-08 20:44:29.9139] main::init (368) Starting Logitech Media Server (v7.8.1, 1396556579, Mon Apr  7 03:20:09 UTC 2014) perl 5.014002
[14-04-08 20:44:31.3296] YAML::XS::DumpFile (31) Warning: Can't open '/share/1000/fvdw/addons-lms781/slimserver/Cache/plugin-data.yaml' for output:
Permission denied at /share/1000/fvdw/addons/slimserver/CPAN/YAML/XS.pm line 31.


Hi Jocko,

I checked the tar file before and the root folder is slimserver and it is untarred whilst in the addons folder.
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

Re: Upgrade of Logitech Media Server

Postby fvdw » Tue Apr 08, 2014 7:54 pm

this part of the output you post
Can't open '/share/1000/fvdw/addons-lms781/slimserver/Cache/plugin-data.yaml' for output:

indicates that you did not start LMS server from right directory it should use
Code: Select all
/share/1000/fvdw/addons/slimserver/


so how did you start LMS ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 8:03 pm

fvdw wrote:this part of the output you post
Can't open '/share/1000/fvdw/addons-lms781/slimserver/Cache/plugin-data.yaml' for output:

indicates that you did not start LMS server from right directory it should use
Code: Select all
/share/1000/fvdw/addons/slimserver/


so how did you start LMS ?


I started it using the firmware interface. Apart from the first attempt I have done a complete reinstall of LMS and Perl using the firmware interface.
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

Re: Upgrade of Logitech Media Server

Postby fvdw » Tue Apr 08, 2014 8:11 pm

maybe this is because i used a sym link when testing and in setting up the defaults it seems to store the real path instead on the sym link.
What you could do is delete in the slimserver/ folder the subfolders Cache, prefs and Logs including all files in it
Connect via ssh using putty and start LMS using this command
Code: Select all
/usr/local/slimserver/slimserver.pl --user nobody -httpport 9200

It will start but fail with an error message about permission.
Give the command to change owner as I posted earlier
Again start LMS using the above command, it will fail again, with permission compliants
Give the chown command
start LMS again, again it will fail
Give the chown command
Now it should be ok and you should be able to start it using the webinterface
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Upgrade of Logitech Media Server

Postby rimoth » Tue Apr 08, 2014 8:36 pm

Good news. Up and running now. It only took one iteration of 'chown' and then the server launched.

The only slight weird thing when going through the LMS setup wizard was that there was no folders visible to select for the musc and playlist folder. I skipped that and then was able to select the folders through the settings option.

I will play around with the install and report back if I can get the plugin working. Thank you both for your help.
rimoth
Donator VIP
Donator VIP
 
Posts: 61
Joined: Mon Jul 08, 2013 9:33 am

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 11 guests