Unable to create a server socket for listening on channel “Default”

Oracle Weblogic Server

If you are getting below error while starting weblogic managed server then there are few steps which can be done to fix the issue.

Error in Log:

<Jun 2, 2011 5:46:12 PM EAT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default". The address 10.34.20.295 might be incorrect or another process is using port 7002: java.net.BindException: Address already in use (errno:226).>

<Jun 2, 2011 5:46:12 PM EAT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[2]". The address 127.0.0.1 might be incorrect or another process is using port 7002: java.net.BindException: Address already in use (errno:226).>

<Jun 2, 2011 5:46:12 PM EAT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address 10.31.0.206 might be incorrect or another process is using port 7002: java.net.BindException: Address already in use (errno:226).>

<Jun 2, 2011 5:46:12 PM EAT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>

<Jun 2, 2011 5:46:12 PM EAT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>

<Jun 2, 2011 5:46:12 PM EAT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>

<Jun 2, 2011 5:46:12 PM EAT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

 

Troubleshooting:

Try to find out that you have NOT assigned same port for two or more managed servers. If Yes then change it to some unused unique port number.

In system do a netstat -anb | find “7002” to know the process ID of the stale process. Make sure that process is not using the 7002 or which ever port you have assigned to the Failing managed server.

In unix system you can cross check by issueing a command ps -eaf | grep 7002 , it will show if a weblogic process is using this port or not.

Linux Command

netstat -tulpn | grep 7002

Note: You need to be root user or root privileged user to get the pid which is “-p” in netstat command given above.

AIX Command

1. netstat -Aan | grep <port number>
- This shows if the specified <port number> is being used. The hex number in the first column is the address of protocol control block (PCB)

2. rmsock <addr of PCB> tcpcb
- This shows the process who is holding the socket. Note: This command must be run as root..

AIX Example

$ netstat -Aan | grep 7002

f10000f303321b58 tcp4       0      0  *.7002            *.*         LISTEN

The netstat command above shows that the port 7002 is being used for listening. To confirm that the process is using the port, run rmsock as root like following below:

$ rmsock f10000f303321b58 tcpcb
The socket 0x3321800 is being held by proccess 692476 (java).

If the process is a stale process then kill it from taskmgr or in Unix machines use kill -9 PID to kill it.

If all above is false for you then look at the .lok file in the weblogic installation directory and use the /usr/sbin/lsof command to check it is used by any running process or not . If its not in use with any running process on system then remove the file and try starting the manage server.

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

6 Responses

  1. I am getting this error

    <Jan 2, 2014 4:07:29 PM IST> <Error> <Server> <BEA-002606> <The server is unable
    to create a server socket for listening on channel "Default[2]". The address 0:
    0:0:0:0:0:0:1 might be incorrect or another process is using port 7001: java.net
    .SocketException: Address family not supported by protocol family: bind>

    <Jan 2, 2014 4:07:29 PM IST> <Error> <Server> <BEA-002606> <The server is unable
    to create a server socket for listening on channel "Default[1]". The address fe
    80:0:0:0:0:5efe:a83:5b51 might be incorrect or another process is using port 700
    1: java.net.SocketException: Address family not supported by protocol family: bi
    nd>

  2. TechPaste.Com says:

    It seems your process ID is still using the 7001 port number.

    you can run below command to check “netstat -antlup | grep 7001” the process ID using the 7001 port number. Kill the process ID and restart and check.

  3. Kalyan N says:

    Getting this Error & I have did the netstat cmd and found it is using by java process. Hope this Error is new apart from this ,.,. Pls revert me the cause of mine..

  4. Sandeep Kumar says:

    Check your Host File Windows/…/Driver/etc/

Leave a Reply