Discussion:
10.3 base ntpd leap-seconds. list file expires 2016-06-01
(too old to reply)
Ernie Luzar
2016-05-12 21:55:43 UTC
Permalink
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.

I'm running the base version of ntpd, the one that
is included as part of the base system.

This file should have been updated before 10.3 release was
published to the public.

Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
Trond Endrestøl
2016-05-13 06:05:21 UTC
Permalink
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
Add these lines to /etc/periodic.conf:

daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"

Or, if you need the update to happen at night without delay:

daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="NO"

You can also run:

service ntpd fetch
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
Reko Turja via freebsd-questions
2016-05-13 08:17:13 UTC
Permalink
Cheers Trond!

-----Original Message-----
From: Trond Endrestøl
Post by Trond Endrestøl
daily_ntpd_leapfile_enable="YES"
...
Post by Trond Endrestøl
service ntpd fetch
Ernie asked something that was on my mind as well and I already found
the answer how to update the file manually. I should have guessed base
already had something more elegant included. Thanks a lot for both
asking this and the answer!

-Reko
Andre Albsmeier
2016-05-13 11:01:43 UTC
Permalink
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version

#$ 3629404800

and as expiry date:

#@ 3691872000

The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
has as version:

#$ 3660508800

and as expiry date:

#@ 3673728000

So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...

-Andre
Trond Endrestøl
2016-05-13 12:36:01 UTC
Permalink
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the
Earth orientation Center of the IERS?

That file has currently the following characteristics:

#$ 3661632000
# File expires on 28 December 2016
#@ 3691872000
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
RW via freebsd-questions
2016-05-13 12:45:15 UTC
Permalink
On Thu, 12 May 2016 17:55:43 -0400
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
FWIW the current version only differs by expiry date, so updating make
no practical difference.
Ernie Luzar
2016-05-13 13:57:50 UTC
Permalink
Post by Trond Endrestøl
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the
Earth orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
https://www.ietf.org/timezones/data/leap-seconds.list
Just checked this file and it expires on 28 December 2016.

service ntpd fetch downloads the same file as the base system has to
begin with.

I manually edited /var/db/ntpd.leap-seconds.list with the values from
www.ietf.org/timezones/data/leap-seconds.list and did a
service ntpd restart and the expire message did not show.
Trond Endrestøl
2016-05-13 14:44:42 UTC
Permalink
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in
/var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the Earth
orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
https://www.ietf.org/timezones/data/leap-seconds.list
Just checked this file and it expires on 28 December 2016.
service ntpd fetch downloads the same file as the base system has to begin
with.
I manually edited /var/db/ntpd.leap-seconds.list with the values from
www.ietf.org/timezones/data/leap-seconds.list and did a
service ntpd restart and the expire message did not show.
Given that the IERS is the true source of this file, I believe it
makes sense to set the following in /etc/rc.conf:

ntp_leapfile_sources="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list https://www.ietf.org/timezones/data/leap-seconds.list"

Please disagree if you want to.
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
Andre Albsmeier
2016-05-13 15:15:13 UTC
Permalink
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the
Earth orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
https://www.ietf.org/timezones/data/leap-seconds.list
Just checked this file and it expires on 28 December 2016.
But the version is older and /etc/rc.d/ntpd checks this.

Probably every "provider" got his own versioning system
and /etc/rc.d/ntpd should check the expiry instead.
Post by Andre Albsmeier
service ntpd fetch downloads the same file as the base system has to
begin with.
I manually edited /var/db/ntpd.leap-seconds.list with the values from
www.ietf.org/timezones/data/leap-seconds.list and did a
Did you fix the signature as well?

-Andre
Post by Andre Albsmeier
service ntpd restart and the expire message did not show.
--
Never argue with an idiot. They drag you down to
their level, then beat you with their experience.
Andre Albsmeier
2016-05-13 15:23:43 UTC
Permalink
Post by Trond Endrestøl
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the
Earth orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
I _think_ so. I've put the URL into rc.conf and we'll see...

-Andre
Andre Albsmeier
2016-05-17 05:31:25 UTC
Permalink
Post by Trond Endrestøl
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Ernie Luzar
New install of 10.3 from .iso file.
On every boot of system get ntpd message saying
/var/db/ntpd.leap-seconds.list file expires 2016-06-01.
I'm running the base version of ntpd, the one that
is included as part of the base system.
This file should have been updated before 10.3 release was
published to the public.
Where do I get the updated ntpd.leap-seconds.list file contents
to write to my /var/db/ntpd.leap-seconds.list file?
daily_ntpd_leapfile_enable="YES"
daily_ntpd_avoid_congestion="YES"
Hmm, I did this on 9.3 a while ago.. The new file (fetched from
https://www.ietf.org/timezones/data/leap-seconds.list) has version
#$ 3629404800
The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list)
#$ 3660508800
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
-Andre
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the
Earth orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
As assumed, with this file all messages were gone. Probably
/etc/rc.d/ntpd should be changed to just check the expiry
consistently and don't look a the version at all...

-Andre
RW via freebsd-questions
2016-05-17 11:29:15 UTC
Permalink
On Tue, 17 May 2016 07:31:25 +0200
Post by Andre Albsmeier
Post by Trond Endrestøl
Post by Andre Albsmeier
So the new file expires after the old file (which is good) but
its version is lower than the version of the old file. Since
/etc/rc.d/ntpd compares the versions it finally sticks with the
old file...
dre
Post by Andre Albsmeier
Post by Trond Endrestøl
Would it make more sense to use
https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from
the Earth orientation Center of the IERS?
#$ 3661632000
# File expires on 28 December 2016
As assumed, with this file all messages were gone. Probably
/etc/rc.d/ntpd should be changed to just check the expiry
consistently and don't look a the version at all...
I think what's going on is that the IERS version uses the time when the
file was last modified, so the timestamp changes each time the expiry is
increased. The IETF only change the timestamp when a leap second is
added.
RW via freebsd-questions
2016-05-17 11:55:19 UTC
Permalink
On Tue, 17 May 2016 12:29:15 +0100
Post by RW via freebsd-questions
I think what's going on is that the IERS version uses the time when
the file was last modified, so the timestamp changes each time the
expiry is increased. The IETF only change the timestamp when a leap
second is added.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209577

Loading...