Updating Plex on FreeNAS 9.3!!

Status
Not open for further replies.

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
1. Login with SSH to your FreeNAS (or alternatively go to shell in WebGUI)
2. type: 'jls' (without ' ' ) and take the note of the # of jail of your Plex installation
3. type: jexec # csh' (where # is the number of the jail noted in last step)
4. type: fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
5. type: chmod 755 PMS_Updater.sh
6. type: ./PMS_Updater.sh -u PlexPass_User -p PlexPass_password -a

Or alternately from the freenas GUI open the CLI of the plex jail and do steps 4, 5 and 6.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Yep I did that. I tried the sites in my first post. It errors at step step 4.

1z57nz4.jpg
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I'm not sure why you aren't using the plexpass version that's part of the pkg-ng repos already...

# pkg install plexmediaserver-plexpass.

Boom, done. When you want an upgrade you just update from the repos. Do note that there's a 2-4 day lag between when a new version is available to download from the Plex website and when it's on the repos, but the convenience of installing upgrades is so trivial that I'll gladly take that slight lag. It's rarely so important that you gotta panic over a couple of day's lag.

I literally created my plex jail, from scratch, in about 5 minutes.
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Cool. So I ran "pkg install plexmediaserver-plexpass" and it updated to ver. 0.9.11.5.774 but yet it says 0.9.11.4.739. I don't get it.

14ajwvb.jpg
 

9C1 Newbee

Patron
Joined
Oct 9, 2012
Messages
485
How perplexing. Sorry, I lack self control.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Cool. So I ran "pkg install plexmediaserver-plexpass" and it updated to ver. 0.9.11.5.774 but yet it says 0.9.11.4.739. I don't get it.

14ajwvb.jpg
Because that Plex version in the giu is for the plugin. The new one you just installed is a package install. Pkg info will show you the new Plex version.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You updated the jail internally. The WebGUI only provides the data for that field. As the plugin itself wasn't updated (only 1 application inside the jail was) the plugin isn't technically "updated".

I didn't mean for you to update the jail by running that command. That was to show how easy it is to make your own jail from scratch running the latest Plex. :P
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
Ohh damn. How do I fix this on both sides?
I thought this was going to be as simple as upgrading the client in windows.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
No, it's not as simple as upgrading the client in Windows. Not by a longshot.

The two ways to upgrade are as I said above:

1. You make your own jail and manage the updates yourself.
2. You stick with the plugin and you use whatever the plugin offers. If it's 6 months behind then you are too.

You've got a combination of #1 and #2. It will work (at least it works right now), but there's no guarantee it won't break in the future, etc. If you read around the forums you'll see that pretty much you should stick to #1 or #2, although you can do a combo (like you did) but don't be surprised if you have problems sometime in the future.

These same limitations are true of all plugins, which is why I don't use plugins. You are at the mercy of the plugin writer to handle updates for you, and if they don't update you don't get a free update either. :P
 

valesan

Patron
Joined
Dec 12, 2011
Messages
233
it is normal that the versions of the web interface and pkg info in jail are different after the upgrade via "pkg install plexmediaserver-plexpass" ?

2q24s4z.jpg
29mwt1z.jpg
 

mirdragon

Dabbler
Joined
Feb 15, 2014
Messages
23
This is how I update (followed instructions from this forum and the plex forums after creating the jail using the gui plugin)

Start shell from Freenas page
type 'jls' to obtain number of plex jail
type 'jexec jailnumber csh'
type 'fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh'
type 'chmod 755 PMS_Updater.sh'
type './PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -v'

on future updates, just do the following

Start shell from Freenas page
type 'jls' to obtain number of plex jail
type 'jexec jailnumber csh'
type './PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -v'

@cyberjockDo you have instructions on manually creating the jail and updating using the method u say, so don't run into issues

thanls
 

AltecBX

Patron
Joined
Nov 3, 2014
Messages
285
It'll be cool to have steps by steps from beginning to end in one page. :):)
 

ThreeDee

Guru
Joined
Jun 13, 2013
Messages
700

Mixel

Explorer
Joined
Jan 11, 2014
Messages
50
it is normal that the versions of the web interface and pkg info in jail are different after the upgrade via "pkg install plexmediaserver-plexpass" ?

29mwt1z.jpg


I wonder what would be needed to use the auto-update function from within the Plex Server Webinterface. Mine gives the same error too....

Is it possible to use the ' automatically check for updates' function?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
I wonder what would be needed to use the auto-update function from within the Plex Server Webinterface. Mine gives the same error too....

Is it possible to use the ' automatically check for updates' function?


That function does not work for freenas at the moment, only Windows and Linux IIRC.
 

nanopete

Dabbler
Joined
Nov 20, 2014
Messages
47
OMG I love FreeBSD and the concept of Jails!
Just messed up my plex-plugin/Jail by blindly doing the same thing as above.
But it doesn't matter, you can mess everything utterly up and just make a new jail and start over!
Love it and love Freenas :smile:
Thanks for everyone contributing to FreeBSD and Freenas!
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
OMG I love FreeBSD and the concept of Jails!
Just messed up my plex-plugin/Jail by blindly doing the same thing as above.
But it doesn't matter, you can mess everything utterly up and just make a new jail and start over!
Love it and love Freenas :)
Thanks for everyone contributing to FreeBSD and Freenas!

Or you could take a snapshot before your meddle with anything, and if you break it roll-back to the snapshot ;)
 

bazzil

Cadet
Joined
Jan 28, 2016
Messages
2
This is how I update (followed instructions from this forum and the plex forums after creating the jail using the gui plugin)

Start shell from Freenas page
type 'jls' to obtain number of plex jail
type 'jexec jailnumber csh'
type 'fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh'
type 'chmod 755 PMS_Updater.sh'
type './PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -v'

on future updates, just do the following

Start shell from Freenas page
type 'jls' to obtain number of plex jail
type 'jexec jailnumber csh'
type './PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -v'

@cyberjockDo you have instructions on manually creating the jail and updating using the method u say, so don't run into issues

thanls


i tried the steps above but i get the following when run the PMS_Updater.sh

Using URL https://plex.tv/downloads?channel=plexpass
Downloading https://plex.tv/downloads?channel=plexpass
--2016-01-28 22:02:23-- https://plex.tv/downloads?channel=plexpass
Resolving plex.tv (plex.tv)... 50.18.115.47, 184.72.53.6, 184.72.61.129, ...
Connecting to plex.tv (plex.tv)|50.18.115.47|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://plex.tv/users/sign_in [following]
--2016-01-28 22:02:25-- https://plex.tv/users/sign_in
Connecting to plex.tv (plex.tv)|50.18.115.47|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Last-modified header missing -- time-stamps turned off.
--2016-01-28 22:02:26-- https://plex.tv/users/sign_in
Reusing existing connection to plex.tv:443.
HTTP request sent, awaiting response... 200 OK
Length: 7180 (7.0K) [text/html]
Saving to: '/tmp/downloads?channel=plexpass'

downloads?channel=plexpass 100%[======================================================================================>] 7.01K --.-KB/s in 0s

2016-01-28 22:02:26 (478 MB/s) - '/tmp/downloads?channel=plexpass' saved [7180/7180]

Download Complete
Searching https://plex.tv/downloads?channel=plexpass for PlexMediaServer-0.9.15.2.1663-7efd046-freebsd-amd64.tar.bz2 .....Could not find a PlexMediaServer-0.9.15.2.1663-7efd046-freebsd-amd64.tar.bz2 download link on page https://plex.tv/downloads?channel=plexpass


the script create a file with name "downloads?channel=plexpass" and it's only 7 kb

I have download from plex the "PlexMediaServer-0.9.15.2.1663-7efd046-freebsd-amd64.tar.bz2" and put it in tmp file but i get the same resaults. The same if i mive the file in the same directory with PMS_Updater.sh script

Any idea how to update?


Finally i found a solution. I upload the update file into plex directory in the tmp folder where the PMS_Updater.sh script is.
Then I run the following

./PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -l PlexMediaServer-0.9.15.2.1663-7efd046-freebsd-amd64.tar.bz2

I'm using the param -l and it search for the file locally

The complete steps are the following

for the first time
Download the update from plex site
Upload it the the tmp directory inot jail where the ples folder is.

do the following steps

type 'jls' to obtain number of plex jail
type 'jexec jailnumber csh'
type 'fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh'
type 'chmod 755 PMS_Updater.sh'
./PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -l PlexMediaServer-0.9.15.2.1663-7efd046-freebsd-amd64.tar.bz2


for any other updates lust run

./PMS_Updater.sh -u PlexPass_myusername -p PlexPass_mypassword -a -l FILENAME

where FILENAME is the file that you have upload


If you still see the update notification in plex environment just reboot the computer
 
Last edited:
Status
Not open for further replies.
Top