[ntp:questions] ntpd just doesnt sync (but ntpdate does!)

Marc Logemann ml at logemann.org
Tue Nov 11 20:56:22 UTC 2008


i am slowly getting insane here after 3 hours of hard research. I have  
a server that just dont want to sync itself, here are the the facts:

asterisk:~# ntpdc -p
      remote           local      st poll reach  delay   offset    disp
=ptbtime1.ptb.de  1   64  377 0.02068 75.396919 0.06625
=  2   64  377 0.00031 77.702085 0.05713

asterisk:~# ntpq -c rv
assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.2p4 at 1.1585-o Sun Mar  4 13:21:35 UTC 2007 (1)",
processor="i686", system="Linux/", leap=11, stratum=16,
precision=-20, rootdelay=0.000, rootdispersion=28.695, peer=0,
refid=INIT, reftime=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
poll=6, clock=ccc46c56.ddf77139  Tue, Nov 11 2008 21:40:54.867, state=1,
offset=0.000, frequency=0.000, jitter=0.001, noise=0.001,
stability=0.000, tai=0

First of all i know that the "=" means that its not syncing at this  
point. I have a different server (which is also in the list with, where there is a "*" before the remote hostname and  
there everything is fine). Now i compared both config files but they  
are all the same (except for the server list)

Also the ntpq output seems quite different from my other server where  
it works. As you can see i have "state=1" where with my other server  
its "state=4" and "sync_unspec" looks also weird.

Can anyone give me a pointer whats wrong here?


Just for the record. Thats the config of my _working_ ntpd on a  
different machine.

logserv1:~# ntpdc -p
      remote           local      st poll reach  delay   offset    disp
*ptbtime1.ptb.de  1  128  377 0.02074  0.000372 0.05676

logserv1:~# ntpq -c rv
assID=0 status=0644 leap_none, sync_ntp, 4 events, event_peer/strat_chg,
version="ntpd 4.2.2p4 at 1.1585-o Sun Mar  4 13:05:22 UTC 2007 (1)",
processor="x86_64", system="Linux/2.6.18-4-amd64", leap=00, stratum=2,
precision=-20, rootdelay=20.740, rootdispersion=9.160, peer=36484,
reftime=ccc46ef7.a202f44a  Tue, Nov 11 2008 21:52:07.632, poll=7,
clock=ccc46fbf.6bd2a5a5  Tue, Nov 11 2008 21:55:27.421, state=4,
offset=0.372, frequency=73.936, jitter=0.763, noise=0.609,
stability=0.039, tai=0


Thanks for any hint......

Marc Logemann

More information about the questions mailing list