[SOLVED] Post FreeNAS 11.2 OS Update & New Jail, Plex Server can't be found

Server Version#: 1.14.1.5488-CC260C476
Player Version#: 3.77.4

As title says, recently updated to 11.2 FreeNAS after v9 jail stopped updating. Deleted old jail, created new one under 11.2 jail creation using v11.2 release. Did PKG install, not port version (tried both) when launching Plex is searching for server. Jail storage is mounted, as before. Attempted deleting the Preferences.xml file no resolve. Unsure if subnettting or IP configuration is causing the problem. Previous jail was running on assigned local IP, verified that all old jail data was deleted.

Any tips?

1ST UPDATE: Removed the FreeBSD 11.2 jail completely and switched over to the supported FreeNAS plugin version, issue still occurs.

2ND UPDATE: Backed up FreeNAS configuration and wiped the OS USB drive and reinstalled a sole 11.2 boot environment and upgraded the ZFS volumes for 11.2. Created a new jail, quarterly FreeBSD release is now 1.14.1.5488, installed, server still not recognized. Ruling out preexisting database files stored on mount point drives.

[SOLVED] 3RD UPDATE: My lack of understanding Netmask could have been my issue all along but here are the steps I went about fixing it.

Jail Settings / Properties

Basic Properties:

  • Changed the IPv4 Netmask to 24.

Jail Properties:

  • Allow Raw Sockets

Network Properties:

  • Interfaces set to vnet0:bridge0 (this wasn’t changed)
  • vnet0_mac (I copied this generated address, then deleted it.)
  • vnet_default_interface set to None

I saved the jail and tried to launch it and was met with the same VNET error as before. I updated the jail and once down the jail is running automatically. I stopped it, went back into the Network Properties and pasted the generated MAC address back in and saved it. Repeated the same update process and finally launched into Shell and installed Plex Media Server.


I hope this helps anyone that had my same issues.

1 Like

You will need to switch to the new server setup. Plex seems to tenaciously hold on to the servers that have been signed in even if they are no longer available.

https://support.plex.tv/articles/202796273-why-are-there-old-or-duplicate-server-entries-in-the-dashboard-sidebar/

It is not an issue with FreeNAS but rather Plex that is causing this.

I had thought about this as well. Under my ‘Authorized Devices’ there are only entries for Web access, nothing for the server, nevertheless all entries have been deleted and I have logged back in on the local URL still no change.

I am having the same issue. Freenas forums are saying its Plex causing the problem and PLex is saying its Freenas. Is there a way I can provide some report to find out how to fix this? My router is wide open to the world right now with not a firewall in site, but Plex is NOT talking whatsoever to the PMS on Freenas 11.2 . There has to be a simple fix but 11.2 Freenas has absolutely no settings anywhere that says “Let the world talk to this jail / plugin”. Its so frustrating as PLex will only support servers on the 11.2 platform but when you do a clean install of 11.2 Freenas and follow the install plugin tutorial to a letter, it just hangs on the “Looking for server option”.

My guess would be FreeNAS networking settings on the jail. What’s the TCP/IP info for your network? IP address for the FreeNAS server? IP address for the Plex jail? Can you ping the Plex jail’s IP address?

In other words, basic networking troubleshooting.

Yeah, you do not want to be doing this. Very bad idea.

While waiting for @markthered to reply I’ll jump in with my info

Plex FreeNAS Jail is 192.168.1.101/32, running on epair0b, attempted to run on vnet0 (according to recommendations from FreeNAS Resources page but VNET fails when attempting to set up a jail with it running. The single port 32400 is open outside of the network and I can confirm that its open remotely. This is the error I receive:

Error: concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 128, in main_worker
    res = loop.run_until_complete(coro)
  File "/usr/local/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 88, in _run
    return await self._call(f'{service_name}.{method}', serviceobj, methodobj, params=args, job=job)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/worker.py", line 81, in _call
    return methodobj(*params)
  File "/usr/local/lib/python3.6/site-packages/middlewared/schema.py", line 668, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/plugins/jail.py", line 542, in start
    iocage.start()
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/iocage.py", line 1654, in start
    callback=self.callback
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 66, in __init__
    self.__start_jail__()
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_start.py", line 481, in __start_jail__
    _callback=self.callback)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 81, in logit
    _callback(content, exception)
  File "/usr/local/lib/python3.6/site-packages/iocage_lib/ioc_common.py", line 64, in callback
    raise callback_exception(message)
RuntimeError: 
Stopped plexmediaserver_1 due to VNET failure
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 161, in call_method
    result = await self.middleware.call_method(self, message)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1109, in call_method
    return await self._call(message['method'], serviceobj, methodobj, params, app=app, io_thread=False)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1046, in _call
    return await self._call_worker(serviceobj, name, *args)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1073, in _call_worker
    job,
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 1004, in run_in_proc
    return await self.run_in_executor(self.__procpool, method, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/middlewared/main.py", line 989, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
RuntimeError: 
Stopped plexmediaserver_1 due to VNET failure

Started fine and got to the management page to add my Library. Critical Error with the Core system. So had a look at some You Poo videos and followed them and now I have the same
Issue with Vnet failure.

Ports - Open
Permissions - Set
Mount Points - Mounted

Been using this since version 9 with hardly any issues and before anybody gets pedantic I destroyed the Old Jail / Plug In and started a fresh instal. Been into my Plex acc and removed all the old server info also - Vnet Failure

OK Fixed it!!!

Delete the Plugin

You need to delete the Jail / Jails (esp if Upgrading from older Freenas).

Run a ZFS Scrub

Re-install Plex and then Stop it

Nav to Jails

Create a Mount Point from your Storage to /mnt/Volume1/iocage/jails/plex/root/media

Do this using the file tree and NOT typing it in (Don’t seem to like it)

Restart the Plugin (wait for DHCP)

Open Management and add your libraries using the file tree under /media

Happy Plex!

3 Likes

James, I friggin’ love ya! Been using every single troubleshooting step out there for this problem that a lot of people seem to be having and your extra steps here worked for me. I can get back into management for the freenas server and add libraries!

Now onto the next problem “There was an unexpected error loading this library”.

1 Like

Cheers dude!

Loading the Library is tricky, Instead of using the old method you need to select the Library through the file tree. If you just did a new Install, hit library refresh in Plex and it will update your Library. Provided you mounted it properly that is, if not check your mount points. Remember to stop the plugin everytime you do anything with it.
Don’t understand why the people above are trying to do it via Shell. At one point the plugin system was for lack of a better word ■■■■ and wouldn’t update. 11.2 U3 seems to have addressed loads of issues I had with the system.

Hope that helps you along!

Respect

James

I was having this same issue. When I was mapping the storage I found that I needed to create the jail storage path via an SSH connection to the jail. Then when I went into FreeNAS to mount the correct folder the jail folder was already present. Typing in the jail folder when it didn’t already exist caused the issue for me. Definitely a FreeNAS problem. These issues I was having with Sonarr.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.