New Plex install is not updating meta data/Show posters

fatsoda

Dabbler
Joined
Dec 27, 2017
Messages
11
Hello, i recently upgraded to Freenas 11.3-U1

I noticed after a day it wasnt downloading the posters for the media and also wasnt available to view outside of my network. If i set the jail to work as DHCP it works in that i can see the files through a plex client on the same network and i can download things to and refresh and files etc but as i stated it wont download the posters and media info.

I did some googling and found i should turn on DHCP and set IP manual settings so that the device points to the router and that i should turn on "" Allow raw sockets"" in jail options, and to remove the MAC address save it , save the config, re-add the config and then attempt to run the jail. Im getting the following error

[EFAULT] Please provide a valid NIC to be used with vnet
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 849, in do_update
iocage.set(p, plugin)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/iocage.py", line 1588, in set
iocjson.json_set_value(prop)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 1850, in json_set_value
value, conf = self.json_check_prop(key, value, conf)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_json.py", line 2315, in json_check_prop
silent=self.silent
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 102, in logit
callback(content, exception)
File "/usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py", line 75, in callback
raise callback_exception(message)
RuntimeError: Please provide a valid NIC to be used with vnet

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 403, in update
f'{self._config.namespace}.update', self, self.do_update, [id, data]
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1091, in _call
return await run_method(methodobj, *args)
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 965, in nf
return f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/jail.py", line 851, in do_update
raise CallError(err)
middlewared.service_exception.CallError: [EFAULT] Please provide a valid NIC to be used with vnet

If i then change the default interface to none or automatic i get the following error

Error: [EFAULT] Stopped Plex due to VNET failure

This is the iocage get all results
root@freenas:~ # iocage get all Plex
CONFIG_VERSION:26
allow_chflags:0
allow_mlock:0
allow_mount:0
allow_mount_devfs:0
allow_mount_fusefs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:1
allow_set_hostname:1
allow_socket_af:0
allow_sysvipc:0
allow_tun:0
allow_vmm:0
assign_localhost:0
available:readonly
basejail:0
boot:1
bpf:1
children_max:0
cloned_release:11.3-RELEASE
comment:none
compression:lz4
compressratio:readonly
coredumpsize:off
count:1
cpuset:off
cputime:off
datasize:off
dedup:off
defaultrouter:192.168.1.1
defaultrouter6:auto
depends:none
devfs_ruleset:4
dhcp:0
enforce_statfs:2
exec_clean:1
exec_created:/usr/bin/true
exec_fib:0
exec_jail_user:root
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_system_jail_user:0
exec_system_user:root
exec_timeout:60
host_domainname:none
host_hostname:Plex
host_hostuuid:Plex
host_time:1
hostid:48f48fc8-5109-11e8-a3b7-a0b3cce254f5
hostid_strict_check:0
interfaces:vnet0:bridge0
ip4:new
ip4_addr:vnet0:bridge0|192.168.1.17/24
ip4_saddrsel:1
ip6:new
ip6_addr:vnet0|accept_rtadv
ip6_saddrsel:1
ip_hostname:0
jail_zfs:0
jail_zfs_dataset:iocage/jails/Plex/data
jail_zfs_mountpoint:none
last_started:2020-04-06 06:42:04
localhost_ip:none
login_flags:-f root
mac_prefix:a0b3cc
maxproc:off
memorylocked:off
memoryuse:off
mount_devfs:1
mount_fdescfs:1
mount_linprocfs:0
mount_procfs:0
mountpoint:readonly
msgqqueued:off
msgqsize:off
nat:0
nat_backend:ipfw
nat_forwards:none
nat_interface:none
nat_prefix:172.16
nmsgq:off
notes:none
nsem:off
nsemop:off
nshm:off
nthr:off
openfiles:off
origin:readonly
owner:root
pcpu:off
plugin_name:none
plugin_repository:none
priority:99
pseudoterminals:off
quota:none
readbps:off
readiops:off
release:11.3-RELEASE-p7
reservation:none
resolver:/etc/resolv.conf
rlimits:off
rtsold:0
securelevel:2
shmsize:off
stacksize:off
state:down
stop_timeout:30
swapuse:off
sync_state:none
sync_target:none
sync_tgt_zpool:none
sysvmsg:new
sysvsem:new
sysvshm:new
template:0
type:jail
used:readonly
vmemoryuse:off
vnet:1
vnet0_mac:a0b3cc3141ea a0b3cc3141eb
vnet1_mac:none
vnet2_mac:non

I am able to ping to 8.8.8.8 from within the plex jail and the freenas

I would rate my *nix skills as ... basic, im a network hardware guy but i can follow instructions like the best of them, any and all help is appreciated

Relevant IP Addresses
Plex Jail 192.168.1.17
FreeNas 192.168.1.5
Router 192.168.1.1
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Should work with DHCP or static. When using static, try leaving the interface name blank in Basic Properties. Mine looks like this: ip4_addr:192.168.3.129/24

DHCP needs berkeley packet filter, turn that off when doing static, no need.

Allow raw sockets: I don't have that checked and things are working, again, probably no need.

vnet_default_interface is auto in my network settings.

I did run into something where if there is another jail running that had been named "plex" at some point in its life, this would interfere with a new jail named "plex" communicating. Still not sure whether to blame FreeNAS or my CPE for that one.
 

fatsoda

Dabbler
Joined
Dec 27, 2017
Messages
11
Giving that a try now. The jail will at least start and plex will run with the static settings you mention above. I've told plex to do a meta data update and well see.
 

fatsoda

Dabbler
Joined
Dec 27, 2017
Messages
11
Should work with DHCP or static. When using static, try leaving the interface name blank in Basic Properties. Mine looks like this: ip4_addr:192.168.3.129/24

DHCP needs berkeley packet filter, turn that off when doing static, no need.

Allow raw sockets: I don't have that checked and things are working, again, probably no need.

vnet_default_interface is auto in my network settings.

I did run into something where if there is another jail running that had been named "plex" at some point in its life, this would interfere with a new jail named "plex" communicating. Still not sure whether to blame FreeNAS or my CPE for that one.

This appears to not be working.
 

fatsoda

Dabbler
Joined
Dec 27, 2017
Messages
11
Hey Jailer.

Sorry for long time no reply (i work shifts) i believe thats the thread that i got my initial research about manually setting the IP. Ill go through it again and let you know. Thanks for the help.
 

fatsoda

Dabbler
Joined
Dec 27, 2017
Messages
11
So i did all the below steps and still no beuno.

Its of worth to note that plex isnt contactable from outside the network either

Code:
## On host ##
iocage stop JAIL
iocage set ip4_addr=“vnet0|192.168.100.222/24" vnet="on" boot="on" allow_raw_sockets="1" defaultrouter="192.168.100.1" JAIL
iocage start JAIL
###Then enter the jail and do a quick ping to see if you are getting out##
jls
jexec 7 csh
ping yahoo.com

##Update things##

portsnap fetch update
portmaster -aBd

OR

pkg update && pkg upgrade

##There was a new PMS in the repo##

service plexmediaserver{_plexpass} restart

##Now try playing files and or fetching metadata##

iocage all results
root@freenas:~ # iocage get all Plex
CONFIG_VERSION:26
allow_chflags:1
allow_mlock:0
allow_mount:0
allow_mount_devfs:0
allow_mount_fusefs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:1
allow_set_hostname:1
allow_socket_af:1
allow_sysvipc:0
allow_tun:0
allow_vmm:0
assign_localhost:0
available:readonly
basejail:0
boot:1
bpf:1
children_max:0
cloned_release:11.3-RELEASE
comment:none
compression:lz4
compressratio:readonly
coredumpsize:off
count:1
cpuset:off
cputime:off
datasize:off
dedup:off
defaultrouter:192.168.1.1
defaultrouter6:auto
depends:none
devfs_ruleset:5
dhcp:0
enforce_statfs:2
exec_clean:1
exec_created:/usr/bin/true
exec_fib:0
exec_jail_user:root
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_system_jail_user:0
exec_system_user:root
exec_timeout:60
host_domainname:none
host_hostname:Plex
host_hostuuid:Plex
host_time:1
hostid:48f48fc8-5109-11e8-a3b7-a0b3cce254f5
hostid_strict_check:0
interfaces:vnet0:bridge0
ip4:new
ip4_addr:192.168.1.17/24
ip4_saddrsel:1
ip6:new
ip6_addr:vnet0|accept_rtadv
ip6_saddrsel:1
ip_hostname:0
jail_zfs:0
jail_zfs_dataset:iocage/jails/Plex/data
jail_zfs_mountpoint:none
last_started:2020-04-12 11:35:42
localhost_ip:none
login_flags:-f root
mac_prefix:a0b3cc
maxproc:off
memorylocked:off
memoryuse:off
mount_devfs:1
mount_fdescfs:1
mount_linprocfs:0
mount_procfs:0
mountpoint:readonly
msgqqueued:off
msgqsize:off
nat:0
nat_backend:ipfw
nat_forwards:none
nat_interface:none
nat_prefix:172.16
nmsgq:off
notes:none
nsem:off
nsemop:off
nshm:off
nthr:off
openfiles:off
origin:readonly
owner:root
pcpu:off
plugin_name:none
plugin_repository:none
priority:99
pseudoterminals:off
quota:none
readbps:off
readiops:off
release:11.3-RELEASE-p7
reservation:none
resolver:/etc/resolv.conf
rlimits:off
rtsold:0
securelevel:2
shmsize:off
stacksize:off
state:up
stop_timeout:30
swapuse:off
sync_state:none
sync_target:none
sync_tgt_zpool:none
sysvmsg:new
sysvsem:new
sysvshm:new
template:0
type:jail
used:readonly
vmemoryuse:off
vnet:1
vnet0_mac:a0b3cc3141ea a0b3cc3141eb
vnet1_mac:none
vnet2_mac:none
 
Last edited:
Top