No metadata or artwork in FreeBSD jail

Server Version#: Plex Version 1.16.1.1291 (freeBSD)
Player Version#: Version 3.108.2 (web client)

I have my media stored on a NAS, which runs NAS4Free (aka XigmaNAS). I used to have a jail that was freeBSD 11.1. The Plex server runs in this jail, with the source of the library files for plex mounted via an fstab.

Recently, after upgrading to the new plexmediaserver, the web interface stopped giving me access to the server settings. But despite this, the previous server had downloaded artwork from theTVDB and also the MovieDB.

In addition, this plex would not scan my files anymore. So, under the direction of Plex tech support, I updated the freeBSD jail to freeBSD 11.2.
Still, couldn’t get into the server settings.

So I created a new jail, installed a new instance of the plexmediaserver, and started to map my media library. I could see the server settings now, as well as the remote settings. But the problem arose that there was no artwork being downloaded, despite having the agents set to get them from TheMovieDB / TheTVDB prior to local media assets.

Can anyone please help me figure out what is up? I’ve included my logs in the file.
thank you kindly.

Plex Media Server Logs_2019-07-26_21-49-32.zip (2.6 MB)

Can you check if IPv6 is enabled in network settings? I have seen some reports of this causing issues with metadata retrieval.

thanks for your reply. IPv6 is not enabled.

and also, there is NO metadata. At first, I thought it was just the album art. But no metadata is getting loaded at all.
This sucks.
Old server versions worked flawlessly.

Your post should be tagged server-freebsd instead of server-linux.

OK
I will change it.

I also checked that IPv6 is not enabled on my router.
I also used curl to make sure there was no issue with connectivity / timeout.

[root@Test11Jail /]# curl http://image.tmdb.org/t/p/w300/jXtKhWFg3ykUMABl6iZuJs9B462.jpg --output test
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15286 100 15286 0 0 107k 0 --:–:-- --:–:-- --:–:-- 106k

What version is the host running? Kernel is still shared so that should at least be the same OR more recent (i.e. there should be no problem in having a 12.0 host and 11.2 jails, although its probably best to keep them in the same version unless that’s absolutely needed).

How do you have the network setup? To have plex running in a jail VIMAGE/VNET is required, metadata is know to fail without this.

I wouldn’t try 12.0 right now. Too buggy. Both host and jail are at 11.2.

I do not have the Virtual Networking checkbox for vnet, because my old jail didn’t.

I have em0 set for 192.168.1.225/24 (host is 192.168.1.223)

I was referring to FreeBSD 12 not FreeNAS, and I think you’re smart on not going for FreeNAS 12 just yet :slight_smile:

But back to the issue, this should work in 11.2 but VNET is a must for full PMS functionality and its been so for quite some time (Actually in practice it always was but there where some less secure workarounds for at least having metadata work).

A great way to figure what you need for the jail is just look at what the plugin does!

And a note on IPv6, this should work fine since a few versions back (It should listen on both IPv4 and IPv6)!

I garbed this just now from a working FreeNAS box

image

So enable:

  • VNET
  • DHCP
  • BPF

DHCP is optional (but does work with VNET and BPF on)

Also FWIW I did create a new jail on a FreeNAS 11.2 box and set the jail release to 11.2, PMS works and I get artwork and metadata, so all does seems good with the platform!

Please try the settings I posted and let me know if that works.

I’m on NAS4free which is not FreeNAS. Back in the day it was, but now XigmaNAS

Ah sorry, you did state that in the begging but I forgot.

I’m not sure how this is setup in XigmaNAS, but since its FreeBSD based it should be possible, but might be better to ask about that in their forums.

I’m not even sure what they use for jails, is it iocage? if so I might be able to help from command line!

We do have reports of other folks using XigmaNAS and the only thing that was failing at the time was Hardware Transcoding (which should be possible with a FreeBSD 12 base too).

Well, I am quite perplexed. I even enabled vnet and still have no metadata being fetched. Don’t think it is an issue of DNS because

192.168.1.223->getent hosts www.thetvdb.com
2606:4700::6810:e50e www.thetvdb.com
104.16.227.14 www.thetvdb.com
192.168.1.223->sudo jexec 1 bash

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[root@Test11Jail /]# getent hosts www.thetvdb.com
2606:4700::6810:e50e www.thetvdb.com
104.16.227.14 www.thetvdb.com
[root@Test11Jail /]#

The command seems to be returning also the IPV6 address, which is weird because I thought I turned it off. How can I verify that IPV6 is off on both the host XigmaNAS and freeBSD jail (Created with theBrig) ?

Additional information: the same media (folder structure) moved to a Mac running plexmedia server is able to be parsed and patched, so it has to be something with the FreeBSD server or permissions.

What´s the output of ifconfig on both host and jail?

Host:

192.168.1.223->ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
ether 68:05:ca:0f:d8:8f
hwaddr 68:05:ca:0f:d8:8f
inet 192.168.1.223 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT )
status: active
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 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
bridge20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:57:34:1b:62:14
inet 192.168.1.223 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=1
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: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 2000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:7c:d0:00:04:0a
hwaddr 02:7c:d0:00:04:0a
inet6 fe80::7c:d0ff:fe00:40a%epair1a prefixlen 64 scopeid 0x4
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T (10Gbase-T )
status: active
groups: epair

Jail:

[root@Test11Jail /]# ifconfig
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
epair1b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:7c:d0:00:05:0b
hwaddr 02:7c:d0:00:05:0b
inet6 fe80::7c:d0ff:fe00:50b%epair1b prefixlen 64 scopeid 0x2
inet 192.168.1.225 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet 10Gbase-T (10Gbase-T )
status: active
groups: epair

Ok I see an epair interface in the jail so it does look like its using vnet now.

Assuming u can access internet from the jail (which seems to be the case from what you posted before this should work.

Can you do a “refresh all metadata” in one of the failing libaries, wait a litle bit and upload logs?

Plex Media Server Logs_2019-08-02_22-09-12.zip (4.0 MB)