Can not access Plex Web UI -Connection refused

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
HI All,
Firstly let me say I am an absolute beginner when I comes to TrueNas and anything Linux. Having said that I have installed TrueNAS and created a pool and setup some SMB shares and some user accounts.
I am now trying to get Plex to work, First issue is when installing the plugin it will fail if DHCP is selected, installs fine if NAT is checked. Once installed and a pool mounted I can not get to the web UI via the 'manage' link, get "ERR_CONNECTION_REFUSED" error.

My system is a HP Z820 workstation which is connected to my home network (modem/router)
TrueNAS version is 12.0-U6
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
34 views and no replies? Did i not supply enough info? I have seen similar posts with no solution.....
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Not enough info. First, please provide your network summary. Next, we'll need to see your bridge configuration: ifconfig bridge0.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
HI Samuel,
I entered that command in the system shell and got "interface bridge0 does not exist"
As for my network setup my TrueNAS system is connected to my router via em0 network interface (ip 192.168.0.25\24)
I also have added a Mellanox 10GB nic which I have setup as a direct connection to my desktop, its on a different sub net- 192.168.200.xx
I have installed the Plex plug in as per a how to video on youtube.
I can ping the TrueNAS computer (Hp Z820 workstation) from my desktop.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
No, I meant, please provide a screenshot of Network->Network Summary. Given that you've multiple interfaces, that explains the lack of a bridge interface, which is required for the Plex plugin to use DHCP instead of NAT. For your plugin, please provide the output of iocage get all plex.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
Hi Samuel,
here is a screen shot of the Network Summery page
net sum.JPG


As for iocage get all plex, I tried that both from the shell in the left hand pane and its said- jail 'plex' not found!
And from the plex jail shell- iocage: Command not found.

Apologies if this is not what you have asked for, I am a complete beginner when it comes to FreeBSD or any flavour of Linux and TrueNAS
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Sorry, try iocage get all Plex | more and also ifconfig -afrom the left-hand pane shell.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
HI, I have uninstalled Plex and now I can not get it installed again
plex error.JPG


and here is what i get from the ifconfig command:
Code:
Last login: Sat Nov  6 00:38:23 on pts/0
FreeBSD 12.2-RELEASE-p10 b26f74b5984(HEAD) TRUENAS

        TrueNAS (c) 2009-2021, iXsystems, Inc.
        All rights reserved.
        TrueNAS code is released under the modified BSD license with some
        files copyrighted by (c) iXsystems, Inc.

        For more information, documentation, help or support, go here:
        http://truenas.com
Welcome to TrueNAS

Warning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@truenas[~]# ifconfig -a
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=81209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
        ether d8:9d:67:f3:0f:77
        inet 192.168.0.25 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
        ether d8:9d:67:f3:0f:76
        media: Ethernet autoselect
        status: no carrier
        nd6 options=1<PERFORMNUD>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
        groups: pflog
mlxen0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
        description: 10Gb
        options=ed07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:02:c9:50:ec:12
        inet 192.168.200.1 netmask 0xffffff00 broadcast 192.168.200.255
        media: Ethernet autoselect (10Gbase-SR <full-duplex,rxpause,txpause>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:cf:23:a6:38:00
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:
 
Last edited by a moderator:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, so the problem is you do have a bridge0 interface, but neither em0 nor mlxen0 are bound to it, so that's why DHCP fails, since jails use bridge0.

How is your PC connected? Is it also connected to the 192.168.0.0/24 subnet and to the 192.168.200.0/24 subnet? I recall you have a direct 10G connection to your TrueNAS server.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
So my desktop and Truenas are connected to my network by 1gb ethernet, Truenas box static ip 192.168.0.25 and my desktop DHCP 192.168.0.XX.
10Gb connection is a direct connection between truenas 192.168.200.1 and Desktop 192.168.200.2
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, that's what I thought, but I needed confirmation. The basic problem is the 10G link between your PC and your TrueNAS server doesn't have DHCP, only the 1G link. With a single NIC, the plugin workflow knows to create a bridge, and assign the single NIC to it for jail DHCP networking. With 2 NICs, the workflow bails, since it doesn't know the network topology. To overcome this please:
  1. Delete the current bridge0 interface by running from the shell: ifconfig bridge0 destroy.
  2. Next, create a new bridge0 interface under Network->Interfaces, and click the Add button. Set the type to Bridge, the name to bridge0, and under Bridge members, select your em0 interface. Click Apply to create the bridge0 interface.
Now, you can create your Plex plugin using DHCP. The workflow will use any pre-existing bridge0 interface.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
Thanks, I will try that when i get back home, the Hp z820 workstation that i am running truenas on does have 2 nics on board, but I am only using one of them (beside the 10gb add in card)
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
ok so I tried the ifconfig destroy bridge0 command and the system says bridge0 did not exist, continued with your instructions, created a bridge on emo, continued to install plex plug in and it stalls on the installing plex dialogue box
plex install.JPG


here is a screen grab of my dashboard showing link states...
linkstate.JPG


Thanks for you help so far.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
update, not sure what i changed, i didn't think i had changed anything but now the install is not stalling but back to where i was earlier, gets to about 50% then a dhcp error:
plex dhcp error.JPG


Dont know how to access the jail logs.
 
Last edited:

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Are you using a 0 (zero) or O (capital O) in the bridge0 interface name?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
OK, this is kind of drastic, but pull your Mellanox. Also delete the bridge0 interface you created. If there are any other bridge interfaces showing in ifconfig -a, then run ifconfig <bridge interface> destroy. Once your system is running on just em0, go ahead and create your plugin. Once the plugin is up and running, reinstall your Mellanox.
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
Hi Samuel,
No thats not too drastic, I was thinking of doing a complete reinstall, this current install is only a test setup so there is no crucial data at risk,
I will pull the mellanox card when I get home in about an hour
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
Hi Samuel, Not sure what I'm doing wrong here, i am entering the ifconfig commands as you instruct but the bridge and interfaces do not disappear, they are still visible in the dashboard, I have removed the mellanox card

shell bridge.JPG

dashb.JPG
 

Sabot68

Dabbler
Joined
Oct 31, 2021
Messages
15
Could user accounts be an issue here, could I have screwed up an ACL that is somehow stuffing up the plex install? the plugin has installed before and I have not been able to get to the management web ui.....
 
Top