A Script for manual Plex Updates (.PMS_UpdaterPLEXPASS) - Recently Updated

Plex Updates via PMS Updater

Using the Plex Media Server (PMS) updater will require you to choose a " -l" option for “local”. This is because it can no longer find and associate the correct URL associated with PMS update files.

Something like this would suffice:

From a browser:

Log into the PMS’s Web UI >

Navigate to: Settings> General , and download the PMS Update tarball file ending in ".tar.bz2 "

  • Save the tarball “pms.update.123************.tar.bz2” in a location accessible from a windows share
  • This same location should be mounted within the associated PMS jail under /download

From Terminal (putty, mobaxterm, etc):

Log into the IOCAGE associated with PMS
iocage console <name_of_jail>
e.g.
iocage console pms

From your home directory create a folder called “ pms_updater”
mkdir -p pms_updater

Navigate into the folder you just created and download the PMS_UpdaterPLEXPASS.sh script
cd pms_updater
fetch https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh
Note: fetch & the URL are all one line

Next move the file to the same directory as the script and rename .tar file as pms.update.tar.bz2
e.g.
mv /media/download/PlexMediaServer* ~/pms_updater/pms.update.tar.bz2

Update Plex:
./PMS_UpdaterPLEXPASS.sh -l pms.update.tar.bz2 -vv -a

You should see the following output:
Verifying pms.update.tar.bz2 …Done
Removing previous PMS Backup …Done.

Stopping Plex Media Server
…plexmediaserver_plexpass not running? (check/var/run/plex/plex.pid).
Done.
Moving current Plex Media Server to backup location …Done.
Extracting pms.update.tar.bz2 …Done.
Starting Plex Media Server …Starting plexmediaserver_plexpass.
Done.

If it doesn’t look like the update took immediately, either refresh the PMS Web UI (browser)
or Exit the IOCAGE and restart the IOCAGE /Jail:
iocage restart <jail_name>

e.g.
iocage restart plex

Validate via the Web UI once more under Settings> General and you should be golden.

~ :spades: S A V I O :spades:

1 Like

Curious does you script do something different than this long running tool ?

1 Like

It’s not my script, but rather a fix/workaround what’s broken in this script.
I explained it this way as i assume that many people are not completely comfortable using CLI.
Also, once it’s set up right, you could script it to run simplistically; less the tarball download from the Plex URL

offtopic: just out of curiosity, is iocage still actively developed?

As in FreeBSD Builds? Yes.

This seems to be set up for Linux/Debian type systems.
I haven’t had the time to test this one out yet, but it looks promising!

Thanks for the find @hthighway

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.