Oracle MVA

Tales from a Jack of all trades

Archive for the ‘OPMN’ Category

OHS 11 and configuration errors

with 2 comments

While trying to work out some rewrite rules for UCM on OHS (Apache) I noticed a new feature that I didn’t notice before. Back in the good old OAS days (when the air was clean and sex was dirty) I was used to check my apache configuration like this:

apachectl configtest

This would prevent Apache from crashing upon restart from opmn. When moving to 11 (and WebLogic) I stopped doing this (could get the configtest to work), which ment I have to doublecheck my configurations before setting them online.

Anyway, constructing rewrite rules is difficult (to me), chances are that you make a mistake while constructing the rule. So when I made a configuration error I noticed this:

$ /u01/app/oracle/admin/instance1/bin/opmnctl restartproc process-type=OHS
opmnctl restartproc: restarting opmn managed processes...
opmn id=testbox.area51.local:6701
0 of 1 processes restarted.

ias-instance id=instance1

–> Process (index=1,uid=893024996,pid=14351)
Process restart failed.
Process is still alive — check configuration.


Now that’s interesting. Oracle added a new feature: check the configuration before restarting Apache. The “Process is still alive — check configuration.” is new to me. Didn’t read this is the docs, still nice to know.

Hope this helps.

Written by Jacco H. Landlust

April 7, 2011 at 10:44 am

Posted in OHS, OPMN

Tagged with