mstinaff / PMS_Updater

Shell script for updating the Plex Media Server inside the FreeNAS Plex plugin
MIT License
439 stars 91 forks source link

"Could not find a FreeBSD download link on page..." #36

Closed acollien closed 1 year ago

acollien commented 5 years ago

Ran below code as root user. Running most recent stable version of FreeNAS (11.2-U2.1?)

Also, not sure if relevant, but I don't have/use plexpass - just want to update to newest stable.

root@plex:~ # fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
PMS_Updater.sh                                100% of 9447  B 9180 kBps 00m00s
root@plex:~ # chmod 755 PMS_Updater.sh
root@plex:~ # ./PMS_Updater.sh -v -a
./PMS_Updater.sh: /usr/local/share/plexmediaserver-plexpass/Plex Media Server: not found
Using URL https://plex.tv/api/downloads/5.json?channel=plexpass
Downloading https://plex.tv/api/downloads/5.json?channel=plexpass
--2019-03-24 12:14:13--  https://plex.tv/api/downloads/5.json?channel=plexpass
Resolving plex.tv (plex.tv)... 54.171.147.115, 52.31.211.151, 52.50.147.131, ...
Connecting to plex.tv (plex.tv)|54.171.147.115|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: '/tmp/5.json?channel=plexpass'

5.json?channel=plexpass              [ <=>                                                     ]  19.16K  --.-KB/s    in 0s      

Last-modified header missing -- time-stamps turned off.
2019-03-24 12:14:14 (186 MB/s) - '/tmp/5.json?channel=plexpass' saved [19619]

Download Complete
Searching https://plex.tv/api/downloads/5.json?channel=plexpass for the FreeBSD download URL ....../PMS_Updater.sh: perl: not found
Could not find a FreeBSD download link on page https://plex.tv/api/downloads/5.json?channel=plexpass
root@plex:~ # 
madhub0815 commented 5 years ago

You can edit the script and set "PLEXPASS=0" in Line 17.

You can use "./PMS_Updater.sh -v -a -n" also to use normal public build instead of plexpass build.

ariejan commented 5 years ago

Step 1

Open and update the script fix the Plex Media Server: not found error.

PMSLIVEFOLDER="plexmediaserver"
PMSBAKFOLDER="plexmediaserver.bak"

Step 2

Install perl.

pkg install perl5

Step 3

As @madhub0815 said, run with -n to use the regular (e.g. non-premium) updates.

acollien commented 5 years ago

Step 1

Open and update the script fix the Plex Media Server: not found error.

PMSLIVEFOLDER="plexmediaserver"
PMSBAKFOLDER="plexmediaserver.bak"

Step 2

Install perl.

pkg install perl5

Step 3

As @madhub0815 said, run with -n to use the regular (e.g. non-premium) updates.

You, sir, are a scholar and a gent. Fixed, thank you. Can close.

acollien commented 5 years ago

Actually! something screwy happened. The update went fine, but now Plex isn't quite working like it should. E.g. I had a few plugins installed, but they're not showing now. I can't access (or at least it says "Server settings are unavailable" for every section under the 'SETTINGS' and 'MANAGE' headings.... I can still play my and add new things to the library, but it won't match or download metadata anymore. Any idea what's happened?

@ariejan @madhub0815 Same result when I tried both your methods.

root@plex:/ # ./PMS_Updater.sh -v -a -n
./PMS_Updater.sh: /usr/local/share/plexmediaserver-plexpass/Plex Media Server: not found
Using URL https://plex.tv/api/downloads/5.json
Downloading https://plex.tv/api/downloads/5.json
--2019-03-31 10:44:04--  https://plex.tv/api/downloads/5.json
Resolving plex.tv (plex.tv)... 63.32.177.143, 52.16.101.236, 52.31.211.151, ...
Connecting to plex.tv (plex.tv)|63.32.177.143|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: ‘/tmp/5.json’

5.json                          [ <=>                                      ]  19.16K  --.-KB/s    in 0s      

Last-modified header missing -- time-stamps turned off.
2019-03-31 10:44:06 (44.5 MB/s) - ‘/tmp/5.json’ saved [19619]

Download Complete
Searching https://plex.tv/api/downloads/5.json for the FreeBSD download URL .....Done.
Downloading https://downloads.plex.tv/plex-media-server-new/1.15.2.793-782228f99/freebsd/PlexMediaServer-1.15.2.793-782228f99-FreeBSD-amd64.tar.bz2
--2019-03-31 10:44:06--  https://downloads.plex.tv/plex-media-server-new/1.15.2.793-782228f99/freebsd/PlexMediaServer-1.15.2.793-782228f99-FreeBSD-amd64.tar.bz2
Resolving downloads.plex.tv (downloads.plex.tv)... 2606:4700::6812:9c29, 2606:4700::6812:9d29, 104.18.157.41, ...
Connecting to downloads.plex.tv (downloads.plex.tv)|2606:4700::6812:9c29|:443... failed: No route to host.
Connecting to downloads.plex.tv (downloads.plex.tv)|2606:4700::6812:9d29|:443... failed: No route to host.
Connecting to downloads.plex.tv (downloads.plex.tv)|104.18.157.41|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘/tmp/PlexMediaServer-1.15.2.793-782228f99-FreeBSD-amd64.tar.bz2’ not modified on server. Omitting download.

Download Complete
Verifying /tmp/PlexMediaServer-1.15.2.793-782228f99-FreeBSD-amd64.tar.bz2 .....Done
Removing previous PMS Backup .....Done.
Stopping Plex Media Server .....plexmediaserver_plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
Done.
Moving current Plex Media Server to backup location .....mv: rename /usr/local/share/plexmediaserver-plexpass/ to /usr/local/share/plexmediaserver-plexpass.bak/: No such file or directory
Done.
Extracting /tmp/PlexMediaServer-1.15.2.793-782228f99-FreeBSD-amd64.tar.bz2 .....Done.
Starting Plex Media Server .....plexmediaserver_plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable
Done.
acollien commented 5 years ago

OK - solved. Looks like plex changed something again, so maybe the PMS_Updater script needs a tweak?

Solution here: Manually updating plex

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.