plexmediaserver script broken

plexmediaserver script broken

Postby Terror Factor » Tue Jan 24, 2017 11:53 pm

Not really sure where to post this, but the plexmediaserver script is broken on the latest firmware, running on a 5big2.
It seems that the plex-downloadpage has changed.
Also, the synology version is ARM7, I am not sure if that'll work on those lacies.

Quick and dirty "fix": I used this as source: https://usdl.synology.com/download/Pack ... 0-cece46d/

It gets dirtier: I copied the download url to a txt, put that on a http server, and changed the plex.tv/downloads-url to my txt-file.

It should be an easy fix for someone who's a bit more familiar with linux and scripting. Not sure if the official plex download page will be useful anymore, with the arm7 version of plex.
Terror Factor
 
Posts: 10
Joined: Thu Dec 22, 2016 11:54 pm

Re: plexmediaserver script broken

Postby Jocko » Wed Jan 25, 2017 12:30 pm

Hi Terror Factor

Thank you for this feedback.

Indeed there is an issue and more... Plex provides no longer a direct link to download its packages and we need to use its api to get the url of the lastest version :disapprove but this can be easily fixed :-D With last version there is no longer support for armv5 (only armv7). If you install the last version (1.3.3), you can not start pms and some libs are missing. So we need to use an old versions lower than 0.9.17.0 (see https://support.plex.tv/hc/en-us/articles/218212517-Which-NAS-devices-are-no-longer-supported-starting-with-0-9-17-0-server-)
It seems that your download link allows to get the latest version for armv5.

So we go to host this package on our site to be sure it keeps available

A patch comes soon
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: plexmediaserver script broken

Postby Terror Factor » Thu Jan 26, 2017 11:33 pm

Awesome! Thanks!
Terror Factor
 
Posts: 10
Joined: Thu Dec 22, 2016 11:54 pm

Re: plexmediaserver script broken

Postby Terror Factor » Tue Jan 31, 2017 12:39 am

Sorry for bumping this, but the login function can't handle spaces in usernames.
I tried manually editing "/rw_fs/etc/.loginplugout" but that doesn't seem to work either.

Then I tried filling it in directly in the plugout script, but no luck either (couldn't reach plugout.net-error), so I decided to download the file manually, put in the temp dir and remove part of the "plexmediaserver install"-code. That did the trick!

Related question: I noticed a reference to the synology site (where I got the package from), but the script downloads it from plugout.net, and that part of the code was not used. Why was it included?
In my (granted, noob-)eyes, it seems a relative complex and elaborate way to just download a file.
Just curiosity, as said before, this firmware gave my lacie a second life :)
Terror Factor
 
Posts: 10
Joined: Thu Dec 22, 2016 11:54 pm

Re: plexmediaserver script broken

Postby Jocko » Tue Jan 31, 2017 1:28 pm

Hi,

Indeed there was an error on the scripts : I forgot to quote the credentials with the called functions... :pound
Terror Factor wrote: but the script downloads it from plugout.net, and that part of the code was not used. Why was it included
I already gave the explanation: As I don't known how much time your link keeps alive, I 'd rather to host the synology package on plugout.
But on our site, you can download a file only if you are logged (to preserve our bandwidth). So need a complex way with curl or wget to do it (login first; ask a download with the opened session and close the session)

Note: plexmediaserver script is not also optimized (I just disabled some useless features : it is always easiest to enable again these one rather than rewriting them...)

A new patch is also available
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests