SSL certificate problem: certificate is not yet valid

Version: TrueNAS-13.0-U6.2

I noticed some of my jails features not working, so when I logged into truenas to maybe see if the jails had items I got the following error when trying to load the plugins:

[EFAULT] Cmd('git') failed due to: exit code(128) cmdline: git clone -v https://github.com/ix-plugin-hub/iocage-plugin-index.git /mnt/jails/iocage/.plugins/github_com_ix-plugin-hub_iocage-plugin-index_git stderr: 'Cloning into '/mnt/jails/iocage/.plugins/github_com_ix-plugin-hub_iocage-plugin-index_git'... fatal: unable to access 'https://github.com/ix-plugin-hub/iocage-plugin-index.git/': SSL certificate problem: certificate is not yet valid '
Error: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
    await self.future
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 393, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1159, in run_in_thread
    return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1156, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 372, in available
    return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 326, 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/ix-plugin-hub/iocage-plugin-index.git /mnt/jails/iocage/.plugins/github_com_ix-plugin-hub_iocage-plugin-index_git
  stderr: 'Cloning into '/mnt/jails/iocage/.plugins/github_com_ix-plugin-hub_iocage-plugin-index_git'...
fatal: unable to access 'https://github.com/ix-plugin-hub/iocage-plugin-index.git/': SSL certificate problem: certificate is not yet valid
'

IDK if this screenshot will help with anything or not

image

Noticed when going to the update page on the truenas server itself i also have this error now:

Unable to connect to url https://update-master.ixsystems.com/TrueNAS/trains.txt: Automatic update check failed. Please check system network settings.

I had SSL errors like a year or so ago and had to jump through all kinds of forum and reddit posts to get it resolved.

Any help on getting this resolved would be greatly appreciated.

Plugins are long since dead.

But this error suggests that your clock is set incorrectly on your NAS. What’s the output of date from the shell?

1 Like

Wed Jan 2 19:34:55 EST 2013

Looks like i got some battery errors and will need to replace the cmos battery

hopefully everything just snaps back to working from there.

Remember to set your BIOS to the local time in UTC, do not set it to your region time unless you happen to live in UTC.

That’s a pretty obvious problem. Once you replace the CMOS battery, reset the BIOS clock to the current time in UTC, and NTP should keep it in sync from there.