Unable to set up Plex iocage jail in FreeNAS 11.2 Beta

Status
Not open for further replies.

strangelove

Dabbler
Joined
Dec 27, 2017
Messages
14
I am setting up a new system using FreeNAS 11.2 Beta. I have already set up a zpool with some datasets. Also an NFS share is working. I would like to have jails for Plex (with plexpass), Syncthing and Transmission. For the setup, I basically followed a guide from the Resource section: here. I already managed to set up a jail for Transmission. When I try to create a jail for Plex, I cannot get it working. It looks like the jail is running, and I am able to ping the default router as well as Google public DNS (8.8.8.8) from inside the jail. However, the Web UI is not accessible from within my LAN at 192.168.1.14:32400/web.

Here are the exact steps taken to set up the Plex jail:
Code:
echo '{"pkgs":["multimedia/plexmediaserver-plexpass","security/ca_root_nss"]}' > /tmp/pkgs.json
iocage create -r 11.1-RELEASE -p /tmp/pkgs.json -n plex ip4_addr="vnet0|192.168.1.4/24" defaultrouter=192.168.1.1 vnet=on boot=on allow_raw_sockets=1
iocage exec plex sysrc plexmediaserver_plexpass_enable=YES
iocage exec plex service plexmediaserver_plexpass start
iocage fstab -a plex "/mnt/tank/media/movies /media/movies nullfs ro 0 0"

After following these steps, I was not able to ping any routes from inside the jail. Adding the following two tunables resolved this issue:

System > Tunables

Variable: cloned_interfaces, Value: bridge0, Type: rc.conf
Variable: ifconfig_bridge0, Value: addm igb0 up, Type: rc.conf

However, I am still not able to access the Web UI from my LAN.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
However, I the Web UI is not accessible from within my LAN at 192.168.1.1:32400/web.
Is this a typo? The IP listed in the iocage create command you listed is 192.168.1.4. Try 192.168.1.4:32400/web.
 

8-bit Yoda

Explorer
Joined
Jun 16, 2018
Messages
68
To point out the obvious... You gave jail an IP address 192.168.1.4
iocage create -r 11.1-RELEASE -p /tmp/pkgs.json -n plex ip4_addr="vnet0|192.168.1.4/24"

... and try to connect to the UI via a different address: 192.168.1.1
The Web UI is not accessible from within my LAN at 192.168.1.1:32400/web.

Is that a typo?
 

strangelove

Dabbler
Joined
Dec 27, 2017
Messages
14
Is this a typo? The IP listed in the iocage create command you listed is 192.168.1.4. Try 192.168.1.4:32400/web.
To point out the obvious... You gave jail an IP address 192.168.1.4


... and try to connect to the UI via a different address: 192.168.1.1


Is that a typo?

My bad, you're right it is a typo. In fact, I try to connect to the correct address: 192.168.1.4:32400/web.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
So what's the output from ifconfig inside the jail and on the FreeNAS host?
 

strangelove

Dabbler
Joined
Dec 27, 2017
Messages
14
host: ifconfig

Code:
igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2400b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6>
ether ac:1f:6b:26:b9:d8
hwaddr ac:1f:6b:26:b9:d8
inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active

igb1: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=6403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
ether ac:1f:6b:26:b9:d9
hwaddr ac:1f:6b:26:b9:d9
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect
status: no carrier

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo

bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:8c:dc:f2:16:00
nd6 options=9<PERFORMNUD,IFDISABLED>
groups: bridge
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: vnet0:2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000
member: vnet0:1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000
member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 55

vnet0:1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: transmission
options=8<VLAN_MTU>
ether 02:ff:60:03:aa:46
hwaddr 02:ad:d0:00:05:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair

vnet0:2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: plex
options=8<VLAN_MTU>
ether 02:ff:60:14:fa:09
hwaddr 02:ad:d0:00:06:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair


jail: ifconfig

Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo

epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:ff:60:14:fa:0a
hwaddr 02:ad:d0:00:07:0b
inet 192.168.1.4 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
groups: epair 
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Ok, all looks good with the bridge settings.

Is the plex service really running?

In the jail, run..

service plexmediaserver-plexpaas status
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Should be an underscore not a dash in my last post. Really don't like the mobile client.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I also misspelled plexpass
 

strangelove

Dabbler
Joined
Dec 27, 2017
Messages
14
service plexmediaserver_plexpass status
Code:
plexmediaserver_plexpass does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d), or is not executable


I must have messed something up during the installation. I destroyed the jail and set it up from scratch (using the commands in my initial post) and now I am able to access the Web UI. Everything seems to be working now. Thanks everyone!
 
Last edited:
Status
Not open for further replies.
Top