From owner-freebsd-current@freebsd.org Wed Jun 14 16:34:44 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 83F2CBEEA9C for ; Wed, 14 Jun 2017 16:34:44 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::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 01A656FE73; Wed, 14 Jun 2017 16:34:44 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id p189so5335145lfe.2; Wed, 14 Jun 2017 09:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fTJckHUePN0mFr24odTbXdvQmdTJbYabInQNdqTFneg=; b=UrzetXOm2CqxG/WL89KjwVBU/Y7asQ+mkR/M3WMKwdDYm7FaUL1jYyRhyJTu8FzI4x txyd/MB9n6fcBjgPRFo3frkR7vGN7aRzdJJJ7S9cchsEaNfna9PS0l2Wm96beLr8qP/6 NCHsB9Py/BdVectUPUglaOwgUV4HvcYXZ6F6GxF1etCpznB/WHGccWgDO5uZyA/VyaXS Lsrv1O2es4k5E1Q1gduw9PWhPpmE+LdVob8ESEIJCaTcXctzr0NRmtAqMwDgozaHo6i9 eRdU0DNYeIAmEwu/ui3uHJwvn48zNcer3RPepPhd++k9pT88GlJQL+amLQWWB53k6a5Q t8Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fTJckHUePN0mFr24odTbXdvQmdTJbYabInQNdqTFneg=; b=EziBklhDTFmOI+YGT+XjFTzmBkCgDiu8eHpUQOaXDU5cVqIrP6xV61LXH0JcAyOrfP xfbStG/AMp7tR3f3fEbB83F18MooEFMAPhEIeNDtQ2IgyFkPD7XwZ7If3TQ/kDRSxmOH MeayHkaKkNX9tkWJoqeNrtu3LjSHdKTBAlR2WsgygRQT/XU1IXze3IVwvzbatAxCXlNz YLrE8K15mnkcg5EYdKAk82zzBPBvQJA0pVp502/z3ELTWD6JU18EME20PDxaQYtvcbrG qsrV0KjWDwdMST62FzK6f3P3cXYqYA8qTOgi9Cr/Ag+RuEhw/6yiXrsd2j4771eQViLt SDYg== X-Gm-Message-State: AKS2vOyFwGx8XpkHNESoBwRHfyYh5NtQZL3Wm7baR0nUi1X3dwvnHPnZ wPx04af9hvhHUFacUio= X-Received: by 10.46.33.164 with SMTP id h36mr301504lji.86.1497458081941; Wed, 14 Jun 2017 09:34:41 -0700 (PDT) Received: from localhost ([81.19.73.157]) by smtp.gmail.com with ESMTPSA id j63sm121084lfi.26.2017.06.14.09.34.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 09:34:41 -0700 (PDT) Date: Wed, 14 Jun 2017 19:34:40 +0300 From: Vladimir Zakharov To: Alan Somers Cc: FreeBSD CURRENT Subject: Re: ntpd dies soon after start Message-ID: <20170614163440.xgzqlph3nldki2vi@vzakharov> References: <20170614155714.lvljvn4dsztinull@vzakharov> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT amd64 X-PGP-Key: http://vzakharov.ru/pubkey.asc User-Agent: NeoMutt/20170609 (1.8.3) 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:34:44 -0000 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 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