I am trying to set up a Plex media server on my newly minted freeNAS 9.10 computer. This is my first post, so I apologize in advance if I didn't get my post perfectly in accordance with the forum rules.
I set my freeNAS box up at another location (my brother's house). No problems with the FreeNAS 9.10 install. I followed the manual instructions for setting up a WebDAV server, and some online instructions for setting up a Plex media server. No problems there either.
Upon returning home, however, the Plex server no longer worked (the rest appeared to still be fine; I tested the webDAV and it still synced with a client OK). Plex was still installed, but the service would not start. I deleted the plugin and reinstalled, but no luck - service still would not start (after taking several minutes to attempt it).
I searched online to see if others had the problem, and found a few threads that recommended manually configuring a jail rather than using the plugin.
https://forums.plex.tv/discussion/219331/plex-suddenly-stops-working-and-cant-restart-freenas
https://forums.plex.tv/discussion/205807/eli5-on-how-to-setup-plex-on-freenas-please
https://forums.freenas.org/index.ph...all-plex-in-a-freenas-9-3-jail-updated.19412/
However, when employing this method I get an error when trying to update or upgrade packages:
Further research in various forums suggested that DNS resolution was the problem, and to check the /etc/resolv.conf file.
https://forums.freebsd.org/threads/47515/
https://linustechtips.com/main/topic/388747-freenas-jail-issues-continue/
https://forums.freenas.org/index.ph...ackages-in-a-jail-with-the-pkg-command.41793/
I changed my resolv.conf file to use the google DNS servers (8.8.8.8 and 8.8.4.4) so that my resolv.conf files look like:
Still no luck - continues giving the "No address record" error.
Per DrKK's response I then tried pinging the google server:
In a regular root console (outside the jail), however, the ping works
And I have no trouble reaching the plex package from my Windows computer (on the same network as the freeNAS computer).
Both the root and jail resolv.conf files are the same (per above).
This seems to suggest some network/jail issue, but I am at a loss on how to proceed (my my web searching and troubleshooting capabilities have been exhausted, doubly frustrating as it was working 2 days ago in the plugin...). Any help you can provide in resolving this plex install issue would be much appreciated!
Per forum recommendations, here is the result of an ifconfig in the root:
and in the plex jail:
----------------------
FreeNAS-9.10-STABLE-201606270534 (dd17351)
Supermicro A1SAI-2750F
Intel(R) Atom(TM) CPU C2750 @ 2.40GHz
16 GB RAM (Crucial 2-8GB DDR3L-1600 ECC SODIMM)
6 4TB HDD (2 WD Red, 4 Seagate ST4000VN000) in RAID Z-2
2 SanDisk Cruzer Fit 16 GB (mirrored boot)
I set my freeNAS box up at another location (my brother's house). No problems with the FreeNAS 9.10 install. I followed the manual instructions for setting up a WebDAV server, and some online instructions for setting up a Plex media server. No problems there either.
Upon returning home, however, the Plex server no longer worked (the rest appeared to still be fine; I tested the webDAV and it still synced with a client OK). Plex was still installed, but the service would not start. I deleted the plugin and reinstalled, but no luck - service still would not start (after taking several minutes to attempt it).
I searched online to see if others had the problem, and found a few threads that recommended manually configuring a jail rather than using the plugin.
https://forums.plex.tv/discussion/219331/plex-suddenly-stops-working-and-cant-restart-freenas
https://forums.plex.tv/discussion/205807/eli5-on-how-to-setup-plex-on-freenas-please
https://forums.freenas.org/index.ph...all-plex-in-a-freenas-9-3-jail-updated.19412/
However, when employing this method I get an error when trying to update or upgrade packages:
Code:
Updating FreeBSD repository catalogue... Repository FreeBSD has a wrong packagesite, need to re-create database pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: No address record repository FreeBSD has no meta file, using default settings pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: No address record Unable to update repository FreeBSD
Further research in various forums suggested that DNS resolution was the problem, and to check the /etc/resolv.conf file.
https://forums.freebsd.org/threads/47515/
https://linustechtips.com/main/topic/388747-freenas-jail-issues-continue/
https://forums.freenas.org/index.ph...ackages-in-a-jail-with-the-pkg-command.41793/
I changed my resolv.conf file to use the google DNS servers (8.8.8.8 and 8.8.4.4) so that my resolv.conf files look like:
Code:
search local nameserver 8.8.8.8 nameserver 8.8.4.4
Still no luck - continues giving the "No address record" error.
Per DrKK's response I then tried pinging the google server:
Code:
root@plex:/ # ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes ping: sendto: Network is unreachable
In a regular root console (outside the jail), however, the ping works
Code:
[root@PNAS ~]# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8): 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=46 time=26.512 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=46 time=29.223 ms
And I have no trouble reaching the plex package from my Windows computer (on the same network as the freeNAS computer).
Both the root and jail resolv.conf files are the same (per above).
This seems to suggest some network/jail issue, but I am at a loss on how to proceed (my my web searching and troubleshooting capabilities have been exhausted, doubly frustrating as it was working 2 days ago in the plugin...). Any help you can provide in resolving this plex install issue would be much appreciated!
Per forum recommendations, here is the result of an ifconfig in the root:
Code:
[root@PNAS ~]# ifconfig igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> ether 0c:c4:7a:6a:9d:e8 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect status: no carrier igb1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> ether 0c:c4:7a:6a:9d:e9 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect status: no carrier igb2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=400b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO> ether 0c:c4:7a:6a:9d:ea inet 192.168.0.190 netmask 0xffffff00 broadcast 192.168.0.255 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect (1000baseT <full-duplex>) status: active igb3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=403bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,VLAN_HWTSO> ether 0c:c4:7a:6a:9d:eb nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet autoselect status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 02:b6:ee:a0:ab:00 nd6 options=1<PERFORMNUD> id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 7 priority 128 path cost 2000 member: igb2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 3 priority 128 path cost 20000 epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 02:ff:60:00:07:0a nd6 options=1<PERFORMNUD> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active
and in the plex jail:
Code:
root@plex:/ # ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8<VLAN_MTU> ether 02:ff:b0:00:08:0b inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=9<PERFORMNUD,IFDISABLED> media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active
----------------------
FreeNAS-9.10-STABLE-201606270534 (dd17351)
Supermicro A1SAI-2750F
Intel(R) Atom(TM) CPU C2750 @ 2.40GHz
16 GB RAM (Crucial 2-8GB DDR3L-1600 ECC SODIMM)
6 4TB HDD (2 WD Red, 4 Seagate ST4000VN000) in RAID Z-2
2 SanDisk Cruzer Fit 16 GB (mirrored boot)