Re: ntpd dies soon after start

From: Alan Somers <asomers_at_freebsd.org>
Date: Wed, 14 Jun 2017 10:40:33 -0600
On Wed, Jun 14, 2017 at 10:34 AM, Vladimir Zakharov
<zakharov.vv_at_gmail.com> wrote:
> On Wed, Jun 14, 2017, Alan Somers wrote:
>> On Wed, Jun 14, 2017 at 9:57 AM, Vladimir Zakharov
>>
>> This is by design.  Your offset is so large (more than a year), that
>> ntpd fails its basic sanity test.  You need to do one of the
>> following:
>> 1) Manually set the time before starting ntpd for the first time
>> 2) Invoke ntpd with the "-g" flag
>> 3) Run ntpdate before running ntpd.
>
> My offset was about 22 minutes only. Your receipt solved the problem.
> Thanks

My bad; I was thinking that the offset was in seconds but it's
actually in milliseconds.  Glad to hear your problem's fixed.

>
> root_at_vzakharov:~ # date
> Wed Jun 14 19:02:55 MSK 2017
> root_at_vzakharov:~ # /usr/sbin/ntpd -q -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift
> 14 Jun 19:05:01 ntpd[14722]: ntpd 4.2.8p10-a (1): Starting
> 14 Jun 19:05:01 ntpd[14722]: Command line: /usr/sbin/ntpd -q -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift
> 14 Jun 19:05:01 ntpd[14722]: proto: precision = 0.065 usec (-24)
> 14 Jun 19:05:01 ntpd[14722]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
> 14 Jun 19:05:01 ntpd[14722]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2017-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
> 14 Jun 19:05:01 ntpd[14722]: Listen and drop on 0 v6wildcard [::]:123
> 14 Jun 19:05:01 ntpd[14722]: Listen and drop on 1 v4wildcard 0.0.0.0:123
> 14 Jun 19:05:01 ntpd[14722]: Listen normally on 2 re0 10.60.0.245:123
> 14 Jun 19:05:01 ntpd[14722]: Listen normally on 3 lo0 [::1]:123
> 14 Jun 19:05:01 ntpd[14722]: Listen normally on 4 lo0 [fe80::1%2]:123
> 14 Jun 19:05:01 ntpd[14722]: Listen normally on 5 lo0 127.0.0.1:123
> 14 Jun 19:05:01 ntpd[14722]: Listening on routing socket on fd #26 for interface updates
> 14 Jun 19:05:02 ntpd[14722]: Soliciting pool server 192.36.143.130
> 14 Jun 19:05:03 ntpd[14722]: Soliciting pool server 195.122.241.236
> 14 Jun 19:05:04 ntpd[14722]: Soliciting pool server 91.207.136.55
> 14 Jun 19:05:05 ntpd[14722]: Soliciting pool server 194.190.168.1
> root_at_vzakharov:~ # ntpdate 0.freebsd.pool.ntp.org
> 14 Jun 19:28:49 ntpdate[14740]: step time server 194.190.168.1 offset 1344.686561 sec
> root_at_vzakharov:~ # date
> Wed Jun 14 19:28:53 MSK 2017
>
> --
> Regards,                 | "In theory there is no difference between theory
>   Vladimir Zakharov      | and practice. In practice there is."- Yogi Berra
Received on Wed Jun 14 2017 - 14:40:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC