I have encounter the following error on my TrueNAS SCALE server:
#### Failed to sync TRUENAS catalog: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/var/run/middleware/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: [EFAULT] Failed to clone 'https://github.com/truenas/charts.git' repository at '/var/run/middleware/ix-applications/catalogs/github_com_truenas_charts_git_master' destination: Cloning into '/var/run/middleware/ix-...
2024-05-09 18:15:59 (Europe/London)
I have tried to curl the corresponding resources. It reported the following error:
$ curl 'https://github.com/truenas/charts.git'
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I googled a bit and some mentioned the ntp problem hence I checked the date. It was correct.
Sure. I have set up an internal BIND9 master server which provides a closed DNS look up for a domain “home.ngs”. A reverse-proxy server is running on a Synology NAS. Hence I have directed wildcard look up (*.home.ngs) to it.
Unfortunately for reasons beyond my comprehension. It seems matched “github.com” or “github.com.home.ngs” on the curl/nslookup/ping commands but dig worked fine.
I have to remove the line domain in /etc/resolv.conf of TrueNAS SCALE 24.04.0 via WebUI in order to fix it as shown below.
The content of BIND9 master record of /etc/bind/zones/db.home.ngs as following:
;
; BIND data file for home.ngs
;
$ORIGIN home.ngs.
$TTL 7d ; Time to live for a week
@ IN SOA ns.home.ngs. hostmaster.home.ngs. (
2024042400
7d
1d
28d
7d )
IN NS ns.home.ngs.
IN NS ns2.home.ngs.
IN A 10.27.0.50
IN TXT "Ng's Home LAN"
;
; Addresses for the canonical names
;
@ IN A 10.27.0.50
ns IN A 10.27.0.50
ns2 IN A 10.27.0.40
ds918plus IN A 10.27.0.50
;
; Aliases
;
* IN CNAME ds918plus
I am not familiar with these. How to add a “.” domain? Is it a zone config file on the DNS server?
Btw, the current bind9 settings was working fine. All the clients on the LAN have not problem until I have reinstalled TrueNAS SCALE 24.04.0 and restored the old configurations in order to convert the boot pool into a mirror with a smaller drive added.
May be TrueNAS not properly removing search . from /etc/resolv.conf, not sure. Could also be some form of DNS caching linux does, it’s not something I’ve ever looked in to.
Thanks for this thread I was getting an error when configuring apps on a new install that it couldn’t clone the apps catalog, and it turned out it was dns. I had the static IP set but no dns server, doh.