Plex Media Sever Won't Update to latest version

Thousandbuckle

Contributor
Joined
Jul 9, 2014
Messages
136
Hello All, I am needing some assistance with one of my FreeNAS jails running Plex Media Server to update it to the latest version. Unfortunately I don't fully remember how I installed it so I am not sure of the proper process to update it. Hoping some one here can help me figure out which method of installation I did and how to update properly.

My current FreeNAS configuration is FreeNAS-9.10.2-U4 (27ae72978). My Plex Server is running version 1.13.9.5439 but would like to get it updated to 1.14.1.5488 to take advantage of some of the new bandwidth reporting features. If I ssh into my Plex jail and run a "pkg info" it shows plexmediaserver-plexpass-1.13.9.5439. I assume this means Plex is installed via "pkg" method but when I do "pkg update" and "pkg upgrade" it doesnt pull down the latest version.

Hoping someone can help me figure this out.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
Here is what you could do, while you are connected to the jail for Plex, run this command to download an updater script:

fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh

Then run this command to make the script executable: chmod 755 PMS_Updater.sh

Then you run this command to pull the latest update down from the Plex website:

./PMS_Updater.sh -u *** -p *** -a -v

Where I have the *** next to -u, you need to put in your Plex Pass username and where I have the *** next to the -p, you need to put in your Plex Pass password.

I downloaded this and use it myself in my Warden Jail and have been using it to keep my Plex up to date for a long time, several years.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
I just tried using that link to go to the github page and it wouldn't work for that, but it does work for making the download.

If you want to go to the github page, here is the link:

https://github.com/mstinaff/PMS_Updater

After the update, I am running latest version v1.14.1.5488-cc260c476
 
Last edited:

Thousandbuckle

Contributor
Joined
Jul 9, 2014
Messages
136
Hi Chris, sorry I not sure which link you mention is not working. I tried your suggestion and when I ran the command to pull the latest version I got these errors. I removed my username and password from the text below. Any ideas on what I need to fix?

root@plex:/ # fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
PMS_Updater.sh 100% of 8818 B 34 MBps 00m00s
root@plex:/ # chmod 755 PMS_Updater.sh
root@plex:/ # ./PMS_Updater.sh -u *** -p *** -a -v
./PMS_Updater.sh: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Media Server: not found
Using URL https://plex.tv/api/downloads/1.json?channel=plexpass
Downloading https://plex.tv/api/downloads/1.json?channel=plexpass
./PMS_Updater.sh: wget: not found
Error downloading https://plex.tv/api/downloads/1.json?channel=plexpass
root@plex:/ #
 

Thousandbuckle

Contributor
Joined
Jul 9, 2014
Messages
136
I was also looking at the GitHub link you sent and it says it is for the FreeNAS Plex Plugin. I am not running the Plugin but a custom jail with Plex installed.
 

toadman

Guru
Joined
Jun 4, 2013
Messages
619
Looks like the script is trying to use the "wget" package. And apparently the package is not in your jail. You can add wget as follows (I think):
Code:
$ sudo pkg update
$ sudo pkg install wget

Assuming that is successful, rerun the script.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
the PMS_Updater.sh script was for updating the plugin version of Plex in FreeNAS .. or so I thought ... if you rolled your own jail
Code:
pkg update && pkg upgrade -y


and that will get you latest available from freshports
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
I was also looking at the GitHub link you sent and it says it is for the FreeNAS Plex Plugin. I am not running the Plugin but a custom jail with Plex installed.
I don't know if it makes a difference how Plex was installed. I have had mine installed for years, since it was easily able to be installed from the plugin and I have been simply updating it using this script for ages.
./PMS_Updater.sh: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Media Server: not found
This line where it says the folder is not found is troubling. If your directory structure is different, it might prevent the script from being able to run properly.
 

Thousandbuckle

Contributor
Joined
Jul 9, 2014
Messages
136
Hi, I added WGET and it got further but still fails out for some reason. Here is what I see now.

./PMS_Updater.sh: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Media Server: not found
Using URL https://plex.tv/api/downloads/1.json?channel=plexpass
Downloading https://plex.tv/api/downloads/1.json?channel=plexpass
--2019-01-05 22:34:47-- https://plex.tv/api/downloads/1.json?channel=plexpass
Resolving plex.tv (plex.tv)... 54.72.69.247, 63.32.153.75, 52.30.248.117, ...
Connecting to plex.tv (plex.tv)|54.72.69.247|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/json]
Saving to: '/tmp/1.json?channel=plexpass'

1.json?channel=plexpass [ <=> ] 29.99K --.-KB/s in 0.001s

Last-modified header missing -- time-stamps turned off.
2019-01-05 22:34:48 (29.0 MB/s) - '/tmp/1.json?channel=plexpass' saved [30710]

Download Complete
Searching https://plex.tv/api/downloads/1.json?channel=plexpass for the FreeBSD download URL .....Done.
Downloading https://downloads.plex.tv/plex-medi...r-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2
--2019-01-05 22:34:48-- https://downloads.plex.tv/plex-medi...r-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2
Resolving downloads.plex.tv (downloads.plex.tv)... 2606:4700::6812:9d29, 2606:4700::6812:9c29, 104.18.157.41, ...
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)|2606:4700::6812:9c29|: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... 200 OK
Length: 90555303 (86M) [application/octet-stream]
Saving to: '/tmp/PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2'

PlexMediaServer-1.14.1.5 100%[==================================>] 86.36M 4.29MB/s in 20s

2019-01-05 22:35:08 (4.26 MB/s) - '/tmp/PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2' saved [90555303/90555303]

Download Complete
Verifying /tmp/PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2 .....Done
Removing previous PMS Backup .....Done.
Stopping Plex Media Server ...../etc/rc.conf: plexmediaserver-plexpass_enable=YES: not found
plexmediaserver does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
Done.
Moving current Plex Media Server to backup location .....mv: rename /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/ to /usr/pbi/plexmediaserver-amd64/share/plexmediaserver.bak/: No such file or directory
Done.
Extracting /tmp/PlexMediaServer-1.14.1.5488-cc260c476-freebsd-amd64.tar.bz2 .....mkdir: /usr/pbi/plexmediaserver-amd64/share: No such file or directory
tar: could not chdir to '/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/'

Done.
ln: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex_Media_Server: No such file or directory
ln: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/libpython2.7.so: No such file or directory
Starting Plex Media Server ...../etc/rc.conf: plexmediaserver-plexpass_enable=YES: not found
plexmediaserver does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)
Done.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080

Thousandbuckle

Contributor
Joined
Jul 9, 2014
Messages
136
Hi ThreeDee, I had tried what you suggested already and this is what I get below. Shows all is updated but is still running the version 1.13.9.5439 of Plex instead of 1.14.1.5488

root@plex:/ # pkg update && pkg upgrade -y
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (1 candidates): 100%
Processing candidates (1 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
ln: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex_Media_Server: No such file or directory
ln: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/libpython2.7.so: No such file or directory
Starting Plex Media Server ...../etc/rc.conf: plexmediaserver-plexpass_enable=YES: not found
plexmediaserver does not exist in /etc/rc.d or the local startup
You don't have plex installed in the correct directory, so the script can't run. This is the problem with rolling your own instead of using the plugin.
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700
reading comprehension fail on my part .. my apologies. I've never had issues with keeping up to date with whatever is listed here:

https://www.freshports.org/multimedia/plexmediaserver-plexpass

..with "rolling my own" or using the plug in and PMS_Updater.sh. Maybe it might be quicker to just back up/download your database, nuke the jail and reinstall Plex ..
 
Top