Pcornel
Linux · Time & NTP

Time Synchronization Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=2834

Back to the Topic

Answer

Time synchronisation troubleshooting finds why a clock is not synchronised: no reachable source, blocked UDP 123, two time services fighting, a virtual machine syncing from its host, or a large offset that will not be stepped.

Remember

Run only one time service. In VMs, disable hypervisor time sync if NTP is used (or the reverse). chrony slews slowly — a large offset needs makestep.

First checks

  • timedatectl — time, time zone and sync status
  • chronyc tracking — offset and source (chrony)
  • chronyc sources -v — time sources and reachability
  • date -u — UTC time

Verify in this order

one time service → sources reachable on UDP 123 → source selected → offset reduced → synchronized

Where it usually breaks

First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2834

Confirmation

Confirm action

Continue?