SOLVED Time and NTP is going crazy

IonutZ

Contributor
Joined
Aug 17, 2014
Messages
108
Actual time is 1:21pm EST. TrueNAS-SCALE-22.12.2. NTPs are local Windows ADs and time is correct on them. I don't understand where this machine is picking up its time from. Directory services are being used, but the time discrepancy is making SMB fail. Any ideas?

1688577698839.png

1688577714106.png

1688577741900.png


After restarting NTP service:
1688577763452.png

1688577886430.png

5 seconds after restarting ntp, ntpq starts failing again.
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
BIOS clock?

 

IonutZ

Contributor
Joined
Aug 17, 2014
Messages
108
I used the date command to set local time to something that wasn't out of bounds. And then I used hwclock to set the BIOS clock based on local. Seems to work for now!
 

Megalodon

Cadet
Joined
May 30, 2021
Messages
4
This has been causing me problems lately. It's a real nuisance because when the time drifts more than a certain amount it breaks TOTP auth on the webUI. I was able to auth by ssh and reset the admin password using /usr/bin/cli which disables TOTP, thankfully. Getting locked out by the time starting to drift is a bad failure mode and I was lucky I had ssh already set up on this system and not blocked by a firewall or something. Unfortunately I don't think I can enable TOTP as long as I am not confident in the NTP setup.
 
Top