Attempting To Start OHS Service Fails To Start Apache After Upgrade, Cloning or HTTP Port Change (Doc ID 1104898.1)

Last updated on MARCH 08, 2017

Applies to:

Beehive - Version 2.0.1.0.0 and later
Information in this document applies to any platform.
This issue can occur after a port has been changed, after an upgrade or on a cloned system.

***Checked for relevance on 14-June-2013***

Symptoms

After changing the HTTP ports from the default ports to 80, when trying to start the ohs service Apache is failing to start.

The following error is reported when starting all Beehive processes:

[orabh@beehive3 bin]$ beectl start --all --serially

Starting beehive component "BTI_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "BTI_BeeTest.beehive3.oracle.com".
Operation completed in 0min 6s .

Starting beehive component "oc4j_soa_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "oc4j_soa_BeeTest.beehive3.oracle.com".
Operation completed in 0min 25s .

Starting beehive component "BEECLIENT_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "BEECLIENT_BeeTest.beehive3.oracle.com".
Operation completed in 0min 26s .

Starting beehive component "BEEAPP_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "BEEAPP_BeeTest.beehive3.oracle.com".
Operation completed in 1min 3s .

Starting beehive component "BEEMGMT_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "BEEMGMT_BeeTest.beehive3.oracle.com".
Operation completed in 0min 25s .

Starting beehive component "BEECORE_BeeTest.beehive3.oracle.com" ...
Successfully started beehive component "BEECORE_BeeTest.beehive3.oracle.com".
Operation completed in 0min 31s .

Starting beehive component "ohs_BeeTest.beehive3.oracle.com" ...
Failed to start beehive component "ohs_BeeTest.beehive3.oracle.com". Cause of failure : oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
Operation completed in 0min 2s .

beectl command failed. See the log file "/d01/oracle/product/2.0.1.0.0/beehive_1/beehive/logs/beectl/2010.05.18/beectl_start_06_21_59-0400.txt" for

---------

Error Message:

---------





Attempting to start only OHS:

[orabh@beehive3 ~]$ beectl start --component ohs_BeeTest.beehive3.oracle.com

Starting beehive component "ohs_BeeTest.beehive3.oracle.com" ...
Failed to start beehive component "ohs_BeeTest.beehive3.oracle.com". Cause of failure : oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
Operation completed in 0min 3s .

beectl command failed. See the log file "/d01/oracle/product/2.0.1.0.0/beehive_1/beehive/logs/beectl/2010.05.18/beectl_start_20_07_58-0400.txt" for more details.
0 of 1 component(s) started successfully.

[orabh@beehive3 ~]$ beectl status --component ohs_BeeTest.beehive3.oracle.com

-------------------------------------+------------------+-----------------------
Component identifier | Component type | Status
-------------------------------------+------------------+-----------------------
ohs_BeeTest.beehive3.oracle.com | HttpServer | STOPPED
-------------------------------------+------------------+-----------------------

1 Record(s) displayed.



The following error could be logged in the $ORACLE_HOME/opmn/logsHTTP_Server_1.log:

--------
10/05/18 20:08:08 Start process
--------
apachectl is not owned by this user

Changes

The cloning steps were run as documented in the Beehive Installation Guide.

Part of these steps are to set the permissions for .apachectl to root, as documented in chapter 16 Oracle Beehive Post-Installation Procedures, Configuring Oracle Beehive to Listen on Ports Less Than 1024 of the Beehive Installation Guide:


1 - As the root user, change the owner of .apachectl to the root user, set its user ID to root, and give all users permission to execute it::

chown root $ORACLE_HOME/Apache/Apache/bin/.apachectl
chmod a+x $ORACLE_HOME/Apache/Apache/bin/.apachectl
chmod a+s $ORACLE_HOME/Apache/Apache/bin/.apachectl



2 -

$ORACLE_HOME/beehive/bin/beectl modify_property --component ohs_BeeTest.beehive3.oracle.com --name HttpListenPort --value 80



3 -

$ORACLE_HOME/beehive/bin/beectl modify_property --component _VIRTUAL_SERVER --name HttpPort --value 80



4 -

$ORACLE_HOME/beehive/bin/beectl activate_configuration
$ORACLE_HOME/beehive/bin/beectl modify_local_configuration_files

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms