[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NTP fails to sync local clock



Steve Keller <keller.steve@gmx.de> writes:

> When I call ntpdate my-ntp.my-domain manually it steps the time as
> expected.  But then, ntpd doesn't sync the local clock to the NTP
> server, although it seems to consider that server's clock stable:
> 
>   $ ntpq -p
>        remote             refid      st t when poll reach   delay   offset   jitter
>   =================================================================================
>   +my-ntp.my-domain  237.17.204.95    2 u   29   64  377   0.4696  -0.0378   0.0196
>   $ ntpstat 
>   unsynchronised
>      polling server every 1 s
> 

In Debian 12 the default /etc/ntpsec/ntp.conf file contains the lines

  # Comment this out if you have a refclock and want it to be able to discipline
  # the clock by itself (e.g. if the system is not connected to the network).
  tos minclock 4 minsane 3

which means ntpd needs at least 3 servers to choose from.  If you
haven't changed that line and you have only one server configured like
your output shows, you can never get synchronisation.

urs


Reply to: