Cannot connect to host 127.0.0.1:6443

Cymian

Cadet
Joined
Sep 25, 2023
Messages
1
I get an error after startup:

"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 has expired (_ssl.c:1123)')]"​


- I replaced the CMOS battery a short while ago, and fixed the bios time, as suggested by a forum post:

Code:
root@truenas[~]# timedatectl && hwclock
               Local time: Mon 2023-09-25 14:28:12 CEST
           Universal time: Mon 2023-09-25 12:28:12 UTC
                 RTC time: Mon 2023-09-25 12:28:12
                Time zone: Europe/Zurich (CEST, +0200)
System clock synchronized: yes
              NTP service: n/a
          RTC in local TZ: no
2023-09-25 14:28:12.545561+02:00


(not sure why NTP service is n/a, I've added "us.pool.ntp.org" in NTP servers)

- I've tried to reset Kubernetes by either unsetting / deleting ix-applications, or by changing the cluster CIDR, but both failed because of the same error as above:

"Cannot connect to host 127.0.0.1:6443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)')]"

- I also get a similar error when I click on "Refresh All" under "Available Applications":

Failed to sync OFFICIAL catalog: [EFAULT] Cannot connect to host 127.0.0.1:6443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)')]​


My speculation would be that the certificate got created while the system time was off, but I don't know enouth about Linux / TrueNAS / Kubernetes to check.

Any suggestions how to fix this?

Version:
TrueNAS-SCALE-22.02.4
 
Top