Desperately need help installing PlexPass PMS in a jail

Monkey_Demon

Explorer
Joined
Nov 11, 2016
Messages
85
I'm new to FreeNAS but had been using Plex for about 5 years until about 2 years ago, when my old NAS stopped supporting the latest version of Plex. I've also used *nix computers since the late 1970s, but only returned to BSD when I started using FreeNAS.

I started following "Installing Plex Media Server in a FreeNAS Jail (FreeBSD port)" by jostro. This tutorial covers the nitty-gritty of using the CLI to manually set up the PMS in a jail. Given that it says installing the native package is optional, I skipped directly to the instructions for a port install. After establishing a SSH connection to the server and logging in a root, I issued these commands:

jls # To discover the jail number (<jn>) of plexpasspms
jexec <jn> # Start a shell in that jail
portsnap fetch # Download a current snapshot of the ports collection
portsnap extract # Extract it and store the snapshot in /usr/ports -- There are quite a few!!!
cd /usr/ports/multimedia/plexmediaserver-plexpass # Go to the directory of the plexpass PMS port
make install


This results in the following (error) messages:

===> Building/installing dialog4ports as it is required for the config dialog
===> Cleaning for dialog4ports-0.1.6
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/dialog4ports
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/dialog4ports
===> Options unchanged
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/multimedia/plexmediaserver-plexpass
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/plexmediaserver-plexpass
root@plexpasspms:/usr/ports/multimedia/plexmediaserver-plexpass # portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from your-org.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Mon Aug 6 16:59:34 EDT 2018 to Mon Aug 6 17:17:14 EDT 2018.
Fetching 5 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 1 patches.
(1/1) 100.00% done.
done.
Applying patches...
done.
Fetching 0 new ports or files... done.
Removing old files and directories... done.
Extracting new files:
/usr/ports/devel/py-black/
Building new INDEX files... done.
root@plexpasspms:/usr/ports/multimedia/plexmediaserver-plexpass # make install
===> Building/installing dialog4ports as it is required for the config dialog
===> Cleaning for dialog4ports-0.1.6
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/dialog4ports
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/dialog4ports
===> Options unchanged
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/multimedia/plexmediaserver-plexpass
*** Error code 1

Stop.
make: stopped in /usr/ports/multimedia/plexmediaserver-plexpass


It appears portsnap no longer supports the version of FreeBSD bundled with FreeNAS 11.1. So now what do I do?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
You'll have to use iocage and the FreeBSD 11.1 template. There's a resource for that.
 

kdragon75

Wizard
Joined
Aug 7, 2016
Messages
2,457
Also why mess with ports? just setup your iocage jail and within, pkg install plexmediaserver. Note I may have the package name wrong.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Note I may have the package name wrong.
That's correct for the non-PlexPass version; OP would want plexmediaserver-plexpass. But at least sometimes the port is more up-to-date than the package.
 

Monkey_Demon

Explorer
Joined
Nov 11, 2016
Messages
85
You'll have to use iocage and the FreeBSD 11.1 template. There's a resource for that.

Thanks. I found Section 13.4, "Using iocage," in the FreeNAS 11.1 U4 User's Guide. But when I choose Jails > Templates in the GUI, all that comes up is ""No entry has been found." Where can one find the template? Is it a template for a jail for Plex, for Plex Pass, or for something more generic?

Also, FreeNAS 11.2-BETA2 is available. Its description says, "the new UI will automatically use iocage to create and manage Plugins and Jails." Ordinarily I avoid beta releases unless I have been using the software for some time, am quite comfortable with the software, and the beta has features I want but on the surface is not doing anything that's likely to break something I absolutely need. In this case, I'm very new to FreeNAS, just starting to become comfortable with it, but since I'm still setting up the server there's not much that I absolutely need at this point. So, might it not be easier to get rid of the two jails currently in my 11.1 installation, upgrade to the beta, and then create the plexpass jail from there?
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
You dont need to upgrade to the beta to use iocage. Just use the command line on 11.1

Create the iocage jail like this (change ip):
Code:
iocage create -n plex -r 11.1-RELEASE ip4_addr="vnet0|192.168.1.11/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on"


To see your jails use
Code:
iocage list


Mount your media in your jail with:

Code:
iocage fstab -a plex "/mnt/yourFreenasdrive/Media  /internalpathinjail nullfs rw 0 0"


Log into the iocage jail with :

Code:
iocage console plex


Run these commands to install and autostart plex:

pkg install -y plexmediaserver-plexpass

sysrc plexmediaserver_plexpass_enable=YES

service plexmediaserver_plexpass start
 

Bhoot

Patron
Joined
Mar 28, 2015
Messages
241
I'm new to FreeNAS but had been using Plex for about 5 years until about 2 years ago, when my old NAS stopped supporting the latest version of Plex.
~Snip~

Don't mean any offense but any reason in particular to use CLI instead of GUI?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Don't mean any offense but any reason in particular to use CLI instead of GUI?
Based on the timing of this thread, I expect that it was because the 11.1 GUI wasn't yet considered reliable enough for jail manipulation (and the legacy/stable GUI doesn't handle iocage jails).

No longer the case in 11.2, but I do see a lot of threads like this where people have issues with Plex/plugin installation, so maybe there are still issues (I have not personally experienced them and have had good success with recent installs of Plex via the plugin)
 

Bhoot

Patron
Joined
Mar 28, 2015
Messages
241
I updated plex through the GUI. I guess all you need is patience. From what I could figure the update gets stuck at 75% for a long period. I believe that’s the part where the file is being downloaded from the repository. It’s very (add another very) slow. I’d recommend you going for a coffee and really long phone call while that’s on. I timed mine and it was at 75% for just under 11 minutes. One of my friends ran it on CLI logging 8m42s for download alone, so I guess that’s the bottle neck.
Bottom line don’t abort till you get an error. Even if you think it’s hanged, go for a jog and come back to check the results.
 
Top