1833230 Members
2673 Online
110051 Solutions
New Discussion

Problem with NTP

 
twtandigi.com.my
Frequent Advisor

Problem with NTP

This is the error i obtain in the syslog when i start xntpd

bind() fd 12, family 2, port 123, addr cb5c80bf, in_classd=0 flags=0 fails: Address already in use

how can i over come it?
13 REPLIES 13
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

Check the entry /etc/services for the following:
ntp 123/udp # Network Time Protocol

Is the port 123 used by some other service?

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
twtandigi.com.my
Frequent Advisor

Re: Problem with NTP

I have checked it is assigned to the right port
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

It seems that NTP is already running. Confirm with the command:

#ntpq â p

I also tried to start NTP with

#/sbin/init.d/xntpd start

and got the following message in the syslog:

Jun 2 15:25:44 dev xntpd[4800]: bind() fd 4, family 2, port 123, addr 00000000, in_classd=0 flags=1 fails: Address already in use

A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

The correct command is:

#ntpq -p

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Shaikh Imran
Honored Contributor

Re: Problem with NTP

hi,
what is the output of
#netsat -na |grep 123 or
#netstat -na -p udp |grep 123

Is 123 port in only Listen state. or it's in established state .

Regards



I'll sleep when i am dead.
twtandigi.com.my
Frequent Advisor

Re: Problem with NTP

ntp not running
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

Check following files again for any confgiguration issue/junk characters:

/etc/rc.config.d/netdaemons
/etc/ntp.conf file
/etc/TIMEZONE
/etc/services

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
twtandigi.com.my
Frequent Advisor

Re: Problem with NTP

Check the configuration
so far no funny characters on site

Jun 2 18:11:23 aaa2 xntpd[7654]: xntpd version 3.5f: Tue Jun 25 12:40:32 IST 2002 PHNE_27223
Jun 2 18:11:23 aaa2 xntpd[7654]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Jun 2 18:11:23 aaa2 xntpd[7654]: precision = 8 usec
Jun 2 18:11:23 aaa2 xntpd[7654]: bind() fd 12, family 2, port 123, addr cb5c80bf, in_classd=0 flags=0 fails: Address already in use

so far this is what the syslog showing
still in deep confusion
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

On a client system when the NTP is started again with #/sbin/init.d xntpd start command syslog shows (similar to what you are getting)

Jun 2 16:13:45 dev xntpd[20059]: tickadj = 625, tick = 10000, tvu_maxslew = 61875
Jun 2 16:13:45 dev xntpd[20059]: precision = 9 usec
Jun 2 16:13:45 dev xntpd[20059]: bind() fd 4, family 2, port 123, addr 00000000, in_classd=0 flags=1 fails: Address already in use

However following command verify the NTP server configuration (and its association with peer servers).

dev#ntpq -p

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Shaikh Imran
Honored Contributor

Re: Problem with NTP

Hi,
Make sure your system can talk to the NTP servers you are going to use. Most firewalls deny access on port 123 so you must enable the port on your firewall. To test access, use ntpq (or xntpdc) with:

ntpq -p external.hp.com

Regards,







I'll sleep when i am dead.
Sanjay Kumar Suri
Honored Contributor

Re: Problem with NTP

Also check files in /etc/rc.config.d. What are other files with similar names to netdaemons (like .bak, .old etc)

/etc/rc.config.d/netdaemons

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
twtandigi.com.my
Frequent Advisor

Re: Problem with NTP

There was just an issue with the configuration. one whole night of sitting ang pondering on all the help from this forum helped me over come it.

Thank you very much
twtandigi.com.my
Frequent Advisor

Re: Problem with NTP

Thank you for your advice