Best method to upgrade FreeNAS Plex Plugin PBI to PlexPass version?

server-freebsd

#1

In the past, to upgrade the free version of Plex to a new level I'd either click the "Update' button in Freenas plugins, or just download the FreeBSD Plex application, , stop the service and untar it to the Plex PBI directory, then restart it.

However, when I tried that with the download of the PlexPass 12.6 version, it destroyed the plex server and I had to restore it from a backup I made just for this purpose.


#2
  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


#3

Just a heads up that script no longer works again. You will likely need to install it manually again.


#4

It's been working just fine for me.


#5

It no longer grabs the newest plex pass builds. Standard builds will work fine for the time being, but the link locations have changed again.

Edit: Never mind, forgot about the password change and didn't update the file that had my credentials. Works fine. My bad.


#6

I've always considered the script to be a delicate, unofficial "hack". It seems to break a lot. It's for this reason I opted to do a regular install of PMS from ports into a generic FreeNAS jail instead of using the plug-in. Makes upgrading so much easier and safer since you're using standard methods.


#7

So I noticed there's an update now for the server - I can't remember if i used PKG command or port commands (new to FreeNAS etc) to install plex initially (I didn't install it a a "plugin"), what would be the exaxt command I run to update it? I have plexpass/plexpass version installed.

I would rather not use the script as above, installing it only took a few small commands (lost the chat logs where someone helped me out with that...) but I don't know if like I said, pkg or port install matters when updating, or what the best option is. Is there a way to check how it was installed?

**Edit: **I found this page: https://www.freshports.org/multimedia/plexmediaserver-plexpass/

When I try:
"cd /usr/ports/multimedia/plexmediaserver-plexpass/ && make install clean"
I get:
"/usr/ports/multimedia/plexmediaserver-plexpass/: No such file or directory."

I definitely installed it manually but don't remember the exact steps.
Currently version: 0.9.12.4.1192-9a47d21
Running on:
FreeBSD 9.1-RELEASE (FreeBSD 9.3-RELEASE-p20 #0 r281084+77db986: Wed Jul 22 14:00:45 PDT 2015 root@build3.ixsystems.com:/tank/home/nightlies/FN/objs/os-base/amd64/tank/home/nightlies/FN/FreeBSD/src/sys/FREENAS.amd64)

Thanks in advance.

Edit2:
I found this post: https://forums.plex.tv/discussion/comment/981635/#Comment_981635

And tried these commands:
cd /usr/ports/multimedia/plexmediaserver-plexpass
= /usr/ports/multimedia/plexmediaserver-plexpass: No such file or directory.

pkg install plexmediaserver-plexpass

=
Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
pkg: repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/digests.txz: No such file or directory
pkg: Unable to update repository local
All repositories are up-to-date.
pkg: No packages available to install matching 'plexmediaserver-plexpass' have been found in the repositories

So I guess I must have installed using pkg, and the pkg repo hasn't been updated yet? is that correct?

If so, how long after the update comes out does that usually take to happen?

Thanks again.


#8

Unless you have a need to install with non standard options you should use pkg to install. Even if you have installed via ports previously pkg will update an installed package if an update is available.

I would try a package update first and see if that does it.

pkg update && pkg upgrade

If that doesn't work try the ports method since you've already stated that you're not sure how you installed it. You have to update your ports tree before you can perform any upgrade. To do that run the command below.

portsnap fetch update

After you've done that then try and run the commands in your previous post to update plex.

All of this can be found in the manual.

As I type all this I don't undertand why you are set against using the update script, it works great.


#9

Hi,

I asked someone in IRC and I believe the problem is that I forgot I had to jexec into the jail before running the pkg update which is why it failed.

I did it like this:

SSH into the server with root.

# jls
# jexec 1 tcsh (ID# or Name of the jail)
# pkg upgrade plexmediaserver-plexpass

~Fetching files etc, proceed Y/N? Yes twice.

After installation, restart Plex with:

# service plexmediaserver_plexpass restart

Unfortunately it seems that the pkg repo is still using version 0.9.12.6.1347-54c2e56 and not the latest 0.9.12.8.1362 according to here: https://www.freshports.org/multimedia/plexmediaserver-plexpass/

I guess I just need to wait a few days for the pkg to be updated and try again?

While still in the jail, typing:

# pkg search plexmediaserver

should list the current versions available on the package repository.

And this will update the repo I think incase you have an old copy:

# pkg update -f

Anyway hope this helps anyone.


#10

Yes it takes the package repo's a few days to update. Glad you got it figured out.


#11

Hi,
I'm new to FreeNAS, but I've run the script from github, and even ran it by fetching the script from github with the above method, the shell returns Done after about 5 seconds, and nothing else happens. Within FreeNAS it still shows the old version number, and when I logon to plex it tells me I still need to update it. Can someone please help me out? I also have PlexPass.


#12

If you installed Plex via the Freenas plugin then the FreeNAS GUI will display the version you installed at the time you installed it. Running the update script will update Plex but not the GUI in FreeNAS. The update available notice is a known bug in the FreeBSD version of Plex and it says that regardless of what version you are running.

Go to the Plexweb GUI and click on the server icon to see what version you are actually running. I've been updating using the script since I first installed Plex almost a year ago without issue.


#13

Hello, has anyone successfully switched from a plexmediaserver install to a plexmediaserver-plexpass install? If so, what were the steps without losing everything?


#14

@TurboJailer said:
If you installed Plex via the Freenas plugin then the FreeNAS GUI will display the version you installed at the time you installed it. Running the update script will update Plex but not the GUI in FreeNAS. The update available notice is a known bug in the FreeBSD version of Plex and it says that regardless of what version you are running.

Go to the Plexweb GUI and click on the server icon to see what version you are actually running. I've been updating using the script since I first installed Plex almost a year ago without issue.

Hmm I don't recall what the version was from the plexweb app, but I know it was not the most current version (9.12.12, or 9.12.11 for non plex users, it was 9.08 or something along those lines) because it did not work on my brother iphone. I've been trying to upgrade using the script since the spring and it's never worked for me, even though in the shell it says that it worked. I ended up installing Plex from a package in a jail I made. Makes it a lot easier to upgrade, although I've run into what seems to be a very interesting bug which I made a separate post about.


#15

Hi!

I am a newbie at freenas and i am not a master at Plex either. I am a plex pass user but i am not sure how to update to plex pass version. This might be a old post but i give it a shot :slight_smile:

I used synology before and there you could download the new package and upload to plex pass version. I hope there is easy way for freenas.

I am thinking of make a fresh install of plex media server or maybe upgrade to freenas 11 and reinstall plex.

I tired these commands but that made my confused.

@paradoxhub said:
SSH into the server with root.

# jls
# jexec 1 tcsh (ID# or Name of the jail)
# pkg upgrade plexmediaserver-plexpass

~Fetching files etc, proceed Y/N? Yes twice.

After installation, restart Plex with:

# service plexmediaserver_plexpass restart

Updating FreeBSD repository catalogue…
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity… done (0 conflicting)
Your packages are up to date.

And when i restarted plex "service plexmediaserver_plexpass restart "
i got this message

Cannot ‘restart’ plexmediaserver_plexpass. Set plexmediaserver_plexpass_enable to YES in /etc/rc.conf or use ‘onerestart’ instead of
‘restart’.

I tried to ssh with putty as root user but not sure what to do. Please if there is someone that could guide i would appreciate it.

When i logged in to the plex server by the web. I noticed there was a setting that i hoped could help me in the matter.

First page under server and settings “Server version updates” “Automatically during scheduled maintenance” and “Updating channel” “Plex Pass”

I would really appreciate your help.

FreeNAS-9.10.2-U6 (561f0d7a1)
Motherboard: ASRock Z97 Extreme 6 - ATX / Intel Z97
Ram: Corsair Vengeance Pro 32GB (4x8GB) / 2400Mhz / CL11 / CMY16GX3M2A2400C11R
CPU: Intel Core i7-4790K - 8 threads / 4,0GHz (4,4Ghz Turbo) / 8MB / Socket 1150
OS Hard drive: Samsung SSD 750 EVO 250GB (MZ-750250BW)
Hard drive: WD Intern Hard drive Red 3TB (8x3TB)SATA III (IntelliPower / 64MB Cache / WD30EFRX)
Graphic card: MSI GeForce GTX 1050 Ti 4GB (GTX 1050 Ti 4GT OC) (i hope plex will soon support hardware transcoding)


#16

Do you have Plex installed in a standard jail or are you using the plugin?


#17

@davfre76
Did you try following the solution in this thread? It is marked as Accepted Answer in green.
Personally, I've setup a standard jail manually and then installed plex-pass, following the instructions in this post:
https://forums.plex.tv/discussion/comment/1248924/#Comment_1248924