[chrony-dev] Bug -- interaction between ntpdate and chronyd at bootup -- will never sync up |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] Bug -- interaction between ntpdate and chronyd at bootup -- will never sync up
- From: ray vantassle <rayvantassle@xxxxxxxxx>
- Date: Sun, 3 Feb 2013 22:19:09 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=g0Gt/ORpsqSrEKRVnNpWLBaNDGSiRd5psXHG8k90MG4=; b=PTUjBM1siPdCSIJsKQPRnfUxsYnHA31sBD50giU4eWiL5o2FdXbLLsGrt3zxUvXTYH hFEpMkXpe0orHQ4u6xXR5Ae0zu1pKesaFlajQph/YaJzc+CFk+FRNpdWqsrGu4IMBl0i APHGcj36LDXTL1TRmsFESAQvD0TrfPCkgXdwRojLaAdei64vXkMMB4cWHU0JS862Pj6T WSdeKqbu5RbvFjtD5gXo69Wa46T0u8zMLuY2YOkcfsETnGd7u3gokqOOYVhud+a+AzPQ g4PuLURxbpIWx7UhzHwGkBDLooI5AtGbpsokQfqwSM8HzsD4BbLwZFNAgmJ2+ySg2zjk iqAQ==
Debian system, without a RTC. So at bootup the time is zero.
At startup, 32 seconds into startup, /etc/network/if-up.d/ntpdate
invokes ntpdate-debian, which starts a ntpdate which takes about 14
seconds to finish.
Chronyd starts at about 37 seconds into startup, before the ntpdate is
done. There is a clash, and chronyd gets stuck in some state where it
never syncs up.
Syslog clip:
Dec 31 18:00:37 PogoPlug chronyd[1894]: chronyd version 1.27 starting
Dec 31 18:00:37 PogoPlug chronyd[1894]: Linux kernel major=3 minor=2 patch=35
Dec 31 18:00:37 PogoPlug chronyd[1894]: hz=100 shift_hz=7
freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=833
max_tick_bias=1000 shift_pll=2
Dec 31 18:00:37 PogoPlug chronyd[1894]: Frequency 99963.989 +/-
233363.911 ppm read from /var/lib/chrony/chrony.drift
Dec 31 18:00:37 PogoPlug chronyd[1894]: NTP packet received from
unauthorised host 174.36.71.205 port 123
Dec 31 18:00:40 PogoPlug chronyd[1894]: Source 72.8.140.222 online
Dec 31 18:00:40 PogoPlug chronyd[1894]: Source 169.229.70.95 online
Dec 31 18:00:40 PogoPlug chronyd[1894]: Source 38.229.71.1 online
Dec 31 18:00:40 PogoPlug chronyd[1894]: Source 96.44.142.5 online
Feb 3 21:52:34 PogoPlug ntpdate[1427]: step time server 96.126.126.96
offset 1359949910.330424 sec
Feb 3 21:52:35 PogoPlug chronyd[1894]: Selected source 38.229.71.1
Feb 3 21:52:35 PogoPlug chronyd[1894]: System clock wrong by 0.699306
seconds, adjustment started
Feb 3 21:52:35 PogoPlug chronyd[1894]: Required tick -1999 outside
allowed range (9000 .. 11000)
Feb 3 21:52:37 PogoPlug chronyd[1894]: Can't synchronise: no majority
Some queries:
PogoPlug>chronyc tracking
Reference ID : 127.127.1.1 ()
Stratum : 10
Ref time (UTC) : Mon Feb 4 04:13:07 2013
System time : 0.000000000 seconds fast of NTP time
Last offset : -0.699305534 seconds
RMS offset : 0.699305534 seconds
Frequency : 100027.977 ppm fast
Residual freq : 0.000 ppm
Skew : 0.000 ppm
Root delay : 0.000000 seconds
Root dispersion : 0.000001 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
PogoPlug>chronyc sourcestats
210 Number of sources = 4
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
ntp2.ResComp.Berkeley.EDU 5 4 43y 1000000 0.023 +1247s 2210ms
96.44.142.5 3 2 43y 1000000 0.381 -295ms 702ms
clock.team-cymru.org 4 4 43y 1000000 0.061 +1247s 2324ms
irc.indoforum.org 9 5 17m -111174 11.769 -138.8s 2563us
PogoPlug>chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^x ntp2.ResComp.Berkeley.EDU 3 8 370 20m -346ms[ -346ms] +/- 97ms
^x 96.44.142.5 2 10 0 20m -295ms[ -295ms] +/- 62ms
^x clock.team-cymru.org 2 9 200 20m -273ms[ -273ms] +/- 19ms
^x irc.indoforum.org 2 8 377 212 -115.8s[-115.8s] +/- 90ms
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.