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

I was performing the OAM WebGate installation on Oracle HTTP Server 1.x today. After installation, when I restart the http server component, it is failing with an error message shown below.

opmnctl: starting opmn and all managed processes…
___________________
0 of 1 processes started.
ias-component/process-type/process-set:

HTTP_Server/HTTP_Server/HTTP_Server/

Error
–> Process (pid=2638)
failed to start a managed process after the maximum retry limitWhen I look into error log at location ORACLE_HOME/Apache/Apache/logs , it shows the error given below.

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

.

Cause:

There is a process running already on this port.

Solution:

Search for httpd processes running by executing: ps -ef | grep httpd

Kill all those process and HTTP Server should start fine.

Else, follow the below steps.

  • Login as root user
  • Executed this command sudo lsof -i:7011
  • Kill all the processes that are output of the previous command
  • exit as root user
  • Login as appropriate user who has privileges to restart HTTP Server
  • stop the http server as opmnctl stopproc process-type=HTTP_Server
  • start the http server as opmnctl startproc process-type=HTTP_Server

Now the server has started smoothly.

About the Author Mahendra

I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com

Leave a Comment: