From nobody Mon Jan 15 02:39:59 2024 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TCxFY1wYdz57NM0 for ; Mon, 15 Jan 2024 02:40:17 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4TCxFX6N4jz41Qk for ; Mon, 15 Jan 2024 02:40:16 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4TCxFP74J9z2fjV5; Sun, 14 Jan 2024 18:40:09 -0800 (PST) From: Doug Hardie Message-Id: <25259A6D-8418-4C77-A845-B7298A9AF667@sermon-archive.info> Content-Type: multipart/alternative; boundary="Apple-Mail=_EBB2D116-E0EF-4D02-9132-85051EB0D37B" List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: leap-second error in console Date: Sun, 14 Jan 2024 18:39:59 -0800 In-Reply-To: Cc: freebsd-stable@freebsd.org To: Warner Losh References: <80396a3d-94e6-4439-89de-ea684ee1907e@app.fastmail.com> X-Mailer: Apple Mail (2.3731.700.6) X-Virus-Scanned: clamav-milter 1.2.0 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4TCxFX6N4jz41Qk X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] --Apple-Mail=_EBB2D116-E0EF-4D02-9132-85051EB0D37B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 14, 2024, at 17:45, Warner Losh wrote: >=20 >=20 >=20 > On Sun, Jan 14, 2024 at 5:38=E2=80=AFPM void > wrote: >> Context is stable/13-n257165-4c4633fdffbe amd64 built=20 >> Mon Jan 15 00:20:52 2024 UTC >>=20 >> In the console, the following is displayed >>=20 >> Security policy loaded: MAC/ntpd (mac_ntpd) >> Starting ntpd. >> Jan 15 00:26:48 cloud ntpd[3412]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago >>=20 >> How to fix/does it need fixing? thanks in advance for any assistance >=20 > Add >=20 > = ntp_leapfile_sources=3D"https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-sec= onds.list" >=20 > to your /etc/rc.conf file. This is the reliable, freely available = source for the leap seconds > list. We should make that the default, but doing so has been rough = sledding for reasons > that I'm not sure I agree with, but that I at least understand. That didn't work for me. Looking through /etc/rc.d/ntpd, it appears = that=20 ntp_db_leapfile=3D"YES" is also required. However, with both of those I still get on ntpd = restart (removing comment lines):=20 Jan 14 18:35:43 test ntpd[68230]: ntpd exiting on signal 15 (Terminated) Jan 14 18:35:43 test ntpd[68281]: ntpd 4.2.8p16-a (1): Starting Jan 14 18:35:43 test ntpd[68281]: Command line: /usr/sbin/ntpd -p = /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g Jan 14 18:35:43 test ntpd[68282]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): good hash signature Jan 14 18:35:43 test ntpd[68282]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): loaded, expire=3D2023-12-28T00:00:00Z = last=3D2017-01-01T00:00:00Z ofs=3D37 Jan 14 18:35:43 test ntpd[68282]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago -- Doug= --Apple-Mail=_EBB2D116-E0EF-4D02-9132-85051EB0D37B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Jan 14, 2024, = at 17:45, Warner Losh <imp@bsdimp.com> wrote:



On Sun, Jan 14, 2024 at 5:38=E2=80=AFPM void <void@f-m.fm> = wrote:
Context is = stable/13-n257165-4c4633fdffbe amd64 built
Mon Jan 15 00:20:52 2024 UTC

In the console, the following is displayed

Security policy loaded: MAC/ntpd (mac_ntpd)
Starting ntpd.
Jan 15 00:26:48 cloud ntpd[3412]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago

How to fix/does it need fixing? thanks in advance for any = assistance

Add

ntp_leapfile_sources=3D"https= ://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list"

=
to your /etc/rc.conf file. This is the reliable, freely = available source for the leap seconds
list. We should make = that the default, but doing so has been rough sledding for = reasons
that I'm not sure I agree with, but that I at least = understand.

That = didn't work for me.  Looking through /etc/rc.d/ntpd, it appears = that 
ntp_db_leapfile=3D"YES"
is = also required.  However, with both of those I still get on ntpd = restart (removing comment = lines): 




Jan 14 18:35:43 test ntpd[68230]: ntpd exiting on signal 15 = (Terminated)
Jan 14 18:35:43 test ntpd[68281]: ntpd 4.2.8p16-a = (1): Starting
Jan 14 18:35:43 test ntpd[68281]: Command line: = /usr/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f = /var/db/ntp/ntpd.drift -g
Jan 14 18:35:43 test ntpd[68282]: = leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash = signature
Jan 14 18:35:43 test ntpd[68282]: leapsecond file = ('/var/db/ntpd.leap-seconds.list'): loaded, expire=3D2023-12-28T00:00:00Z = last=3D2017-01-01T00:00:00Z ofs=3D37
Jan 14 18:35:43 test = ntpd[68282]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired = 19 days ago

-- Doug= --Apple-Mail=_EBB2D116-E0EF-4D02-9132-85051EB0D37B--