My feeling is that the plex service(s) are only listening on the main IP address, and not on the loopback address. If I ssh onto the freenas I can curl http://[the iocage ip]:32400/web/index.html, but not with 127.0.0.1. However, there’s no curl in the plex iocage so I don’t know if this is a proper test.
First of all, it seems like calls towards loopback is okay for a lot of things, except when it comes to update, where it then returns 401
I suspect 401 is actually not the correct return code, and should have been 500 instead, since it works when pulling info from the loopback.
What I suspect, is file rights, disallowing PMS to alter XML files etc. do check that the plex user has the needed rights to the internal library directory
Hi, thanks very much for the quick reply. Please bear with me because I’m not very clued up on the internal workings of plex!
I’ve located what I think you’re referring to as the ‘internal library directory’. Within the iocage it’s under /“Plex Media Server”, which I found odd because this should be for freenas 11.3 and greater, and I’m on 11.2…
Anyway, within that there’s a pile of directories, all owned by plex, all group plex. Permissions are all (as far as I can see) drwxr-xr-x.
I’ll see what upgrades are offered by the freenas gui and apply any I find.
Also, if it’s any relevance, ‘fix match’ searches aren’t returning any results either.
I seem to be on the latest build available, unless I go down the route of a more manual install (presumably):
root@plex:/ # pkg update
Updating iocage-plugins repository catalogue…
iocage-plugins repository is up to date.
All repositories are up to date.
root@plex:/ # pkg upgrade
Updating iocage-plugins repository catalogue…
iocage-plugins repository is up to date.
All repositories are up to date.
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity… done (0 conflicting)
Your packages are up to date.
I’ve done all this. What was a bit weird was that after moving my media out, and doing the re-scan etc, the content was still available in the web player interface. It wouldn’t play, obviously, but my two libraries didn’t empty.
The logs seem better now, but metadata still isn’t appearing.
What I have noticed though is that when I refresh, or try a match search, plex notes an issue understanding upnp information that (for some reason) it’s getting from my IP-based CCTV camera. Could that be upsetting it? Edit: I tried disabling upnp on the camera, and it made no difference.
Edit: Additional weirdness - if I try to to an automatch, the movie vanishes from my library. It’s still on the disk, but no longer appears in plex or can be found in a search.
Edit edit: I’ve found the media this has happened to. They’re in a ‘stack’ of blank icons:
Edit edit edit: Something seems to be happening. According to the events section of the server/status ui, metadata is being downloaded and processed. No posters have appeared yet, but I’ll give it a while before I annoy it any more!
@iainfm you need to make sure VNET is enabled for the iocage jail!
This is needed so FreeBSD (iocage) jails get a full virtual network stack! Please make sure this is enabled, otherwise metadata downloading as well as other issues are expected (in this case its because pms is trying to talk to it self on the loopback address but there is no loopback)!
@mikec_pt Thank you so much! This seems to have done the trick! I did experiment with these settings right back at the start when I couldn’t use use ping within the iocage (socket not permitted), but reverted them back to default when I found that I was only getting a loopback interface.
What’s also weird is that unless I tick the DHCP option (ie use a fixed IP address) I still don’t get an ethernet interface within the jail, but I can experiment with this; it’s a freenas question not a plex one! Edit: I fixed this by changing the interface to vnet0 from bge0
@dane22 Thank you also for your many suggestions, and help. You’ve taught me so much!
Hijacking this comment, as I am having the same problem. I am running PMS via an NVIDIA shield. I have tried the Plex Dance, I have created a whole new library on another server (running via a PC this time) and the same issue is occuring. I have attached my plex logs, and if you could take a look it would be greatly appreciated.
This post is for FreeNAS/BSD and in the solutions you find here will most likely not apply! 99% of the cases for this in BSD is vnet is not enabled, and 1% api downtime.
I can look at the logs but please do open a new thread as I am gonna close this one so we keep it on topic.