Register for the iXsystems Community to get an ad-free experience

[TrueNas Scale] can't update nor sync apps (DNS or gateway issue?)

not_r8

Cadet
Joined
Jun 29, 2022
Messages
4
Hello,

first of all I'm relative new to TrueNas so please excuse any beginner mistakes or obvious fixes for my problem that i didn't see.

After setting up my TrueNas Scale System:
OS Version:TrueNAS-SCALE-22.02.2
Model:Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
Memory:31 GiB

I can't update the OS because :"TrueNAS was unable to reach update servers." as well as i can't see any available apps "Unable to retrieve Available Applications"
If i click on "Available Applications" the task manager shows multiple failed tasks:
(catalog.items:)
Error: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/truenas/charts.git /mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Failed to connect to github.com port 443: No route to host '
(catalog.sync:)
Error: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/truenas/charts.git /mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Failed to connect to github.com port 443: No route to host '


On top of that i get two critical alerts when log into the WebGUI:

CRITICAL

Failed to start kubernetes cluster for Applications: [EFAULT] Unable to configure node: Cannot connect to host 127.0.0.1:6443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1123)')]

2021-07-13 19:31:09 (Europe/Berlin)
and:

CRITICAL

Failed to sync OFFICIAL catalog: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/truenas/charts.git /mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/tank/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Failed to connect to github.com port 443: No route to host '

2021-07-13 19:30:04 (Europe/Berlin)


i have been searching for quiet some time for a solution to this problem and i found similar threads that solved this by either setting the IPv4 Gateway (in the Network -> Global Configuration) to the routers ip Adress or by entering a DNS Server for Nameserver 1. But sadly neither of those things solved this issue for me.

I've tried pinging an IP from my server which works fine for me as well as pinging a domain.

(I don't know if it is relevant but the standard DNS server from the router is a Pie-Hole)


Any help is really appreciated.
Thanks!
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
1,692
It seems like networking.. can you ping from the trueNAs systems (Or is that your server?)

Please document all your network interfaces and settings.
There is no firewall involved?
 

not_r8

Cadet
Joined
Jun 29, 2022
Messages
4
Thanks for the reply.

With server i meant the TrueNas System, but interestingly i can ping "google.com" but "github.com" and truenas.com" are unreachable ("Destination Host Unreachable") for the TrueNAS System. (Same thing if i ping the ip addresses instead of the domain name, so i would think it's not a DNS-Problem?)

Those are my network settings on the TrueNAS System.
1656563336419.png

It uses a DHCP-Address, but i've configured my router so that it always gives the TrueNAS the same IP-Address.

In terms of firewall there is only the router standard firewall and i did not change any settings or exposed any ports.
 

not_r8

Cadet
Joined
Jun 29, 2022
Messages
4
Thanks for the reply.

With server i meant the TrueNas System, but interestingly i can ping "google.com" but "github.com" and truenas.com" are unreachable ("Destination Host Unreachable") for the TrueNAS System. (Same thing if i ping the ip addresses instead of the domain name, so i would think it's not a DNS-Problem?)

Those are my network settings on the TrueNAS System. View attachment 56499
It uses a DHCP-Address, but i've configured my router so that it always gives the TrueNAS the same IP-Address.

In terms of firewall there is only the router standard firewall and i did not change any settings or exposed any ports.
Maybe i should add how i cane to the conclusion that the DNS isn't the problem, that's because "nslookup" works just fine for every domain/ ip address i can think of (including "truenas.com" and "GitHub.com")
 

not_r8

Cadet
Joined
Jun 29, 2022
Messages
4
UPDATE:

Problem is solved....

I don't know why but the system time that was displayed didn't match the time when i typed "date" in shell.
After setting the time in the bios 2 hours before the actual time it fixed everything...!?

I don't know why but everything works now.
 
Top