My Oracle Support Banner

Starting HTTP Server fails with "Time Out While Waiting For a Managed Process to Start" with WebGate is Configured (Doc ID 1916960.1)

Last updated on AUGUST 27, 2018

Applies to:

Oracle HTTP Server - Version and later
Information in this document applies to any platform.


On : version,

The Oracle HTTP Server will not start using "opmnctl startproc process-type=OHS" and it returns the following errors:

--> Process (index=1,uid=##,pid=##)
time out while waiting for a managed process to start

The <instance_home>/diagnostics/logs/OHS/ohs1/console~OHS~1.log shows the following message:

<webTier>/ohs/bin/apachectl hardstop: httpd stopped



The following steps were taken to determine what was preventing OHS from starting.

1.  The processes for httpd were grepped using "ps -ef | grep httpd" and then "kill -9 <pid>"; remove the opmn/states directory and use "opmnctl startproc process-type=HTTP_Server".  OHS still fails to start.

2.  The <start timeout="300" /> was added to opmn.xml file as described within < Note: 821419.1> (OPMN Fails to Start HTTP Server - "Time Out While Waiting For a Managed Process to Start"), but the OHS still failed to start.

3.  The "apachectl start -f $httpd_conf" allows OHS to start. 

a.  Create a script, call it, and put in these commands:

export ORACLE_HOME=<oracle_home>
export ORACLE_INSTANCE=<oracle_instance>
export COMPONENT_NAME=ohs1
export MPM_TYPE=worker
export APACHE2_HOME=$ORACLE_HOME/instances
export PATH=$ORACLE_HOME/ohs/bin:$PATH
export httpd_cmd=httpd.$MPM_TYPE
export httpd_conf=$ORACLE_INSTANCE/config/$COMPONENT_TYPE/$COMPONENT_NAME/httpd.conf

b.  Save the file and change permissions, chmod +x, then source it "source ./"

c.  Start OHS using apachectl start -f $httpd_conf

$ apachectl start -f $httpd_conf
./apachectl start: execing httpd
[Fri Aug 08 21:31:27 2014] [warn] Errors will be logged into <instance_home>/diagnostics/logs/OHS/ohs1/ohs1.log

d.  Grep for httpd processes:

$ ps -ef| grep httpd
java-sup 11159 11151   0 19:04:59 ?           0:01 <oracle_home>/ohs/bin/httpd.worker -k start -f /ho
java-sup 11151  4519   0 19:04:58 ?           0:01 <oracle_home>/ohs/bin/httpd.worker -k start -f /ho
java-sup 11158 11151   0 19:04:59 ?           0:01 <oracle_home>/ohs/bin/httpd.worker -k start -f /ho
java-sup 27751 26207   0 21:32:26 pts/5       0:00 grep httpd

e.  Run "netstat -an | grep <http_port>" and it shows as listening.

4. If all the include files, including webgate.conf include are commented out in the httpd.conf file, then OHS starts:

#include "<instance_home>/config/OHS/ohs1/mod_wl_ohs.conf"
#include "<instance_home>/config/OHS/ohs1/ssl.conf"
#include "<instance_home>/config/OHS/ohs1/admin.conf"
#include  "<instance_home>/config/OHS/ohs1/webgate.conf"
#include "moduleconf/*.conf" 

5. Now uncomment each include line in the httpd.conf file one by one.   When the webgate.conf file is uncommented out, then OHS does not start.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.