Description | This article describes how to troubleshoot the error 'no server suitable for synchronization found' for the NTP server configured on the FortiGate HA environment. |
Scope | FortiGate v7.2.0 and later, v7.4.0 and later. |
Solution |
After the FortiGate HA cluster is configured and synchronized, in some cases it is possible to see that the date/time on FortiGate is not properly updated when the NTP server is used.
FGVM04-HA02 (global) # show system ntp
Ntpd process debug shows the following error:
FGVM04-HA02 (global) # diagnose debug application ntpd -1 FGVM04-HA02 (global) # diagnose debug enable 2024-07-11 11:52:28 name=ntp2.fortiguard.com, id=2000, cb=0x12ef6c0 2024-07-11 11:52:28 waiting for 0 seconds ... 2024-07-11 11:52:28 DNS ntp2.fortiguard.com -> 208.91.112.62 2024-07-11 11:52:28 DNS ntp2.fortiguard.com -> 208.91.112.60 2024-07-11 11:52:28 ntp_dns_cb:1980 in_flight=1 resolved=0 ipv6=0 2024-07-11 11:52:28 waiting for 0 seconds ... 2024-07-11 11:52:28 name=ntp1.fortiguard.com, id=2008, cb=0x12ef6c0 2024-07-11 11:52:28 waiting for 1 seconds ... 2024-07-11 11:52:28 DNS ntp1.fortiguard.com -> 208.91.112.61 2024-07-11 11:52:28 ntp_dns_cb:1980 in_flight=1 resolved=0 ipv6=0 2024-07-11 11:52:28 waiting for 0 seconds ... 2024-07-11 11:52:29 sys_update_timer_func:1803 synchronized=0 2024-07-11 11:52:29 Sorted NTP endpoints. 2024-07-11 11:52:29 NTP daemon uses a upper end of -2000000000.000000 and a lower end of 2000000000.000000. 2024-07-11 11:52:29 no server suitable for synchronization found <---
When doing a sniffer to NTP server IPs, there is only traffic going out: FGVM04-HA02 (root) # diagnose sniffer packet any 'host 208.91.112.61 or host 208.91.112.62' 4
However, the traffic is sent over the interface port9 while the default route on the device is defined over the interface port1:
FGVM04-HA02 (root) # get router info routing-table all
Looking at HA settings, port9 is defined as mgmt interface, and ha-direct is enabled:
FGVM04-HA02 (global) # show system ha
Due to ha-direct being enabled mgmt traffic including NTP traffic is forwarding through interface port9. The solution to this problem is:
FGVM04-HA02 (global) # config system ha FGVM04-HA02 (ha) # end
FGVM04-HA02 (global) # diagnose sys ntp status HA primary: yes, HA primary ip: 169.254.0.2, management_vfid: 0 ha_direct=0, ha_mgmt_vfid=3 ipv4 server(ntp1.fortiguard.com) 208.91.112.63 -- reachable(0xff) S:3 T:0
ipv4 server(ntp2.fortiguard.com) 208.91.112.62 -- reachable(0xff) S:3 T:0 selected
Note: |