My Oracle Support Banner

Oracle HTTP Server Failed to Stop With the Error " hardstop: httpd (no pid file) not running" After Changing httpd.conf File (Doc ID 1604258.1)

Last updated on APRIL 09, 2018

Applies to:

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

Symptoms

 After changing the httpd.conf used by OH using something like the following in opmn.xml:

  <process-type id="OHS" module-id="OHS2">
    <module-data>
      <category id="start-parameters">
        <data id="start-mode" value="ssl-enabled"/>
        <data id="config-file" value="/space/oracle/config/httpd.conf"/>
      </category>
    </module-data>
    <process-set id="OHS" numprocs="1"/>
  </process-type>

 
The OHS component will be started but when try to stop it the following error appears:

-bash-3.2$ pwd
/space/oracle/Middleware/Oracle_WT1/instances/configtest
-bash-3.2$ /space/oracle/Middleware/Oracle_WT1/instances/configtest/bin/opmnctl stopall
opmnctl stopall: stopping opmn and all managed processes...
================================================================================
opmn id=lbl-503.uk.oracle.com:6701
Response: 0 of 1 processes stopped.

ias-instance id=configtest
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
  myohs/OHS/OHS/

Error
--> Process (index=1,uid=1071651494,pid=7017)
  time out while waiting for a managed process to stop
  second stop attempted
  time out while waiting for a managed process to stop
  Log:
  /space/oracle/Middleware/Oracle_WT1/instances/configtest/diagnostics/logs/OHS/myohs/console~OHS~1.log

opmnctl stopall: stop of processes failed, using forceful shutdown...

 

 >
> /space/oracle/Middleware/Oracle_WT1/instances/configtest/diagnostics/logs/OHS/myohs/console~OHS~1.log
> -----------------------------------------------------------------------------------------------------

--------
13/11/29 07:27:06 Stop process
--------

--------
13/11/29 07:27:06 Stop process
--------
/space/oracle/Middleware/Oracle_WT1/ohs/bin/apachectl hardstop: httpd (no pid file) not running
/space/oracle/Middleware/Oracle_WT1/ohs/bin/apachectl hardstop: httpd (no pid file) not running

--------
13/11/29 07:28:08 Stop process
--------
/space/oracle/Middleware/Oracle_WT1/ohs/bin/apachectl hardstop: httpd (no pid file) not running

--------
13/11/29 07:29:10 Stop process
--------
/space/oracle/Middleware/Oracle_WT1/ohs/bin/apachectl hardstop: httpd (no pid file) not running


>
> /space/oracle/Middleware/Oracle_WT1/instances/configtest/diagnostics/logs/OPMN/opmn/opmn.log
> --------------------------------------------------------------------------------------------
>
[2013-11-29T07:25:01+00:00] [opmn] [NOTIFICATION:1] [667] [pm-requests] Request 6 Started. Command: /stop
[2013-11-29T07:25:01+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:26:03+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:26:03+00:00] [opmn] [ERROR:1] [] [libopmnohs] Forcefully Terminating Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:26:11+00:00] [opmn] [ERROR:1] [] [ons-secure] Connection 8;::ffff:127.0.0.1;642 SSL handshake failed (28862)
[2013-11-29T07:27:05+00:00] [opmn] [NOTIFICATION:1] [668] [pm-requests] Request 6 Completed. Command: /stop
[2013-11-29T07:27:05+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:27:05+00:00] [opmn] [ERROR:1] [] [libopmnohs] Forcefully Terminating Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:27:05+00:00] [opmn] [NOTIFICATION:1] [676] [pm-internal] OPMN server stopped. Request handling disabled
[2013-11-29T07:27:05+00:00] [opmn] [NOTIFICATION:1] [667] [pm-requests] Request 7 Started. Command: /shutdown
[2013-11-29T07:27:05+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:27:05+00:00] [opmn] [ERROR:1] [] [libopmnohs] Forcefully Terminating Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:28:07+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:28:07+00:00] [opmn] [ERROR:1] [] [libopmnohs] Forcefully Terminating Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:29:09+00:00] [opmn] [NOTIFICATION:1] [663] [pm-process] Stopping Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:29:09+00:00] [opmn] [ERROR:1] [] [libopmnohs] Forcefully Terminating Process: myohs~OHS~OHS~1 (1071651494:7017)
[2013-11-29T07:29:11+00:00] [opmn] [ERROR:1] [] [ons-secure] Connection a;::ffff:127.0.0.1;61125 SSL handshake failed (28862)
[2013-11-29T07:30:11+00:00] [opmn] [NOTIFICATION:1] [668] [pm-requests] Request 7 Completed. Command: /shutdown



so finally the process stop fails as above and also some process keep running.

Changes

 change the httpd.conf location in opmn.xml

Cause

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
Symptoms
Changes
Cause
Solution
References


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