ntpd[66134]: leapsecond file (‘/var/db/ntpd.leap-seconds.list’): will expire in less than 9 days

If you’ve been watching your logs, you’ve probably noticed messages like this:

ntpd[66134]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): will expire in less than 9 days

In this post:

  • FreeBSD 14.0
  • ntpd .2.8p16-a (included with the base OS)

There are several FreeBSD PR lodged, the most relevant (to me) is ntpd: leap-seconds.list should not run inside jails, and IETF is no longer hosting it.

The fix I am using:

Tell ntpd to use this source for leap-seconds.

[14:02 r730-01 dvl ~] % sudo sysrc ntp_leapfile_sources=https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list
ntp_leapfile_sources: https://cgit.freebsd.org/src/plain/contrib/tzdata/leap-seconds.list -> https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

Tell ftpd to fetch that file:

[14:03 r730-01 dvl ~] % sudo service ntpd fetch
ntp_src_leapfile version is 3676924800 expires 3912710400
ntp_db_leapfile version is 3676924800 expires 3912710400
not replacing /var/db/ntpd.leap-seconds.list with /etc/ntp/leap-seconds
Within ntp leapfile expiry limit, initiating fetch
fetching https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list
using https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list as /var/db/ntpd.leap-seconds.list

The key points: fetching and using the new file.

Restart ntpd, just to see the results:

[14:03 r730-01 dvl ~] % sudo service ntpd restart
Stopping ntpd.
Waiting for PIDS: 66134.
Starting ntpd.
[14:03 r730-01 dvl ~] % tail /var/log/messages
Dec 20 14:03:21 r730-01 ntpd[1734]: ntpd 4.2.8p16-a (1): Starting
Dec 20 14:03:21 r730-01 ntpd[1734]: Command line: /usr/sbin/ntpd -L -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift
Dec 20 14:03:21 r730-01 ntpd[1734]: ----------------------------------------------------
Dec 20 14:03:21 r730-01 ntpd[1734]: ntp-4 is maintained by Network Time Foundation,
Dec 20 14:03:21 r730-01 ntpd[1734]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Dec 20 14:03:21 r730-01 ntpd[1734]: corporation.  Support and training for ntp-4 are
Dec 20 14:03:21 r730-01 ntpd[1734]: available at https://www.nwtime.org/support
Dec 20 14:03:21 r730-01 ntpd[1734]: ----------------------------------------------------
Dec 20 14:03:21 r730-01 ntpd[1739]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
Dec 20 14:03:21 r730-01 ntpd[1739]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2024-06-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
[14:03 r730-01 dvl ~] % 

Now that annoying message will stop.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top