can't bind to port - in use????

From: Charles Ballowe (hangman@steelballs.org)
Date: Tue Apr 15 2003 - 05:44:58 EDT


I'm trying to start a process that binds to a specific tcp port. It is
failing to start claiming address already in use, however netstat -a
and lsof see nothing using that port. If I change the port to something
extra high like 12345 it works without problem. This service is usually
running on the box from a point shortly after boot, but I forgot to
start it when the system came up sunday from some unscheduled maintenance.

The process is an oracle listener that is run on port 1522, the tnsnames.ora
and listener.ora haven't been touched since early Feb. It's failing
with this set of errors:
TNS-12542: TNS:address already in use
 TNS-12560: TNS:protocol adapter error
  TNS-00512: Address already in use
   DEC OSF/1 AXP Error: 48: Address already in use

More testing indicates that I can use 1524, but not 1522 or 1523... no need to
go extra high. I see 1524 is listed in /etc/services and /etc/clua_services.

Ok... adding a line for 1522 to /etc/services and /etc/clua_services and
running cluamgr -f on both cluster nodes seems to have solved my problem.
So, my question changes from the one I was going to ask to "Why?" - nothing
had the port bound at the moment, why would declaring it "static" in
clua_services do anything to fix the problem I was having?

-charlie



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:16 EDT