Web Agent doesn't start after a Web Server patch
search cancel

Web Agent doesn't start after a Web Server patch

book

Article ID: 139748

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On Agents (SiteMinder) CA Single Sign On Federation (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) SITEMINDER

Issue/Introduction


When starting the Web Agent, the Web Server reports this error and the web sites are not reachable:


Mon Oct 14 13:18:52 EDT 2019
/{home_weg_server}/bin/apachectl start httpd: Syntax error on line 964 of
/{home_weg_server}opt/IHS/profiles/ihs/conf/httpd.conf: Syntax error on line 2 of /opt/IHS/profiles/ihs/conf/virtualhosts.conf:
Syntax error on line 7
/{home_webagent}/bin/libmod_sm22.so into server: libsmerrlog.so: cannot open shared object file: No such file or directory

 

Environment


Web Agent 12.52SP1CR09 64bit on IHS 8.5.5.16 64bit on RedHat 6;

 

Cause


This error occurs when there's a mismatch in the environment variable or a misconfiguration in the Apache config files (1)(2)(3).
 
Further, according to IBM, it is suggested to place the environment variables of the Web Agent into the envvars script of IHS instead of in apachectl script (4).

 

Resolution


Set the IHS Web Agent environment variables that way:

  1. Take a copy of the original envvars:
     
     # cp -p /{home_web_server}/bin/envvars /{home_web_server}/bin/envvars.orig

  2. Add the content of the Web Agent Environment Variables to the envvars:

    # cat /{home_web_agent}/ca_wa_env.sh >> /{home_web_server}/bin/envvars

  3. Comment the sourcing of the Web Agent env variables in apachectl:

    change the line

    . /{home_web_agent/ca_wa_env.sh

    to 

    # . /{home_web_agent}/ca_wa_env.sh

and restart IHS and Web Agent to solve the issue.

 

Additional Information