ntp gone wild

Luis lemsx1 at gmail.com
Wed May 17 13:47:03 UTC 2006


I have a problem with my ntp installation on dapper. For some reason
it seems that all the servers are rejected. I have another dapper box
along side this one and for that one ntp works perfectly fine.

$> ntpq -c pe

     remote           refid      st t when poll reach   delay   offset  jitter

==============================================================================


 10.10.201.31    139.78.100.163   2 u  313 1024  377    0.639  -328264 6084.96
 fiordland.ubunt 193.79.237.14    2 u  258 1024  377   72.625  -328616 6128.57

*LOCAL(0)        LOCAL(0)        13 l    1   64  377    0.000    0.000   0.002


See the space on the left-hand-side? that should've have a + or - (or
*) but for some reason that doesn't happen (on this box) on the other
box that shows fine.

I have purge the package and re-installed a few times, and left the
computer on for days.
I have also used ntpdate to set the time (stopping ntpd first) and
that also works fine. My time is set to the right thing, and when i
launch ntpd my time starts to drift wildly until it goes off by more
and more seconds... then minutes... and it never stops.

$> sudo apt-get --purge remove ntp-server


Reading package lists... Done

Building dependency tree... Done

The following packages will be REMOVED:

  ntp-server* ntp-simple*


No config files.. no /var/lib/ntp or /var/log/ntp

# this ntp server is used by all boxes
$> sudo ntpdate 10.10.201.31
17 May 09:37:31 ntpdate[30965]: step time server 10.10.201.31 offset
-334.133596 sec



$> sudo /etc/init.d/ntp-server start
* Starting NTP server ...    [ ok ]
$> lsproc ntp
     PID USER   RSS  COMMAND
31204 root    3708  /usr/sbin/ntpd -p /var/run/ntpd.pid -u 114:114

$> ls -ld /var/lib/ntp/

drwxr-xr-x 2 ntp ntp 4.0K 2006-05-17 09:42 /var/lib/ntp//

no .drift file inside (yet. it takes about 20 min or so according to
the man page).

$> ntpq -c associations



ind assID status  conf reach auth condition  last_event cnt

===========================================================

  1 49020  9014   yes   yes  none    reject   reachable  1

  2 49021  9614   yes   yes  none  sys.peer   reachable  1



The "reject" condition never goes away.

Please help.

-- 
----)(-----
Luis Mondesi
*NIX Guru

Kiskeyix.org

"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb

No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html


More information about the ubuntu-users mailing list