Apache-based Agent Troubleshooting

The following content details the Apache-based Agent troubleshooting information:
casso1283
The following content details the Apache-based Agent troubleshooting information:
Oracle HTTP Server Fails to Start
Valid for AIX OS
Symptom:
On AIX, the Oracle HTTP Server 11g (11.1.1.x) fails to start while loading the SiteMinder libmod_sm22.so module.
The following message is logged in the Oracle instance log:
/opt/oracle/Middleware/Oracle_WT1/ohs/bin/apachectl startssl: execing httpd httpd.worker: Syntax error on line 206 of /opt/oracle/Middleware/Oracle_WT1/instances/instance1/config/OHS/ohs1/httpd.conf: Cannot load /opt/webagent/bin/libmod_sm22.so into server: Could not load module /opt/webagent/bin/libmod_sm22.so. Dependent module libsmerrlog.so could not be loaded. Could not load module libsmerrlog.so. System error: No such file or directory Could not load module /opt/webagent/bin/libmod_sm22.so. Dependent module /opt/webagent/bin/libmod_sm22.so could not be loaded.
Solution:
Replace every occurrence of LD_LIBRARY_PATH with LIBPATH in the OHS configuration file opmn.xml. The opmn.xml file is generally available at the following location:
~ORACLE_INSTANCE/config/OPMN/opmn/
Apache-based Server Not Starting on Windows
Symptom:
My Apache based server failed to start after loading the mod_sm24 module.
The following message appears in my Windows event viewer:
Faulting application name: httpd.exe, version: 2.4.9.0, time stamp: 0x5326d7a4 Faulting module name: mod_sm24.dll, version: 12.5.4.914, time stamp: 0x5379ded8 Exception code: 0xc00000fd Faulting application path: C:\Apache24\bin\httpd.exe Faulting module path: C:\Program Files\CA\webagent\win64\bin\mod_sm24.dll
Solution:
Do the following tasks:
  1. Open the Visual Studio command-line window:
  2. Run the following command: editbin /STACK:524288 httpd.exe
  3. Verify that the stack reserve space has been updated to 80000(hex).
Apache Server Shows shmget Failure On Startup
Symptom:
When starting the web server, you see: shmget failed.
You may be trying to make a cache that is too large or be doing apachectl restart.
Solution:
Make the recommended adjustments to the shared memory segments.
Apache Agent is Enabled but Default Server Page or Protected Resource Not Accessible
Symptom:
The default web server page or the protected resource is not accessible after enabling Web Agent.
Solution:
Make the recommended adjustments to the shared memory segments.
Apache Web Agent Not Operating
Symptom:
The Apache Web Agent is not operating.
Solution:
Tune the Apache operating system shared memory.
Non-english Input Characters Contain Junk Characters
Valid on UNIX/Linux
Symptom:
Some non-English input characters are not displayed correctly in the console window.
Solution:
Verify the terminal settings of your console window. Confirm that the console does not clear high (eight) bit of input characters. Execute the following command:
stty -istrip
LLAWP Fails to Start on Apache
Symtpom
:
The agent on the Apache 2.0.46 web server for RHEL 3 fails to start LLAWP when the web server is started using the init startup script. The following error is displayed:
[07/Oct/2008:12:04:36] [Information] SiteMinder Agent
SiteMinder agent is enabled.
[07/Oct/2008:12:04:36] [Information] SiteMinder Agent
Configuration file path:
'/u01/webserver/apache2/ebizdev4_www_443/conf/WebAgent.conf'.
[07/Oct/2008:12:04:37] [Info] [CA WebAgent IPC] [15537] [CSmSem::getSem]
Attempted to attach to non-existent semaphore with key 0xc817a8e4
[07/Oct/2008:12:04:37] [Info] [CA WebAgent IPC] [15537] [CSmSem::getSem]
Created semaphore 32768 using key 0xc817a8e4
[07/Oct/2008:12:04:37] [Info] [CA WebAgent IPC] [15537] [CSmSem::getSem]
Attempted to attach to non-existent semaphore with key 0x6b17a8e4
CSmLowLevelAgent: No such file or directory
[07/Oct/2008:12:04:37] [Error] SiteMinder Agent
Failed to Start the LLAWP process.
Execlp failed: 'No such file or directory'. LLAWP.exe must be callable from the system path.
[07/Oct/2008:12:04:42] [Info] [CA WebAgent IPC] [15537] [CSmSem::getSem]
Attempted to attach to non-existent semaphore with key 0x6617a8e4
[07/Oct/2008:12:04:42] [Error] SiteMinder Agent
Failed to initialize the message bus.
[07/Oct/2008:12:04:42] [Warning] SiteMinder Agent
SiteMinder agent has encountered initialization errors and will not service requests.
[07/Oct/2008:12:04:42] [Info] [CA WebAgent IPC] [15537] [CSmSem::SemRm] Removed semaphore 32768
 
Solution
:
To resolve the issue for Apache web servers on RHEL that use the service wrapper, the PATH variable in the httpd global configuration file must be updated to include the path to the web agent binaries.
Follow these steps
:
  1. Open the httpd file from the following location:
    /etc/sysconfig/
  2. Add the webagent/bin directory in the PATH variable as shown:
    PATH=$PATH:/path/to/webagent/bin
    export PATH
  3. Save the changes.
Oracle HTTP Server Fails to Start or Stop after Configuring Web Agent.
Symptom
:
Web Agent intercepts the Oracle HTTP Server’s Dynamic Monitoring Service when the Web Server root (/) is protected.
Solution:
Use one of the following solutions to resolve the issue:
  1. Use an ACO parameter
    IgnoreUrl
    with the value as “/dms”.
    Note
    : See Ignore Unprotected Resources for information on using the IgnoreUrl.
  2. Unprotect the “/dms” by creating an unprotected realm.
    Follow these steps:
    • Create a realm in the Domain and enter “/dms” as the
      Resource
      Filter
      .
    • Select the
      Default
      Resource
      Protection
      as
      Unprotected
      .
      Note
      : Do not create any rule for the Resource.
    • Select the
      Authentication
      Scheme
      and click
      Create
      .