Connection to internet problem

JosephP

Cadet
Joined
Nov 17, 2020
Messages
2
Hello from a newbie!

i've setup my first TrueNAS and everything is good, but:

when i tried to install plugins i got "Failed to connect to github.com port 443: Connection refused".
After a little search i tried setting manual IP, nameservers and gateway and still nothing. I can access (ping) local IPs but nothing online.
Otherwise the file server works great. Any ideas?

Full error message:
Code:
Get Plugins Failed 
[EFAULT] Cmd('git') failed due to: exit code(128)  cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/Scylla/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git  stderr: 'Cloning into '/mnt/Scylla/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'... fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Failed to connect to github.com port 443: Connection refused '

more info..

Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
    await self.future
  File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 399, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.8/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.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/jail_freebsd.py", line 367, in available
    return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
  File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 332, 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/Scylla/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git
  stderr: 'Cloning into '/mnt/Scylla/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'...
fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Failed to connect to github.com port 443: Connection refused


P.S. I also get ConnectionError when trying to add a jail
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Do you have any proxy or filter in front of your TrueNAS system reaching the internet? That error usually means it is getting blocked by something on your network.
 

Tigersharke

BOfH in User's clothing
Administrator
Moderator
Joined
May 18, 2016
Messages
893
I got bit by outbound NAT being turned off in my firewall/router. I believe I need such a thing because there are technically two routers and two DHCP servers (and two firewalls) between my PC and the internet. One is my OPNsense firewall, the other is the Comcast Xfinity Arris device which has wifi, telephony, firewall, and dhcp. I wish you success in solving this connectivity problem. Also, if you can ping from your firewall box/device or your setup approximates mine, then it is most likely NAT. You cannot ever assume that if firefox is working that there will be no other problems, firefox is quite self-contained and will be immune to the majority of issues and misconfigurations.
 

JosephP

Cadet
Joined
Nov 17, 2020
Messages
2
Do you have any proxy or filter in front of your TrueNAS system reaching the internet? That error usually means it is getting blocked by something on your network.
nothing like that, direct eth to router, no proxy and checked for filters/rules, disabled firewall.

I got bit by outbound NAT being turned off in my firewall/router. I believe I need such a thing because there are technically two routers and two DHCP servers (and two firewalls) between my PC and the internet. One is my OPNsense firewall, the other is the Comcast Xfinity Arris device which has wifi, telephony, firewall, and dhcp. I wish you success in solving this connectivity problem. Also, if you can ping from your firewall box/device or your setup approximates mine, then it is most likely NAT. You cannot ever assume that if firefox is working that there will be no other problems, firefox is quite self-contained and will be immune to the majority of issues and misconfigurations.
i have ISP's router which is quite simple and i don't see any NAT options.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Since its https:// which is failing, can you check your TrueNAS date/time? If its way off, that could be a reason for the https connections failing.
 
Top