Apache service start failed in a Red Hat Cluster

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux Server 5 (with the High Availability and Resilient Storage Add Ons)
  • Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)
  • Apache compiled from the source

Issue

Apache Service failed to start in a HA Cluster.

Resolution

1. Use an apache resource in stead of a script.

2. Set up /usr/share/cluster/apache.sh /usr/share/cluster/apache.metada to use the proper paths

3. Set up apache certificate so no passphrase is asked as described in:

http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#removepassphrase

Root Cause

A. Missconfiguration in the cluster ( Customer was using httpd binary as a script ) and in the Apache SSL certificate .

Diagnostic Steps

1. In /var/log/messages you could read:

    clurgmgrd: [6692]: err script:run-apache: start of /usr/local/apache2/bin/httpd failed (returned 1)  
    clurgmgrd[6692]: notice start on script "run-apache" returned 1 (generic error)  
    clurgmgrd[6692]: warning #68: Failed to start service:httpd; return value: 1  
    clurgmgrd[6692]: notice Stopping service service:httpd  
    clurgmgrd: [6692]: err script:run-apache: stop of /usr/local/apache2/bin/httpd failed (returned 1)  
    clurgmgrd[6692]: notice stop on script "run-apache" returned 1 (generic error)  
    clurgmgrd[6692]: crit #12: RG service:httpd failed to stop; intervention required  
    clurgmgrd[6692]: notice Service service:httpd is failed  
    clurgmgrd[6692]: crit #13: Service service:httpd failed to stop cleanly

2. After delete the script resource, create an apache resource we still get these errors:

    clurgmgrd: [4456]: err Starting Service apache:web > Failed  
    clurgmgrd[4456]: notice start on apache "web" returned 1 (generic error)  
    clurgmgrd[4456]: warning #68: Failed to start service:httpd; return value: 1  
    clurgmgrd[4456]: notice Stopping service service:httpd

3. After setting up the script /usr/share/ cluster/apache.sh with the proper paths we still have the following errors:

    \[Wed Oct 07 17:16:36 2009\] \[error\] Init: Unable to read pass phrase [Hint: key introduced or changed before restart?]

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.