Failed to sync OFFICIAL catalog.

Kasazn

Explorer
Joined
Apr 17, 2021
Messages
60
Hi guys, been having this notification sent to my mail from my SCALE for 2 days already. Never happened before.
  • Failed to sync OFFICIAL catalog: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/GEN750GB_2/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/GEN750GB_2/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/GEN750GB_2/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': gnutls_handshake() failed: Error in the pull function. '
Wondering if anybody else is having the same issue?
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,691
This is what happens if DNS and default gateway are not working... can you check?
 

WDBlue

Dabbler
Joined
Feb 25, 2023
Messages
20
I have been receiving the same error as seen below and I have already checked the DNS and default gateway, both on the Server itself as well as on the firewall.

[EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/Bruce/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/Bruce/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/Bruce/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Could not resolve host: github.com '
 

WDBlue

Dabbler
Joined
Feb 25, 2023
Messages
20
I have been receiving the same error as seen below and I have already checked the DNS and default gateway, both on the Server itself as well as on the firewall.

[EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/mnt/Bruce/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/Bruce/ix-applications/catalogs/github_com_truenas_charts_git_master stderr: 'Cloning into '/mnt/Bruce/ix-applications/catalogs/github_com_truenas_charts_git_master'... fatal: unable to access 'https://github.com/truenas/charts.git/': Could not resolve host: github.com '
I don't know how to retract this, but I found out that my DNS settings were not properly set after I moved from DHCP to Static on the Server. After updating the /etc/resolv.conf file with good DNS nameservers, the issue went away.
 

Bikerchris

Patron
Joined
Mar 22, 2020
Messages
208
I don't know how to retract this, but I found out that my DNS settings were not properly set after I moved from DHCP to Static on the Server. After updating the /etc/resolv.conf file with good DNS nameservers, the issue went away.
Hello, would you mind explaining how you did that? I know it's vi to edit a file, but how did you format the file? Thank you.
 

WDBlue

Dabbler
Joined
Feb 25, 2023
Messages
20
Hello, would you mind explaining how you did that? I know it's vi to edit a file, but how did you format the file? Thank you.
I typed the following:
If you use nano:
sudo nano /etc/resolv.conf
I then went to the nameserver line and put in 1.1.1.1 at the end.
then I hit ctrl+x then "y" then enter

If you use vim:
sudo vi /etc/resolv.conf
the press "i" for insert
then arrow down to the nameserver line and arrow to the end and type 1.1.1.1
press esc then wq then enter

you can replace 1.1.1.1 with whatever DNS server you want. I just use cloudflare.

if you are already root or have already done a sudo su -, then you can leave out sudo.
 

Bikerchris

Patron
Joined
Mar 22, 2020
Messages
208
Thank you for that @WDBlue , next time I boot it up I'll give that a whirl. Really appreciate you taking the time to write the instructions, very helpful.
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
@WDBlue, @Bikerchris, this is not the recommended way to set DNS servers. The correct way is to set them in Network->Global Configuration

GlobalConfigurationSCALE.png
 

Bikerchris

Patron
Joined
Mar 22, 2020
Messages
208
Thank you @Samuel Tai , very much appreciated. For my case the Global has always been used, but containers and/or app manager don't seem to be communicating out as of late. Completely agree though.
 
Top