HTTP_Server Issue: Address already in use: make_sock: could not bind to address 127.0.0.1 port 7011

Hi today I faced some issue while restart the OAS HTTP_Server. Everything started fine except HTTP_Server.

Here, I would like to mention some steps to fix this issue.

In my case I had seen the following error when I executed. /opmnctl restartall

Work Around: We can find the error reason by using this log files.   The Three logs are as follows:

1.       Oracle_home/opmn/logs/opmn.log.

2.       Oracle_home/opmn/logs/HTTP_Server~1.

3.       Oracle_home/Apache/Apache/logs/error_log. (Open the latest one).

In my case there is error information in HTTP_Server~1 is as follow

This error will deceive us in hunting my workaround.

After I look into apache log file here I got a clue of the error. The error is

 Address already in use: make_sock: could not bind to address 127.0.0.1 port 7011 

Reason: The HTTP process running already on this port.

Solution:

1.       Execute this command : ps -ef | grep httpd.

2.       Kill all the process.

3.       Start the http server as opmnctl startproc process-type=HTTP_Server.

Now the HTTP Server should start fine.

About the Author sarath

An Oracle Identity and Access Management professional, having working on Oracle Access Manager Single Sign-On implementations, Installation/Configuration of Identity Server, Web Pass, Web Gate, Access Gate, Policy Manager, Access Server, Policy Domains, Authentication /Authorization schemes, Single Sign-On (single and multi-domain), OIM, OVD, OID, OAAM, OIF, High Availability/Failover/ SSL deployment.

Leave a Comment:

9 comments
venkat says December 2, 2010

iam using port no same for two instance it is ok or i have to change when two instances 11i are on use we r getting issues pls post reply for this thanku

Reply
sarathkumar says December 2, 2010

hi venkat,
its not a pblm if same port no for two instance in diff machine.
its a pblm if same port no for two instance in same machine.

Reply
Atul Kumar says December 2, 2010

@ Venkat,
It is not possible for any two processes on same machine on same IP to use same port.

If you want two processes to use same port on same machine you must run them on different IPs (machine with two or more network cards).

If you have just one network card then change port on second instance to different value.

Reply
venkat says December 2, 2010

thnks fr ur response

Reply
rangnath says June 5, 2012

Tried after changing the available port number but noluck!

Reply
rangnath says June 5, 2012

facing the below problem while starting HTTP.

./opmnctl startproc process-type=HTTP_Server
opmnctl: starting opmn managed processes…
================================================================================
opmn id=xxxxx:6201
0 of 1 processes started.

ias-instance id=XXXX.XXXX.XXX.XXX.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ias-component/process-type/process-set:
HTTP_Server/HTTP_Server/HTTP_Server

Error
–> Process (pid=8427)
failed to start a managed process after the maximum retry limit
Log:
/opt/oraias/infra/10g/opmn/logs/HTTP_Server~1

Reply
Atul Kumar says June 5, 2012

@ rangnath
Your issue could be different, check ohs logs and update log file here

Reply
Dinesh Kandavel says July 22, 2012

Hello Sarath,

Your action plan was spot on.Thanks very much.

Reply
Shaik Sadiq says July 25, 2012

Hello Sarath,

Your action plan has been Implmented in our IDM OAM Servers.

Thanks much for posting the useful workaround.

Regards,
Sadiq

Reply
Add Your Reply

Not found