Access gateway Service installed on SLES11 SP2 stops working / crashes in a regular basis without recovering itself

  • 7010718
  • 31-Aug-2012
  • 12-Nov-2012

Environment

NetIQ Access Manager 3.2
NetIQ Access Manager 3.2 IR1
NetIQ Access Manager 3.2 Access Gateway Service
NetIQ Access Manager 3.2 IR Access Gateway Service
SUSE Linux Enterprise Server 11 Service Pack 2

Situation

  • Access Gateway Service installed on SUSE Linux Enterprise Server 11 Service Pack 2 stops working in a regular basis

  • Access Gateway Service installed on SUSE Linux Enterprise Server 11 Service Pack 1 works without any problems / crashes

  • The crash happens at the time logrotate is rolling over the:"/var/log/novell-apache2/error_log" file.

Resolution

  1. edit the: "/etc/logrotate.d/novell-mag" configuration file and comment out the line:
    "/usr/bin/killall  -HUP httpd",

  2. review the /etc/syslog-ng/syslog-ng.conf file and make sure the following entries are available:

    filter f_local5     { facility(local5); };
    filter f_local6     { facility(local6); };
    filter f_user       { facility(user); };
    destination agsmessages { file("/var/log/novell-apache2/error_log"); };
    destination httpheaders { file("/var/log/novell-apache2/httpheaders"); };
    destination soapmessages{ file("/var/log/novell-apache2/soapmessages"); };
    log { source(src); filter(f_user); destination(agsmessages); flags(final); };
    log { source(src); filter(f_local6); destination(httpheaders); flags(final); };
    log { source(src); filter(f_local5); destination(soapmessages); flags(final); };



  3. apply the changes restarting the syslog daemon: "/etc/init.d/syslog restart"
  4. configure httpd to use syslog in /etc/opt/novell/apache2/conf/httpd.conf
  5. The ErrorLog directive needs to be changed to 'ErrorLog syslog:user'
  6. Sample snippet of the working httpd.conf for ErrorLog is below:

    --------------------------------------
    ...
    <IfModule !mpm_winnt_module>
    ErrorLog syslog:user
    </IfModule>

    ErrorLog "/var/log/novell-apache2/error_log"

    ....
    -----------------------------------------------

  7. restart Apache:  "/etc/init.d/novell-apache2 restart"