About Me.

My self Adinarayana working as Implementation Application DBA with advanced technologies like RAC/PCP,OID/SSO,DMZ,Exadata and Fusion Middleware i.e Demantra,Application Server,SOA,FMW,BPEL and UPK. Created this blog to share the useful information related to DBA and Application DBA Your comments and suggestions are most welcome. Disclaimer: Please note all the views and opinions expressed in this site are my own. It's not recommend to use the fixes/suggestions provided in this site directly in production instance, please test them before implementing.

Wednesday, August 7, 2013

Apache Issues

Issue 1:
<$INST_TOP>/apps/VIS_at3/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
Syntax error on line 17 of <$INST_TOP>/apps/<SID>_<hostname>/ora/10.1.3/Apache/Apache/conf/mod_osso.conf:
Unable to open <$INST_TOP>/apps/<SID>_<hostname>/ora/10.1.3/Apache/Apache/conf/osso/<SID>_<hostname>_osso.conf.

Solution:
1. Backup the $CONTEXT_FILE

2. Edit the parameter  "s_mod_osso_conf_comment" in the $CONTEXT_FILE using editContext utility,  or manually using a text editor

3. Set the value for the above parameter to "#"

4. Save the changes and run Autoconfig

5. Start the Apache service to re-test the issue

6. Migrate the solution as appropriate to other environments

Reference doc id:Starting R12 Apache errors with status 204 after Cloning SSO Enabled E-Business Suite Instance (Doc ID 730982.1)

Issue 2:
Error:
adapcctl.sh: exiting with status 204

From : HTTP_Server_1.log
---------------------------------
Start process
$IAS_ORACLE_HOME/Apache/Apache/bin/apachectl startssl: execing httpd

Steps to Reproduce:
The issue can be reproduced at will with the following steps:
Start Apache Services using adapcctl.sh :
$ sh adapcctl.sh start

Business Impact :
Due to this issue, users cannot log in to Oracle Application.

Cause:

$IAS_ORACLE_HOME/Apache/Apache/bin/httpd executable got corrupt or having zero in size.

Solution:

To implement the solution, please execute the following steps:
1.) Replace the file $IAS_ORACLE_HOME/Apache/Apache/bin/httpd from working Instance.
2.) Bounce the appsTier services.
3.) Retest the issue.

Reference Doc id:Error - adapcctl.sh: Exiting With Status 204 (Doc ID 1289128.1)

Issue 3:
Error:
adapcctl.sh: exiting with status 204

From : HTTP_Server_1.log
---------------------------------
Start process
$IAS_ORACLE_HOME/Apache/Apache/bin/apachectl startssl: execing httpd

Cause:
Apache/Apache/logs are 100% full.(Mount Point)

Solution:

Delete logs or add space to the mount point.

Issue 4:

adapcctl.sh: exiting with status 204


$ORACLE_HOME/Apache/Apache/logs/xml.log shows:

pid file /xxx/inst/apps/XXX/pids/10.1.3/Apache/httpd.pid overwritten

An unclean shutdown of previous Apache may have occurred.
 
$ORACLE_HOME/Apache/Apache/logs/error.log shows:

httpd: could not log pid to file /xxx/inst/apps/XXX/pids/10.1.3/Apache/httpd.pid
fopen: Permission denied

-- Steps To Reproduce:
The issue can be reproduced at will with the following steps:
1. Stop services as user root.
2. Re-start the services.

Cause:
The services were shut down using user root, and the file httpd.pid cannot be opened by oracle user.

Solution:

-- To implement the solution, please execute the following steps:

1. Check if root owns file httpd.pid:
/xxx/inst/apps/XXX/pids/10.1.3/Apache/httpd.pid

$ cd /xxx/inst/apps/XXX/pids/10.1.3/Apache
$ ls -lart
-rw-r--r-- 1 root system 7 Nov 16 15:10 httpd.pid

Reference Doc id:adapcctl.sh: 'Exiting With Status 204' After Shutdown As User ROOT (Doc ID 751390.1)

Issue 5:
You are running adapcctl.sh version 120.6.12000000.4
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
adapcctl.sh: exiting with status 204

Review the HTTP log file. The error is very clear about the missing soft link. It would show this error:
...
<physical Path>/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
<physical Path>/10.1.3/Apache/Apache/bin/httpd: error while loading shared
libraries: libdb.so.2: cannot open shared object file: No such file or directory
...

Soft link libdb.so.2 is missing.

Solution:

To implement the solution, please execute the following steps:

1. Shut down all Oracle Application Services.

2. As the unix root user, create a soft link as follows:

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
3. Start up all Oracle Application Services.

Reference Doc id:Attempting to Start Apache (adapcctl.sh) Throws an 'Error While Loading Shared Libraries: libdb.so.2' on RedHat Linux 5 (Doc ID 879522.1)

Issue 6:

/sid/inst/apps/hostname/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
Error: Failed to open the wallet [Hint: incorrect path, incorrect password, bad wallet, ...]
(Server ebsdev1.snapbs.com:443, wallet file:/sid/inst/apps/hostname/certs/Apache)

Solution:

Then check the $ORACLE_HOME/opmn/conf/opmn.xml and make sure ssl-enabled is set:
<ias-component id="HTTP_Server">
<process-type id="HTTP_Server" module-id="OHS">
<module-data>
<category id="start-parameters">
<data id="start-mode" value="ssl-enabled"/>
</category>
</module-data>
<process-set id="HTTP_Server" numprocs="1"/>
</process-type>

Referenece Doc id:
Troubleshooting Oracle HTTP Server with SSL and Common Errors in Oracle Application Server 10g (10.1.2-10.1.3) (Doc ID 829217.1)

No comments:

Post a Comment