[Pacemaker] apache on SLES11 SP1 did not start

Christoph Herrmann C.Herrmann at science-computing.de
Wed Feb 2 14:10:58 EST 2011


I'm getting strange error messages in syslog if I want to start an apache resource:

Feb  2 19:41:04 node03 lrmd: [6118]: info: rsc:resAPACHE:3:2787: start
Feb  2 19:41:04 node03 lrmd: [6118]: info: RA output: (resAPACHE:3:start:stderr) awk: cmd. line:48: fatal: cannot open file `ServerRoot' for reading (No such file or directory)
Feb  2 19:41:04 node03 lrmd: [6118]: info: RA output: (resAPACHE:3:start:stdout) usage: ha_logger [-t tag] [-D <ha-log/ha-debug>] [message]
Feb  2 19:41:04 node03 apache[651]: [678]: ERROR: httpd2-prefork: option requires an argument -- f Usage: /usr/sbin/httpd2-prefork [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-S] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings) -S : a synonym for -t -D DUMP_VHOSTS -t -D DUMP_MODULES : show a
 ll loaded modules -M : a synonym for -t -D DUMP_MODULES -t : run syntax check
Feb  2 19:41:04 node03 lrmd: [6118]: info: RA output: (resAPACHE:3:start:stderr) logger: unknown facility name: none.

this is my config:

primitive resAPACHE ocf:heartbeat:apache \
     operations $id="resAPACHE-operations" \
     op monitor interval="30" timeout="20s" \
     params statusurl="http://127.0.0.1/server-status" testregex="Apache Server Status" options="-DSSL -DSTATUS " httpd="/usr/sbin/httpd2-prefork" configfile="/etc/apache2/httpd.conf"


I'm running SLES11 SP1 HAE X86_64 with the standard apache rpm and I can start apache by hand (not with the init script just by typing
/usr/sbin/httpd2-prefork -DSSL -DSTATUS -f /etc/apache2/httpd.conf) without problems.


are there any known problems with the apache RA at least on SLES11? 



Cheers


   Christoph &:-)
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 






More information about the Pacemaker mailing list