2004-01-24 22:08:53

by Shaw, Marco

[permalink] [raw]
Subject: NTP problems

I've not been able to get NTP working on some of my RH7.2 and RHAS2.1 systems.

Absolutely no TCP or UDP traffic shows in a tcpdump. The command ntpdate gives me this
and nothing more:

15 Jan 10:06:59 ntpdate[22868]: poll(): nfound = 0, error: Success

I was intially thinking that this was a glibc-i386 vs glibc-i686 problem, but
it does not appears so after more research.

I decided to run lsof, and get the following whenver ntpdate fails (doesn't
send out any traffic at all when looking via tcpdump). Note
the last line where I get "can't indentify protocol".

[root@server]# lsof|grep ntpdate
ntpdate 461 root cwd DIR 8,7 4096 144002 /root
ntpdate 461 root rtd DIR 8,7 4096 2 /
ntpdate 461 root txt REG 8,5 40460 128472 /usr/sbin/ntp
date
ntpdate 461 root mem REG 8,7 464409 65742 /lib/ld-2.2.4
.so
ntpdate 461 root mem REG 8,5 44851 64355 /usr/lib/libc
ap.so.1.10
ntpdate 461 root mem REG 8,7 5737154 64013 /lib/libc-2.2
.4.so
ntpdate 461 root 0u CHR 136,3 5 /dev/pts/3
ntpdate 461 root 1u CHR 136,3 5 /dev/pts/3
ntpdate 461 root 2u CHR 136,3 5 /dev/pts/3
ntpdate 461 root 3u sock 0,0 175748304 can't identif
y protocol

I've checked the LSOF FAQ regarding this "can't indentify protocol", and I'm not
any further ahead.

I've not been able to reproduce this consistently, but when I shut down xinetd, ipchains,
and enter "ALL:ALL" in hosts.allow, *eventually* (but not consistently especially as
far as a timeframe), eventually ntpdate works as expected.

Any ideas?

Marco


2004-01-26 08:01:35

by Erik Hensema

[permalink] [raw]
Subject: Re: NTP problems

Shaw, Marco ([email protected]) wrote:
> I've not been able to get NTP working on some of my RH7.2 and RHAS2.1 systems.
>
> Absolutely no TCP or UDP traffic shows in a tcpdump. The
> command ntpdate gives me this and nothing more:
>
> 15 Jan 10:06:59 ntpdate[22868]: poll(): nfound = 0, error: Success

Is this on a 2.6 kernel? I have similar problems between two 2.6
machines, but haven't investigated it much yet.

Both systems work well as a client. My home server running 2.6 is
NTP server to the rest of the network at home. A 2.4 machine can
sync its time, but a 2.6 machine can't. The 2.6 client can sync
to the public ntp servers on the internet.

(this is all IIRC)
--
Erik Hensema <[email protected]>