If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

FreeBSD Jail + Plex Looking for Servers

stratacast1stratacast1 Posts: 18Members ✭✭

For a while now I have had Plex set up in a Linux container, but have just switched to FreeBSD 11.1 and have gone the jail route. I installed plexmediaserver from ports successfully and can visit plex via my server's ip address (172.16.0.12:32400/web) and I can successfully log in, but I am stuck at "Looking for servers". I saw one guy post a similar problem and saw it was a subnetting problem, but I tried that and found that wasn't the solution for me. So who can help me get back to using this lovely service and get my devices to find my local plex server? :smile:

Best Answer

  • stratacast1stratacast1 Posts: 18Members ✭✭
    Accepted Answer

    Ooooooooooh my lanta. Can I get idiot award of the month please? I didn't realize Plex needed you to set "allowedNetworks" in the configurations. I honestly didn't know because it literally worked out of the box on Linux, despite being in separate networks. It works now!! insert facepalm emoji here

    FreeBSD people: long story short, you don't need to use VNET jails to handle broadcasts, if your server is on a separate local network go to "/usr/local/plexdata/Plex Media Server" and edit the Preferences.xml file and add allowedNetworks="172.16.0.0/28,192.168.10.0/26" with your networks being your respective networks.

    I love when the solution is too simple to even consider haha :|

«1

Answers

  • ahughes03ahughes03 Posts: 153Members, Plex Pass Plex Pass
    edited August 4

    @stratacast1 Is VIMAGE enabled?

    My Plex Server: https://pcpartpicker.com/b/qbJV3C
    My Plex Clients: 3x Odroid C-2 and OpenPHT, a few phones and tablets, etc..
    Setting up a Plex Server on FreeNAS "the right way"
    Setting up your Plex Dataset on FreeNAS "the right way"

  • TurboJailerTurboJailer Posts: 305Members ✭✭✭

    Sounds like Plex is having difficulty authenticating. Can you ping out from the jail shell?

  • stratacast1stratacast1 Posts: 18Members ✭✭

    @ahughes03 I do not have VIMAGE enabled, should I recompile my kernel with it and change my jail to a VIMAGE jail?

    @TurboJailer nope "ping: ssend socket: Operation not permitted" to be able to do that I'd need to create the jail with its own networking stack correct?

  • TurboJailerTurboJailer Posts: 305Members ✭✭✭

    What is the contents of /etc/resolv.conf in the jail?

  • stratacast1stratacast1 Posts: 18Members ✭✭

    nameserver 172.16.0.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    options edns0

    I left out my actual DNS server by my ISP for my own privacy, so I put Google DNS in its place. To note: I had this working before with LXD containers on Ubuntu Server 16.04 and the same DNS servers

  • TurboJailerTurboJailer Posts: 305Members ✭✭✭
    edited August 5

    One last one. What's the output of ifconfig from the jail?

    ETA: Also what jail manager are you using?

  • stratacast1stratacast1 Posts: 18Members ✭✭

    bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
    ether 2c:41:38:87:3a:16
    hwaddr 2c:41:38:87:3a:16
    inet 172.16.0.12 netmask 0xfffffff0 broadcast 172.16.0.15
    media: Ethernet autoselect (1000baseT <full-duplex,master>)
    status: active
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    groups: lo
    pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33160
    groups: pflog

    I am using py3-iocage 0.99 which is built from the ports tree as my jail manager

  • stratacast1stratacast1 Posts: 18Members ✭✭

    bump
    From my reading, I'm seeing there's an issue with the jail receiving broadcast messages so I may have to make a VNET jail for this application. I'm certainly having an impossible time getting my bridged interface working though

  • stratacast1stratacast1 Posts: 18Members ✭✭

    UPDATE: creating the jail as a VNET jail does not work

  • stratacast1stratacast1 Posts: 18Members ✭✭

    bump bumps

  • shippishippi Posts: 77Members, Plex Pass Plex Pass

    I don't know much about all that jail stuff but I know a little about networking ;)
    You said, you already checked if there isn't a problem with your logical network setup... so what did you tried or how it is set up?
    Is your client in the IP range of 172.16.0.0/28 (172.16.0.1-172.16.0.14) and the subnet set to /28 (255.255.255.240)? Otherwise, the client would really have a problem to see the broadcast.

    E.g.: Your Plex server would broadcast on 172.16.0.15 and if your client is in the network 172.16.0.0/24 then it would listen on 172.16.0.255, therefor they wouldn't see each others broadcast.

  • stratacast1stratacast1 Posts: 18Members ✭✭

    Hey shippi! Yes, I have my networking properly assigned so that it is using a /28 subnet. What I'm seeing right now though may be one of two things:
    1. I have a defaultroute set as 172.16.0.1 (which is correct), but I wonder if that defaultroute gets in the way of Plex communications. I'm currently trying to access Plex from a 192.168.10.0/26 network. On a test FreeBSD machine, I put Plex on and tried to find it and it worked as I expected from a client on the 192.168.10.0 network. However, not so much across networks which is odd because I didn't have this issue with my Linux box setup on the other network

  • stratacast1stratacast1 Posts: 18Members ✭✭
    Accepted Answer

    Ooooooooooh my lanta. Can I get idiot award of the month please? I didn't realize Plex needed you to set "allowedNetworks" in the configurations. I honestly didn't know because it literally worked out of the box on Linux, despite being in separate networks. It works now!! insert facepalm emoji here

    FreeBSD people: long story short, you don't need to use VNET jails to handle broadcasts, if your server is on a separate local network go to "/usr/local/plexdata/Plex Media Server" and edit the Preferences.xml file and add allowedNetworks="172.16.0.0/28,192.168.10.0/26" with your networks being your respective networks.

    I love when the solution is too simple to even consider haha :|

  • shippishippi Posts: 77Members, Plex Pass Plex Pass

    Good to see that you could solve it ;)

  • Dpain911Dpain911 Posts: 6Validating, Plex Pass Plex Pass
    edited August 22

    Hi Guys, Ive been haveing the same problems for ages. triedgoing to the directory to chnage the preferences.xml in the answer above for which i have to say Thanks Stratacast1!.
    when i do this, it tells me there is no such directory as plexdata. that is as far as this goes. any suggestions?
    thanks guys,

    Also definately down to the server being unauthorised. as plexmediaserver_1 as unathorised on my iphone. hope this helps

  • stratacast1stratacast1 Posts: 18Members ✭✭

    Hey Dpain911! I'm glad this helped you. Have you checked to make sure the contents of plexdata are owned by plex? Try running chown -R plex:plex /usr/local/plexdata/Plex\ Media\ Server and then restarting the Plex service service plexmediaserver restart

  • Dpain911Dpain911 Posts: 6Validating, Plex Pass Plex Pass

    Hey Staracast1 Sorry for the very late reply.Sadly i have tried this, it has not worked. it still tells me that there is no such file or directory. I have also checked by listing the contents of the jail. ( that said, not sure if that would even show)

  • ahughes03ahughes03 Posts: 153Members, Plex Pass Plex Pass

    @dpain that directory/file would exist in a Plex jail that was set up from pkg/ports. Did you install via the plugin? If so, your preferences file will be elsewhere.

    My Plex Server: https://pcpartpicker.com/b/qbJV3C
    My Plex Clients: 3x Odroid C-2 and OpenPHT, a few phones and tablets, etc..
    Setting up a Plex Server on FreeNAS "the right way"
    Setting up your Plex Dataset on FreeNAS "the right way"

  • Dpain911Dpain911 Posts: 6Validating, Plex Pass Plex Pass

    Ahh this makes sense. This was installed throughthe plug in. seeing if i can find the location. Still any help would be awesome

  • HDKDarrinHDKDarrin Posts: 2Members

    Hey Dpain911, try /var/db/ that's where my plexdata directory is.

«1
Sign In or Register to comment.