(Tutorial) How To Install Plex in a FreeNAS 11.2 Jail

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Yes. Everything is as it was in the old one.
 

ajschot

Patron
Joined
Nov 7, 2016
Messages
341
I was able to install plex using your guide. I have mounted 2 datasets into the jail to import my media
I have an issue where the plex doe not show the root directory of the jail(as shown in the attachment)
I have set the Plex to run as media and the dataset is on media permission
I remember it use to have a root directory where i chose the mounted folder ( it was " \")
Just to clarify my situation, since Freenas corral support has been dropped i am moving back to Freenas 9.10
My current version is FreeNAS-11-MASTER-201704270409 (1631dde)
Just change the location manually to were you made your mounting point in FreeNAS menu.
So if you linked '/mnt/tank/movies' to local '/mnt/movies/'
Change /var/........ into '/mnt/movies' and your done
 

Berkyjay

Contributor
Joined
Nov 7, 2015
Messages
100
Upgrading Plex:

When new releases of Plex come out, you may update without losing your data and preferences. To check if a new release of Plex is available, visit this page:
http://www.freshports.org/multimedia/plexmediaserver/

First off, stop Plex with the following command:
service plexmediaserver stop

To actually update Plex, run the following command:
pkg update && pkg upgrade multimedia/plexmediaserver

Lastly, start Plex again with the following command:
service plexmediaserver start

Hi I've been trying to upgrade my plex jail following these steps. It says that everything is up to date. But in the web app, Plex keeps saying I'm a few versions behind. This used to work just fine, but it hasn't seemed to grab an update in many months.

Freenas version 11.0-RC3
Plex version (via web app) 1.3.3.3148
Cmd line output:
root@Cloud8A:/ # service plexmediaserver stop
/etc/rc.conf: plexmediaserver_enableYES: not found
/etc/rc.conf: plexmediaserver_enableYES: not found
Stopping plexmediaserver.
Waiting for PIDS: 9795.
Cleaning up leftover child processes.
Waiting for PIDS: 9802 9801 9796.
root@Cloud8A:/ # pkg update && pkg upgrade multimedia/plexmediaserver
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 integrity... done (0 conflicting)
Your packages are up to date.


Thanks!
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Hi I've been trying to upgrade my plex jail following these steps. It says that everything is up to date. But in the web app, Plex keeps saying I'm a few versions behind. This used to work just fine, but it hasn't seemed to grab an update in many months.

Freenas version 11.0-RC3
Plex version (via web app) 1.3.3.3148
Cmd line output:
root@Cloud8A:/ # service plexmediaserver stop
/etc/rc.conf: plexmediaserver_enableYES: not found
/etc/rc.conf: plexmediaserver_enableYES: not found
Stopping plexmediaserver.
Waiting for PIDS: 9795.
Cleaning up leftover child processes.
Waiting for PIDS: 9802 9801 9796.
root@Cloud8A:/ # pkg update && pkg upgrade multimedia/plexmediaserver
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 integrity... done (0 conflicting)
Your packages are up to date.


Thanks!
The Plex GUI is broken. What version does it say you have and what version does it want to upgrade to? If there is an upgrade pkg takes maybe 2 days to update after Plex releases the update.

Sent from my Nexus 5X using Tapatalk
 

Berkyjay

Contributor
Joined
Nov 7, 2015
Messages
100
What version does it say you have and what version does it want to upgrade to?

In the web app it says I have Plex version (via web app) 1.3.3.3148.

The FreshPorts version is 1.5.6.3790. That was released on June 1st.

Also, when you say Plex GUI. Are you speaking of the web app interface?

EDIT:
BTW, I have plex installed as a standard jail not a plugin jail if that makes a difference.
 
Last edited:

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
The latest stable version is 1.5.6.

If you've upgraded FreeNAS from 9.10 to 11 there's a chance that you won't be able to update any jails created in 9.10 (similar to the situation upgrading from 9.3.1 to 9.10 as the base FreeBSD version changed)

A new plex jail shouldn't take more than a couple of minutes to create, although copying across the plexdata folder from the old to the new will take significantly longer (but still not difficult to do)
 

ajschot

Patron
Joined
Nov 7, 2016
Messages
341
well i get so frustrated, every day some jails break i don't understand really yesterday some strange permissions that changed and now plex does not work and i tried to install again but it just does not work i have no idea why. Anybody knows if the update is not good?

It just won't start the service, strange because it was running fine yesterday and all of a sudden it was stoped and won't start anymore
 
Last edited:

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
I've got 2 plex jails running - one with the stable version (1.5.5) and one for playing around with the plexpass version (1.7.2) - and both are working fine.

Not sure how anything can just change in a jail without you doing something to it or updating freenas itself?
 

Bill Cowger

Cadet
Joined
Aug 28, 2015
Messages
8
I've got 2 plex jails running - one with the stable version (1.5.5) and one for playing around with the plexpass version (1.7.2) - and both are working fine.

Not sure how anything can just change in a jail without you doing something to it or updating freenas itself?
How do you update to get 1.7.2? Unable to find any information on doing an update to the very latest from Plex.
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
1.7.2 is the latest plexpass version, so you need a plexpass subscription to use it.

Installing into a jail is just the same as the instructions here, but using plexmediaserver-plexpass instead of plexmediaserver.

From my experiences, I'd stay clear of the plexpass version if you want something that just works. My plexpass jail doesn't even mount to my media and is just for testing some of the new functionality, in the case of 1.7.2 live TV using a HDHomeRun tuner.

And I don't think there's an easy way to update a plexmediasever install to plexmediaserver-plexpass in the same jail. You'd need to uninstall one and install the other. That's why I have them in separate jails!
 

Bill Cowger

Cadet
Joined
Aug 28, 2015
Messages
8
1.7.2 is the latest plexpass version, so you need a plexpass subscription to use it.

Installing into a jail is just the same as the instructions here, but using plexmediaserver-plexpass instead of plexmediaserver.

From my experiences, I'd stay clear of the plexpass version if you want something that just works. My plexpass jail doesn't even mount to my media and is just for testing some of the new functionality, in the case of 1.7.2 live TV using a HDHomeRun tuner.

And I don't think there's an easy way to update a plexmediasever install to plexmediaserver-plexpass in the same jail. You'd need to uninstall one and install the other. That's why I have them in separate jails!
Okay, the live TV was what I was looking for, I guess I will have to wait for the pkg. I am not in any mood to get in to all of that this morning. Thanks
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
similar to the situation upgrading from 9.3.1 to 9.10 as the base FreeBSD version changed
That was not the case for me. My old jails and new jails both continued to function side by side after my upgrade from 9.3 to 9.10.
The Plex GUI is broken
Mine is reporting the correct version and always has.

Something else is going on here and I'm betting it's some odd ESXI host configuration.
 

ajschot

Patron
Joined
Nov 7, 2016
Messages
341
well i installed it again but did not work i now just made a new jail and installed and it is running fine now. Even if i installed in the jail the plexpass verison it won't start the service.
Really strange.....
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
That was not the case for me. My old jails and new jails both continued to function side by side after my upgrade from 9.3 to 9.10.

Most of my jails continued to work after upgrading from 9.3 to 9.10, although I couldn't update them using ports or pkg. Don't know whether this was down to FreeBSD 9.3 EOL or that fact FreeNAS is now using a 10.3 template.

I still have some running the 9.3 template as I don't need to update them (yet) but others I've recreated using the 10.3 template. I'm holding off updating any more of the 9.3 ones as I suspect the same will apply from 9.10 to 11, as I think that used a FreeBSD 11 template.
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
well i installed it again but did not work i now just made a new jail and installed and it is running fine now. Even if i installed in the jail the plexpass verison it won't start the service.
Really strange.....

To start the service you also have to include the '-plexpass' so 'service plexmediaserver-plexpass start' and the line in /etc/rc.conf also needs to be 'plexmediaserver_plexpass_enable=YES'
 

ajschot

Patron
Joined
Nov 7, 2016
Messages
341
To start the service you also have to include the '-plexpass' so 'service plexmediaserver-plexpass start' and the line in /etc/rc.conf also needs to be 'plexmediaserver_plexpass_enable=YES'

i knwo it is all running. but the problem was that the whole jail broke and i don't know why.
I had to make a new jail and install again
 

Berkyjay

Contributor
Joined
Nov 7, 2015
Messages
100
A new plex jail shouldn't take more than a couple of minutes to create, although copying across the plexdata folder from the old to the new will take significantly longer (but still not difficult to do)

Thanks for the input. I think this is exactly what happened. The last time I updated Plex was right before I switched from 9.3 to 9.10. Now I'm on 11.

How do I go about migrating my data over to the new jail?
 

adrianwi

Guru
Joined
Oct 15, 2013
Messages
1,231
Check out post #314 and #319 :D
 

B34N

Dabbler
Joined
Jul 6, 2014
Messages
32
I am on 9.3 and did the upgrade but not I get "Conversion Failed. A required codec could not be found or failed to install." I tried looking for solutions to that issue but have been unable to figure it out. My limited understanding makes me think it's a permission issue but what and how to fix is beyond my simple ability to follow instructions.

On a side note, when I upgrade to 9.10 it sounds like I need to do a new jail for PMS which would give me a more current version. I'm really looking to add their DVR and live TV enhancements. I will accept the answer to stop trying to get 9.3 working and bite the bullet and go to 9.10 of that's the best route. With that said, it would be great to have a simple fix to get PMS running until I can do a proper upgrade.

Update: I upgraded to 9.10 and created a new jail for Plex and all works. Took only about 30-mins once I had upgraded to 9.10 which itself was super easy.
 
Last edited:
Top