Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #273244

Re: NTP fails to sync local clock

From Urs Thuermann <urs@isnogud.escape.de>
Newsgroups linux.debian.user
Subject Re: NTP fails to sync local clock
Date 2024-09-24 06:40 +0200
Message-ID <Jq5vb-eqAD-1@gated-at.bofh.it> (permalink)
References <JpQw9-ehvC-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

NTP fails to sync local clock Steve Keller <keller.steve@gmx.de> - 2024-09-23 14:40 +0200
  Re: NTP fails to sync local clock Dan Ritter <dsr@randomstring.org> - 2024-09-23 15:50 +0200
    Re: NTP fails to sync local clock Steve Keller <keller.steve@gmx.de> - 2024-09-23 19:30 +0200
      Re: NTP fails to sync local clock Dan Ritter <dsr@randomstring.org> - 2024-09-23 20:20 +0200
      Re: NTP fails to sync local clock gene heskett <gheskett@shentel.net> - 2024-09-24 07:30 +0200
        Re: NTP fails to sync local clock Greg Wooledge <greg@wooledge.org> - 2024-09-24 13:10 +0200
          Re: NTP fails to sync local clock gene heskett <gheskett@shentel.net> - 2024-09-25 06:00 +0200
  Re: NTP fails to sync local clock  - tos minclock 4 minsane 1 George at Clug <Clug@goproject.info> - 2024-09-24 01:50 +0200
  Re: NTP fails to sync local clock Urs Thuermann <urs@isnogud.escape.de> - 2024-09-24 06:40 +0200
    Re: NTP fails to sync local clock Steve Keller <keller.steve@gmx.de> - 2024-09-28 08:50 +0200

csiph-web