Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2017 10:40:33 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Vladimir Zakharov <zakharov.vv@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: ntpd dies soon after start
Message-ID:  <CAOtMX2haPqjkvJGKZ-apFPY7gvnkqgF5n8F1Ew%2BGQZayvQ_Srw@mail.gmail.com>
In-Reply-To: <20170614163440.xgzqlph3nldki2vi@vzakharov>
References:  <20170614155714.lvljvn4dsztinull@vzakharov> <CAOtMX2h%2BdE=QwJRg%2Bqjwz93y_2Q4dVkppmEtjR2=B4FP%2BPKNXg@mail.gmail.com> <20170614163440.xgzqlph3nldki2vi@vzakharov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 14, 2017 at 10:34 AM, Vladimir Zakharov
<zakharov.vv@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@vzakharov:~ # date
> Wed Jun 14 19:02:55 MSK 2017
> root@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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2haPqjkvJGKZ-apFPY7gvnkqgF5n8F1Ew%2BGQZayvQ_Srw>