Manually update your Plex Media Server on Freenas

In this tutorial, I show you how to manually update your Plex Media Server on Freenas without relying on the developers of the Plex Plugin of Freenas to release a new version. 

It seems that sometimes the Plex Plugin gets updated very close to a new Plex release and sometimes it doesn’t.

If you don’t want to wait until the Plex Freenas Plugin dev’s release a new version, there’s another way how to update your Plex on Freenas straight away.

 

The Github script will pull the newest release directly from Plex, so you could also implement a script to do that for you.

As always there is also a YouTube step-by-step video on how to manually update your Plex Media Server on FreeNAS at the end of this article.

Want to build your own FreeNAS Server too? Check out my build!

 

Step 1 Connecting to FreeNAS via SSH or Web GUI

Navigate to Plugins -> Installed and switch off your Plex Media Server.

Now connect to your FreeNAS using either SSH with Putty or the built-in Shell in the WebGUI:

 

Step 2 Manually updating Plex Media Server

Once you are inside of the shell, type:

jls

And note down which JID your Plex Media Server has. If you have only one Jail, it will be #1.

How to manually update plex media server
Noting down the Jail Number

Next, we type:

jexec 1 csh (replace 1 with whatever jail number you have!)

Followed by:

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

Next, we are going to set permissions:

chmod 755 PMS_Updater.sh

And finally we run the script:

./PMS_Updater.sh -vv -a

After the script run through, you should be on the newest version of Plex Media Server. Switch on your Plex Media Server under Plugins -> Installed.

 

How to install Plex on a Jail in Freenas: Tecmint

Github Script: https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh

 

44
Leave a Reply

Tell us what you think!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
newest oldest most voted
Notify of
Jason B
Guest
Jason B

Does this work with FreeNAS 11.2 Beta2? When I stop the plugin via the web ui, the shell option under the jail disappears and i can’t get in unless i start it again. I am running the plexpass version but VERY new to FreeNAS and can’t figure out how to update plex. Last time I tried it wrecked my Plex and I had to remove and reinstall it, so Im a little nervous to try it. Do I need to change anything from the above instructions when doing it thru 11.2 beta2 (using beta web UI)? TIA!

Aaron
Guest

You ROCK !! thanks!

David Rigdon
Guest
David Rigdon

I had to make a slight modification to your sh file in order for mine to work.

I received the error “/usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Media Server: not found”

I changed the “PMSPARENTPATH to be “/usr/local/share” as that is where my plexmediaserver/Plex Media Server folder lived.
Also used steps 5 and 6 from Tom above to manually update from local file, because I assume the cert authority folder also does not exist: CERTFILE=”/usr/local/share/certs/ca-root-nss.crt”

TangoFoxtrotBravo
Guest
TangoFoxtrotBravo

Good work-around. Also though, on the github page it calls out the need to put in a UN/PW combo to get the latest Plex Pass version instead of the latest public release.

„Running without the username/password or bad username/password will retrieve the latest public release rather than the latest Plex Pass release.“

Erick Bair
Guest
Erick Bair

I was wondering if there is way to automate this with perhaps a cron job?

Peter
Guest
Peter

Hmm…

Stopped the Plex jail via GUI
SSH on to server and enter JLS …. Headings and nothing else
Start server again and retry teh command.. JLS
Ahh this time it works, seems it’s 2
Shut down the server and enter jexec 2 csh
I get ” jail_attach(2) : operation not permitted”
Ok
Try it with sudo
nope
get “jexec: jail_attach(2): Invalid argument”

Stumped…

Can any one help?

Derek Reaves
Guest
Derek Reaves

Don’t stop the jail in the GUI. That shuts it down completely. The author means to stop the Plex plugin via the GUI.

Matt
Guest
Matt

Thanks so much 🙂
I had no idea where the Plex was installed, this script made it plain simple, took less than 2 minutes and it’s updated and working 🙂

John M
Guest
John M

Thank you! Thank you! Thank you!

Juno
Guest
Juno

Thank you for posting this. It works like a charm!

isaac
Guest
isaac

Thank you for this guide. I had to use the -u and -p options to get the latest version for plex pass users. Works like a charm now.

Tim
Guest
Tim

I have followed the comments here and even installed the link directly. It appears to run and says that it has completed and please is on the latest version.

I even restarted the jail manually

In the plex gui under server it still has the old version number and says to download the update.

I am on the new version 11 of FreeNAS.

Louis Grynfeltt
Guest

Thank you SO MUCH 🙂

Tom Beech (@iBeech)
Guest

Hey, this appears to have stopped working with the latest plex pass build 1.5.2- the url used to scrape build information no longer appears to include plexpass builds?

Tom Beech (@iBeech)
Guest

Fix until the script is updated:

1) Goto https://www.plex.tv/downloads/ turn on ‘Plex Pass Downloads’ and select ‘FreeBSD’ from the drop down
2) Copy the url of the ‘DOWNLOAD 64-BIT’ button
3) SSH into your FreeNAS box
4) Follow steps 1-4 of the above article
5) Execute: fetch -o PlexBuild.tar.bz2 {PateInURLCopiedEarlier}
6) Execute: ./PMS_Updater.sh -l PlexBuild.tar.bz2 -vv -a

Done!

Robert Wilson
Guest
Robert Wilson

Trying to update also.

I followed your above instructions for the fix until the script is updated. All went fine through step 5. I get ‘Permission denied.’ when I entered step 6.

Ideas?

Robert Wilson
Guest
Robert Wilson

Your Step 4 should actually read Follow steps 1-5 of the above article. If you don’t execute the CHMOD from step 5 you’ll get a permission error.

Otherwise it worked like a champ!

Thanks!

-Rob

aarone
Guest
aarone

Thanks it worked great to roll me forward when the freenas plugin the GUI installed was buggy with its TVDB matching!

bdhall4
Guest

Thanks for writing this up. Worked perfectly for me.

JoEMoMMa
Guest
JoEMoMMa

Freenas GUI still shows old plugin version and claims I need an update after this manual install method. Any way to fix?

jason
Guest
jason

Now I can’t access my Plex Media Server interface. 🙁 How do I troubleshoot this?

jason
Guest
jason

I just restarted my jail and all works great! Thanks!

JC
Guest
JC

Worked amazingly well!

BC
Guest

BAM! Worked like a champ. Thanks!!

Tom Beech
Guest

Perfect, exactly what I needed. Thank you

SSS
Guest
SSS

Hi, I get errors about directories that are missing and such, any assistance welcomed and appreciated!

root@plex:/ # ./PMS_Updater.sh -vv -a
./PMS_Updater.sh: /usr/pbi/plexmediaserver-amd64/share/plexmediaserver/Plex Medi
a 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:/ #

Joshua Allan-Sloper
Guest

Exactly the same problem here

Hunt Fitzgerald
Guest

Thanks for this post. It works great. Keep up the good work!

%d bloggers like this: