Page 1 of 1

plexmediaserver script broken

PostPosted: Tue Jan 24, 2017 11:53 pm
by Terror Factor
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.

Re: plexmediaserver script broken

PostPosted: Wed Jan 25, 2017 12:30 pm
by Jocko
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

Re: plexmediaserver script broken

PostPosted: Thu Jan 26, 2017 11:33 pm
by Terror Factor
Awesome! Thanks!

Re: plexmediaserver script broken

PostPosted: Tue Jan 31, 2017 12:39 am
by Terror Factor
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 :)

Re: plexmediaserver script broken

PostPosted: Tue Jan 31, 2017 1:28 pm
by Jocko
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