Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2024 18:39:59 -0800
From:      Doug Hardie <bc979@lafn.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: leap-second error in console
Message-ID:  <25259A6D-8418-4C77-A845-B7298A9AF667@sermon-archive.info>
In-Reply-To: <CANCZdfpnqSNVBiEZikDRKcUzuUPYiWq4fjSXbsN4TU20ACgscQ@mail.gmail.com>
References:  <80396a3d-94e6-4439-89de-ea684ee1907e@app.fastmail.com> <CANCZdfpnqSNVBiEZikDRKcUzuUPYiWq4fjSXbsN4TU20ACgscQ@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
> On Jan 14, 2024, at 17:45, Warner Losh <imp@bsdimp.com> wrote:
> 
> 
> 
> On Sun, Jan 14, 2024 at 5:38 PM void <void@f-m.fm <mailto: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="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="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=2023-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
Jan 14 18:35:43 test ntpd[68282]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago

-- Doug
[-- Attachment #2 --]
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><blockquote type="cite"><div>On Jan 14, 2024, at 17:45, Warner Losh &lt;imp@bsdimp.com&gt; wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 14, 2024 at 5:38 PM void &lt;<a href="mailto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Context is stable/13-n257165-4c4633fdffbe amd64 built <br>
Mon Jan 15 00:20:52 2024 UTC<br>
<br>
In the console, the following is displayed<br>
<br>
Security policy loaded: MAC/ntpd (mac_ntpd)<br>
Starting ntpd.<br>
Jan 15 00:26:48 cloud ntpd[3412]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago<br>
<br>
How to fix/does it need fixing? thanks in advance for any assistance<br></blockquote><div><br></div><div>Add</div><div><br></div><div>ntp_leapfile_sources="<a href="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list">https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list</a>"</div><div><br></div><div>to your /etc/rc.conf file. This is the reliable, freely available source for the leap seconds</div><div>list. We should make that the default, but doing so has been rough sledding for reasons</div><div>that I'm not sure I agree with, but that I at least understand.</div></div></div></div></blockquote><br></div><div>That didn't work for me. &nbsp;Looking through /etc/rc.d/ntpd, it appears that&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>ntp_db_leapfile="YES"</div>is also required. &nbsp;However, with both of those I still get on ntpd restart (removing comment lines):&nbsp;<div><br><div><br></div><div><br></div><div><br></div><div><div>Jan 14 18:35:43 test ntpd[68230]: ntpd exiting on signal 15 (Terminated)</div><div>Jan 14 18:35:43 test ntpd[68281]: ntpd 4.2.8p16-a (1): Starting</div><div>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</div><div>Jan 14 18:35:43 test ntpd[68282]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature</div><div>Jan 14 18:35:43 test ntpd[68282]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2023-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37</div><div>Jan 14 18:35:43 test ntpd[68282]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired 19 days ago</div><div><br></div></div>-- Doug</div></body></html>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25259A6D-8418-4C77-A845-B7298A9AF667>