1834632 Members
3142 Online
110069 Solutions
New Discussion

Address already in use

 
Kurt Henning
Advisor

Address already in use

I'm trying to load the time protocol daemon (xntpd)and keep getting the following message in the syslog.

Nov 28 14:55:23 b30-ud01 xntpd[28676]: bind() fd 16, family 2, port 123, addr c001ffff, in_classd=0 flags=0 fails: Address already in use

I've tried reconfiguring inetd, checked /etc/services, and looked for another process using port 123 with lsof and netstat. So far, no luck. I'm not sure what address c001ffff is referring to. Any insights?

6 REPLIES 6
Rick Garland
Honored Contributor

Re: Address already in use

You possibly have another ntp process running.
Check the processes and grep for ntp. There should only be one on them.
Kurt Henning
Advisor

Re: Address already in use

Nope. That was the first thing I looked for.
James R. Ferguson
Acclaimed Contributor

Re: Address already in use

Kurt:

Make sure you don't have 'ntpdate' running. It uses the same port as 'xntpd'.

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Address already in use

Kurt:

Seems that if you can't find reference to the port with 'netstat -an', 'lsof', and if neither 'xntpd' nor 'ntpdate' is running, then I would guess that the socket is in some limbo state from a previous instance that is no longer viable. Does a reboot cure the problem?

...JRF...
Lasse Knudsen
Esteemed Contributor

Re: Address already in use

Hmmm . It seems like you have checked all there is.

I can only comment it to further add that address c001ffff is a hex IP-address - in this case 192.1.255.255 which is a bit strange. I do not think it is the address of your machine - but maybe a broadcast address.

Do you by any chance have a subnet mask of 255.255.0.0 on a class C-net ?
That could give some strange errs.

/Allan
In a world without fences - who needs Gates ?
Kurt Henning
Advisor

Re: Address already in use

No "ntp" anything is running according to ps -ef | grep ntp. The primary heartbeat network for Service Guard is 192.1.0.0, so I suppose that's where the 192.1.255.255 is coming from, but I don't understand why it's trying to bind to a broadcast address and I'm not sure how to force it to try a different address that actually corresponds to an interface in the machine.

The xntpd daemon loads without a hitch on the sister box to this one. Lsof indicates that ntp is bound to every IP address, and every logical address, on that host.

I still need to try a reboot. It's just a matter of when I can pry the system away from the users.