FreeNAS-11.1-U2 Plex Issue

Status
Not open for further replies.

Drew Heath

Explorer
Joined
Mar 7, 2016
Messages
80
I am wondering if anyone else has had issues with Plex or other applications in iocage based jails in the U2 update. I have reverted to U1, and everything is backup and running, but would like to move forward for bug fixes and features. Other jails are working fine, it's just the Plex application. The jail loads, has networking, but when trying to run the Plex service, I see the following error:

Mar 01, 2018 11:29:12.047 [0x80a2c6f00] INFO - Plex Media Server v1.11.3.4803-c40bba82e - FreeBSD PC amd64 - build: freebsd-x86_64 freebsd - GMT -08:00
Mar 01, 2018 11:29:12.047 [0x80a2c6f00] ERROR - Failed to determine system locale: locale::facet::_S_create_c_locale name not valid. Defaulting to en-US.
Mar 01, 2018 11:29:12.047 [0x80a2c6f00] INFO - FreeBSD version: 11.1-STABLE (FreeBSD 11.1-STABLE #0 r321665+de6be8c8d30(freenas/11.1-stable): Tue Feb 20 02:38:09 UTC 2018 root@gauntlet:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64), language: en-US
Mar 01, 2018 11:29:12.047 [0x80a2c6f00] INFO - Processor AMD FX(tm)-6300 Six-Core Processor
Mar 01, 2018 11:29:12.047 [0x80a2c6f00] INFO - /usr/local/share/plexmediaserver-plexpass/Plex_Media_Server
Mar 01, 2018 11:29:12.044 [0x80a218000] WARN - Default locale is invalid; falling back on classic+UTF-8
Mar 01, 2018 11:29:12.053 [0x80a218000] INFO - SQLITE3:0x10, 283, recovered 784 frames from WAL file /config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal
Mar 01, 2018 11:29:12.207 [0x80a218000] INFO - SQLITE3:0x10, 283, recovered 901 frames from WAL file /config/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.blobs.db-wal
Mar 01, 2018 11:29:12.227 [0x80a218000] ERROR - HttpServer: Error binding acceptor: Can't assign requested address
Mar 01, 2018 11:29:12.228 [0x80a218000] ERROR - Error: Unable to set up server: listen: Can't assign requested address (N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE)

Network works in and out of the jail. Any ideas?
 
Joined
Apr 9, 2015
Messages
1,258
Mar 01, 2018 11:29:12.227 [0x80a218000] ERROR - HttpServer: Error binding acceptor: Can't assign requested address
Mar 01, 2018 11:29:12.228 [0x80a218000] ERROR - Error: Unable to set up server: listen: Can't assign requested address


Looks like an address conflict.
 

Drew Heath

Explorer
Joined
Mar 7, 2016
Messages
80
That's what I thought. I have taken these steps:

-Via the beta UI, no IPs for jails overlap
-Ping either from my desktop, or from the server, the Plex jail IP responds
-Set the Plex jail not to boot, reboot the server, and ping the Plex jail IP, timeout
-Start the Plex jail, ping, the Plex jail IP responds
-Check Plex, same error
-Revert to U1 without any other changes, Plex is fine
 

srtviperjr

Dabbler
Joined
Jan 30, 2013
Messages
20
This will fix your problem. :)
Code:
iocage exec <jail> 'sysrc ifconfig_epair0_name="epair0b"'
iocage restart <jail>
 

Drew Heath

Explorer
Joined
Mar 7, 2016
Messages
80
Thanks srt, that did the trick. I see that renamed the nic in the jail, and am now interested in why this worked. Thanks in advance!
 

srtviperjr

Dabbler
Joined
Jan 30, 2013
Messages
20
There is a known bug somewhere - this is a workaround for the time being. Personally not sure why it works, I just found it and figured I'd share ;)
 

Drew Heath

Explorer
Joined
Mar 7, 2016
Messages
80
I appreciate that, cheers!
 

afsy_d

Cadet
Joined
Feb 2, 2018
Messages
3
This will fix your problem. :)
Code:
iocage exec <jail> 'sysrc ifconfig_epair0_name="epair0b"'
iocage restart <jail>

Hi all, I'm experiencing the same issue.
- EnableIPv6=no -> doesn't work
- steps below: the epair0b entry seems to be removed after the iocage restart command. Manually editing it does not solve it, the config changes seems to be not persistent.

The issue persists:
Code:
Mar 11, 2018 14:03:55.576 [0x80a216000] DEBUG - Running migrations.
Mar 11, 2018 14:03:55.577 [0x80aa53100] DEBUG - Thread: Running async task started by thread 0x80a216000.
Mar 11, 2018 14:03:55.596 [0x80a216000] DEBUG - HttpServer: Listening on port 32400 with queue of 128 connections.
Mar 11, 2018 14:03:55.596 [0x80a216000] ERROR - HttpServer: Error binding acceptor: Can't assign requested address
Mar 11, 2018 14:03:55.597 [0x80a216000] ERROR - Error: Unable to set up server: listen: Can't assign requested address (N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE)


Using version FreeNAS-11.1-U2 and installed the plex media server via CLI:
Code:
 iocage fetch --plugins dhcp="on" bpf="yes" vnet="on"
12 [ENTER]


[EDIT]
After some troubleshooting, the following seems to work:
  1. Execute the command SRT gave:
    Code:
    iocage exec <jail> 'sysrc ifconfig_epair0_name="epair0b"
  2. Restart the network configuration in the jail
    Code:
    /etc/rc.d/netif restart
  3. (in my case) ask for a new IP Address for the interface:
    Code:
    iocage exec <jail> dhclient epair0b
Haven't been able to test if this is persistent across reboots though.
 
Last edited:

Dillan

Dabbler
Joined
Mar 15, 2016
Messages
21
There is a known bug somewhere - this is a workaround for the time being. Personally not sure why it works, I just found it and figured I'd share ;)

Is there a bug report we can follow?
 
Joined
Jan 7, 2015
Messages
1,155
I could not get plex working on 11.1-U2. I had to rollback to 11.1-U1. I tried all of these fixes and hacks on U2 and if it did work it didnt persist. Mostly it did not work, I can say that, I got it working by not using vnet, but I couldnt play anything. I have it all going using several hacks, but mostly I think the real issue is U2.. The tunable hacks do seem to work for U1 though. Now I have upgraded to the latest version of PMS and my adapter name has reverted to vnet0, and everything is still working. So expect that this will eventually all sort itself out.

I noticed just now there is another new PMS update (not in ports as of yet) fixes include: The server could become unresponsive in certain complex scenarios (#8220) IDK
 

sselph

Cadet
Joined
Mar 16, 2017
Messages
6
I had a similar issue running plex in iocage and reverting back to -U1 solved the problem.
 

amiskell

Patron
Joined
Jun 25, 2015
Messages
266
You are guys using DHCP by any chance? or static IPs defined in the jail configuration?
 
Joined
Jan 7, 2015
Messages
1,155
No. I'm using static.
 

k1n6b0b

Cadet
Joined
Jan 16, 2018
Messages
3
Foolishly updated to U2 and broke all my jails. Implemented the suggested hack workaround
Code:
iocage exec [jail] 'sysrc ifconfig_epair0_name="epair0b";/etc/rc.d/netif restart' ; iocage restart [jail]


worked for me as a stopgap. Plex still says "server configuration unavailable" no idea why
 
Joined
Jan 7, 2015
Messages
1,155
Foolishly updated to U2 and broke all my jails. Implemented the suggested hack workaround
Code:
iocage exec [jail] 'sysrc ifconfig_epair0_name="epair0b";/etc/rc.d/netif restart' ; iocage restart [jail]


worked for me as a stopgap. Plex still says "server configuration unavailable" no idea why
I never could get plex completely working on U2, and I tried for quite some time.
 
Status
Not open for further replies.
Top