From owner-freebsd-current@freebsd.org Wed Jun 14 16:40:35 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DA39BEEDFB for ; Wed, 14 Jun 2017 16:40:35 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15D77702FF for ; Wed, 14 Jun 2017 16:40:35 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yw0-x235.google.com with SMTP id e142so3602218ywa.1 for ; Wed, 14 Jun 2017 09:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=LYQRQu+Lpc7HoJH2TCr60NIqRtNPXYaRMioDnKQ6yO0=; b=Jbtibor5KmpmN1UDcvcSwYgGe4ubdZXxVarrbvPWsrsY9psQEeaiBkkE4ZP1aThfip sQlLsehTZUGPE7QMoreL0FdiVbsYcM7NBSQ/PULuyPiSgviPibymb4dpsO71Emdbn8hD nl1jHBpzq6/EaSFWv6l2XKXf2H1bG6mjBHPMP8QYWswbW5O5oaysGjLLn272SnGANPKz kXX2WV2lcFJbtKtuEBbu354Wj0uCm7cD9wcu2V4bEULq1PUnRfBAymW9adPCL6MN4R9s 7GYE6Wjcux0SgRZ0WieLUTpihpuuwhI+dxxSfhNEtRwYGqQ9xxw2mWpNoPRkvhdIhGZ8 eCcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=LYQRQu+Lpc7HoJH2TCr60NIqRtNPXYaRMioDnKQ6yO0=; b=AFv2T/X6d0VzfVv4LUx++QRF6ttcuoEtG2lSqwrt9hfc5SDlYZC7Kz3eiK5lR0qR7N PoJYW2Nt+z4/UlmKGGI7aB8Xg78jVSSGpe7w7PjVywTvoqRf3Y1UDEea7WqCXSHuHy0q q23bThOkOdnwy4/qMu1LcATGg+Kltjp15vL7omom7f3GI+9KH6Bol/agvXTLYD3Vakbh nP/UMlAfb00ES1n2/z5WIAr/GjCJrS8p1F4uNjmRl2cp3oik1Sgr8EwLPduXnpjt2Mbv /pMCCv73L+koBYiynHUGshX+2DWdZV948DWJE2wf/rJoBoj6kcdWGOUt4XVTN+bb7fla /BWg== X-Gm-Message-State: AKS2vOyBKi0Ov1Uku8BhYoAziyqxqRWgK3fclcrbyq06CGeGvxARtFUB sfamv/9m8ysdJsMzGbtcMvgN76w8Qg== X-Received: by 10.129.162.14 with SMTP id z14mr860461ywg.276.1497458433928; Wed, 14 Jun 2017 09:40:33 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.13.206.199 with HTTP; Wed, 14 Jun 2017 09:40:33 -0700 (PDT) In-Reply-To: <20170614163440.xgzqlph3nldki2vi@vzakharov> References: <20170614155714.lvljvn4dsztinull@vzakharov> <20170614163440.xgzqlph3nldki2vi@vzakharov> From: Alan Somers Date: Wed, 14 Jun 2017 10:40:33 -0600 X-Google-Sender-Auth: YN0L-9QrYK0MZlt4tU6U3RROqIU Message-ID: Subject: Re: ntpd dies soon after start To: Vladimir Zakharov Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2017 16:40:35 -0000 On Wed, Jun 14, 2017 at 10:34 AM, Vladimir Zakharov 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