Having issues with getting my NAS to connect to the internet

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
So after spending about 4 hours reading over 12 help threads on trying to fix my issues with getting plugins installed I caved and needed to ask for help on here... I know its a super simple problem but I'm just lost since I have no idea how to fix it... in short

-Clean install of TureNAS 12.0-U6.1 (only SMB and users are setup)
-I'm trying to install a plugin
-I get the error
Code:
 
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 367, in run
    await self.future
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 405, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.9/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
    return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 979, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 372, in available
    return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 338, in wait_sync
    raise CallError(self.error)
middlewared.service_exception.CallError: [EFAULT] Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/SAG-Alpha-3tb/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git
  stderr: 'Cloning into '/mnt/SAG-Alpha-3tb/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'...
fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Could not resolve host: github.com
'

-After reading online threads I figure out it's a network-related issue
-Tested my Ping in the shell and sure enough, I get "ping: cannot resolve www.github.com: Host name lookup failure
-Then I get stuck not quite understanding what they mean when talking about all sorts of subnets and IP addresses

So if someone would be willing to guide me through this as I'm quite new to manually setting up stuff like IP's that be lovely!

ill post the extra guff if you care about it

Here are some images for more details: https://imgur.com/a/4kry5ki

SPECS: TureNAS 12.0-U6.1, 8GB NON-ECC ram, i7-7700k, 3TB WD Red drive, z170-i Pro gaming mobo, No NIC's or other PCIe cards plugged in

Thanks in advance!
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Have you set a static IP address in Network > Interfaces?
If yes, you also need to go to Network > Global Settings and configure your DNS server and default gateway.
 

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
Have you set a static IP address in Network > Interfaces?
If yes, you also need to go to Network > Global Settings and configure your DNS server and default gateway.
So as far as I remember when you say "static IP address" you mean turning off DHCP? if so then yep and as for the DNS server and default gateway that is the part that confuses me... I have set it up as shown in the pictures with DNS being 8.8.8.8 and 8.8.4.4
 

Attachments

  • dhcp.PNG
    dhcp.PNG
    25.7 KB · Views: 1,509
  • 8.8.8.8.PNG
    8.8.8.8.PNG
    12.8 KB · Views: 1,565

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Can you ping the default gateway from the TrueNAS? Can you ping 8.8.8.8 from the TrueNAS? Are you sure you want to connect your NAS to the public Internet? At least your IP addresses look like you do ...
 

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
Can you ping the default gateway from the TrueNAS? Can you ping 8.8.8.8 from the TrueNAS? Are you sure you want to connect your NAS to the public Internet? At least your IP addresses look like you do ...
Nope I can't seem to ping 8.8.8.8 either hmmm... Also I pretty much just need to get some plugins installed like plex and unless I'm misunderstanding something you need to connect to a public net todo so.
 

Attachments

  • ping8.8.8.8.PNG
    ping8.8.8.8.PNG
    35.6 KB · Views: 1,636

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Your default gateway seems to be incorrect. Who gave you the network parameters?
You could set your network to DHCP and check what that results in.

As for the plugins, yes, you need Internet connectivity. But the NAS should be located behind a router or firewall, not on publically reachable address space. At least for IPv4 that means RFC 1918 addresses 99% of the time.
 

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
Your default gateway seems to be incorrect. Who gave you the network parameters?
You could set your network to DHCP and check what that results in.

As for the plugins, yes, you need Internet connectivity. But the NAS should be located behind a router or firewall, not on publically reachable address space. At least for IPv4 that means RFC 1918 addresses 99% of the time.
Ok, I gave that a shot trying DHCP with just default gateway set IPv4 set anddd no luck either i got the IP from trying another help thread on here anyway still can't ping any websites or 8.8.8.8 At the moment both my home PC and NAS are plugged into my modem is that a problem or?
 

Attachments

  • default gate.PNG
    default gate.PNG
    12.1 KB · Views: 1,117

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Don't set the gateway or the nameserver when using DHCP ... you will get all of these from your DHCP server. Then you can note them down for manual configuration.
 

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
Don't set the gateway or the nameserver when using DHCP ... you will get all of these from your DHCP server. Then you can note them down for manual configuration.
Alright pretty much restored it to default DHCP set to yes and a blank IPv4... Tried to ping a website and 8.8.8.8 no luck then I did a full reboot and still nada... Hmmm unless you see something wrong here
 

Attachments

  • dhcp1.PNG
    dhcp1.PNG
    42.7 KB · Views: 806
  • all default.PNG
    all default.PNG
    30 KB · Views: 631
  • noping.PNG
    noping.PNG
    38.7 KB · Views: 1,449

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What do ifconfig and netstat -rn output after you set everything to DHCP and rebooted? And please don't post screenshots for command output. Login via SSH and copy&paste the text, please.
 

Izanagi

Cadet
Joined
Nov 14, 2021
Messages
6
This is what i get when i type ifconfig:
Code:
 root@SAG[~]# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: 94.245.55.55/24
        options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
        ether 70:4d:7b:71:13:6e
        inet 94.245.55.181 netmask 0xffffff00 broadcast 94.245.55.255
        inet 94.245.55.189 netmask 0xffffffc0 broadcast 94.245.55.191
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 

And this is what I get from typing netstat -rn:
Code:
 root@SAG[~]# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            94.245.55.129      UGS         em0
94.245.55.0/24     link#1             U           em0
94.245.55.128/26   link#1             U           em0
94.245.55.181      link#1             UHS         lo0
94.245.55.189      link#1             UHS         lo0
127.0.0.1          link#2             UH          lo0

Internet6:
Destination                       Gateway                       Flags     NetifExpire
::/96                             ::1                           UGRS        lo0
::1           


Also sorry about the screenshots but im unsure what you mean by SSH? anyway hope this is more useful!
 
Top