Cool, i now understand why I need an RA.. thanks.. it gets further now...

It's now saying that it can't bind to the IP address.. I think the IPAddr RA is 
running, then APACHE is starting too quickly afterwards and the subinterface 
hasn't yet been created.

Have you had this before?

>>> On 14/08/2007 at 14:29, [EMAIL PROTECTED] wrote:
> On Tue, Aug 14, 2007 at 01:27:54PM +0100, Beren Gamble wrote:
>> Hi,
>> 
>> I've followed the instructions to specify the listen directive with 
> httpd.cf, but it's not working.
>> 
>> The service is trying to start incorrectly.... heartbeat is trying to start 
> the service like this:
>> apache2 /etc/apache2/httpd.cf start
>> 
>> instead of
>> 
>> apache2 start::/etc/apache2/httpd.cf
> 
> This is the first time I see such an invocation. Is that part of
> the LSB now?
> 
> Anyway, I'd suggest to use the heartbeat's RA. Since you're with
> the heartbeat v1, just replace "apache2" in haresources with
> "apache".
> 
>> Here's output from command line:
>> 
>> =============================================================
>> rproxy1n1:/ # cat /etc/ha.d/haresources
>> rproxy1n1 192.168.15.20 apache2::/etc/apache2/httpd.cf
>> =============================================================
>> 
>> 
>> =============================================================
>> rproxy1n1:/ # cat /etc/apache2/httpd.cf
>> Listen 192.168.15.20:80
>> Listen 192.168.15.20:443
>> =============================================================
>> 
>> =============================================================
>> rproxy1n1:/ # service heartbeat start
>> Starting High-Availability services2007/08/14_13:15:39 INFO:  Resource is 
> stopped
>> heartbeat[26995]: 2007/08/14_13:15:39 info: Enabling logging daemon
>> heartbeat[26995]: 2007/08/14_13:15:39 info: logfile and debug file are those 
> specified in logd config file (default /etc/logd.cf)
>> heartbeat[26995]: 2007/08/14_13:15:39 WARN: Core dumps could be lost if > 
>> multiple dumps occur
>> heartbeat[26995]: 2007/08/14_13:15:39 WARN: Consider setting 
> /proc/sys/kernel/core_uses_pid (or equivalent) to 1 for maximum 
> supportability
>> heartbeat[26995]: 2007/08/14_13:15:39 info: Version 2 support: false
>> heartbeat[26995]: 2007/08/14_13:15:39 info: **************************
>> heartbeat[26995]: 2007/08/14_13:15:39 info: Configuration validated. 
> Starting heartbeat 2.0.8
>> =============================================================
>> 
>> 
>> =============================================================                
>                                                       done
>> rproxy1n1:/ # ps -ef |grep apa
>> root     27011 25586  0 13:16 pts/2    00:00:00 grep apa
>> =============================================================
>> 
>> 
>> =============================================================
>> rproxy1n1:/ # tail -n50 /var/log/ha-log
>> IPaddr[27165][27174]: 2007/08/14_13:16:40 INFO: Using calculated nic for > 
>> 192.168.15.20: eth0
>> IPaddr[27165][27179]: 2007/08/14_13:16:40 DEBUG: Using calculated netmask 
> for 192.168.15.20: 255.255.255.0
>> IPaddr[27165][27184]: 2007/08/14_13:16:40 DEBUG: Using calculated broadcast 
> for 192.168.15.20: 192.168.15.255
>> IPaddr[27165][27201]: 2007/08/14_13:16:40 INFO: eval /sbin/ifconfig eth0:0 
> 192.168.15.20 netmask 255.255.255.0 broadcast 192.168.15.255
>> IPaddr[27165][27206]: 2007/08/14_13:16:40 DEBUG: Sending Gratuitous Arp for 
> 192.168.15.20 on eth0:0 [eth0]
>> IPaddr[27154][27220]: 2007/08/14_13:16:40 INFO:  Success
>> ResourceManager[27097][27261]: 2007/08/14_13:16:40 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf start
>> ResourceManager[27097][27279]: 2007/08/14_13:16:40 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27280]: 2007/08/14_13:16:40 CRIT: Giving up resources 
> due to failure of apache2::/etc/apache2/httpd.cf
>> ResourceManager[27097][27281]: 2007/08/14_13:16:40 info: Releasing resource 
> group: rproxy1n1 192.168.15.20 apache2::/etc/apache2/httpd.cf
>> ResourceManager[27097][27296]: 2007/08/14_13:16:40 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27314]: 2007/08/14_13:16:40 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27317]: 2007/08/14_13:16:41 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27331]: 2007/08/14_13:16:41 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27349]: 2007/08/14_13:16:41 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27352]: 2007/08/14_13:16:42 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27366]: 2007/08/14_13:16:42 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27384]: 2007/08/14_13:16:42 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27387]: 2007/08/14_13:16:43 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27401]: 2007/08/14_13:16:44 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27419]: 2007/08/14_13:16:44 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27423]: 2007/08/14_13:16:45 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27437]: 2007/08/14_13:16:45 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27455]: 2007/08/14_13:16:45 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27458]: 2007/08/14_13:16:46 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27472]: 2007/08/14_13:16:46 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27490]: 2007/08/14_13:16:46 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27493]: 2007/08/14_13:16:47 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27507]: 2007/08/14_13:16:47 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27525]: 2007/08/14_13:16:47 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27529]: 2007/08/14_13:16:48 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27543]: 2007/08/14_13:16:48 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27561]: 2007/08/14_13:16:48 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27564]: 2007/08/14_13:16:49 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27578]: 2007/08/14_13:16:49 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27596]: 2007/08/14_13:16:49 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27600]: 2007/08/14_13:16:50 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27614]: 2007/08/14_13:16:50 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27632]: 2007/08/14_13:16:50 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> heartbeat[26996]: 2007/08/14_13:16:50 info: Local Resource acquisition > 
>> completed. (none)
>> heartbeat[26996]: 2007/08/14_13:16:50 info: local resource transition 
> completed.
>> ResourceManager[27097][27635]: 2007/08/14_13:16:51 info: Retrying failed > 
>> stop operation [apache2::/etc/apache2/httpd.cf]
>> ResourceManager[27097][27649]: 2007/08/14_13:16:51 info: Running 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> ResourceManager[27097][27667]: 2007/08/14_13:16:51 ERROR: Return code 1 from 
> /etc/init.d/apache2
>> ResourceManager[27097][27694]: 2007/08/14_13:16:51 ERROR: Resource script 
> for apache2::/etc/apache2/httpd.cf probably not LSB-compliant.
>> ResourceManager[27097][27695]: 2007/08/14_13:16:51 WARN: it 
> (apache2::/etc/apache2/httpd.cf) MUST succeed on a stop when already stopped
>> ResourceManager[27097][27696]: 2007/08/14_13:16:51 WARN: Machine reboot > 
>> narrowly avoided!
>> ResourceManager[27097][27712]: 2007/08/14_13:16:51 info: Running 
> /etc/ha.d/resource.d/IPaddr 192.168.15.20 stop
>> IPaddr[27725][27734]: 2007/08/14_13:16:51 INFO: /sbin/ifconfig eth0:0 
> 192.168.15.20 down
>> IPaddr[27714][27737]: 2007/08/14_13:16:51 INFO:  Success
>> =============================================================
>> 
>> 
>> =============================================================
>> rproxy1n1:/ # tail -n50 /var/log/messages
>> Aug 14 13:16:44 rproxy1n1 ResourceManager[27097]: [27418]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:44 rproxy1n1 ResourceManager[27097]: [27419]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:45 rproxy1n1 ResourceManager[27097]: [27423]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:45 rproxy1n1 ResourceManager[27097]: [27437]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:45 rproxy1n1 ResourceManager[27097]: [27438]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:45 rproxy1n1 ResourceManager[27097]: [27454]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:45 rproxy1n1 ResourceManager[27097]: [27455]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:46 rproxy1n1 ResourceManager[27097]: [27458]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:46 rproxy1n1 ResourceManager[27097]: [27472]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:46 rproxy1n1 ResourceManager[27097]: [27473]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:46 rproxy1n1 ResourceManager[27097]: [27489]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:46 rproxy1n1 ResourceManager[27097]: [27490]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:47 rproxy1n1 ResourceManager[27097]: [27493]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:47 rproxy1n1 ResourceManager[27097]: [27507]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:47 rproxy1n1 ResourceManager[27097]: [27508]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:47 rproxy1n1 ResourceManager[27097]: [27524]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:47 rproxy1n1 ResourceManager[27097]: [27525]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:48 rproxy1n1 ResourceManager[27097]: [27529]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:48 rproxy1n1 ResourceManager[27097]: [27543]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:48 rproxy1n1 ResourceManager[27097]: [27544]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:48 rproxy1n1 ResourceManager[27097]: [27560]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:48 rproxy1n1 ResourceManager[27097]: [27561]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:49 rproxy1n1 ResourceManager[27097]: [27564]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:49 rproxy1n1 ResourceManager[27097]: [27578]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:49 rproxy1n1 ResourceManager[27097]: [27579]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:49 rproxy1n1 ResourceManager[27097]: [27595]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:49 rproxy1n1 ResourceManager[27097]: [27596]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:50 rproxy1n1 ResourceManager[27097]: [27600]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:50 rproxy1n1 ResourceManager[27097]: [27614]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:50 rproxy1n1 ResourceManager[27097]: [27615]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:50 rproxy1n1 ResourceManager[27097]: [27631]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:50 rproxy1n1 ResourceManager[27097]: [27632]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:50 rproxy1n1 heartbeat: [26996]: info: Local Resource 
> acquisition completed. (none)
>> Aug 14 13:16:50 rproxy1n1 heartbeat: [26996]: info: local resource 
> transition completed.
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27635]: info: Retrying 
> failed stop operation [apache2::/etc/apache2/httpd.cf]
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27649]: info: Running > 
>> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27650]: debug: Starting 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27666]: debug: 
> /etc/init.d/apache2 /etc/apache2/httpd.cf stop done. RC=1
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27667]: ERROR: Return > 
>> code 1 from /etc/init.d/apache2
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27694]: ERROR: Resource 
> script for apache2::/etc/apache2/httpd.cf probably not LSB-compliant.
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27695]: WARN: it 
> (apache2::/etc/apache2/httpd.cf) MUST succeed on a stop when already stopped
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27696]: WARN: Machine > 
>> reboot narrowly avoided!
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27712]: info: Running > 
>> /etc/ha.d/resource.d/IPaddr 192.168.15.20 stop
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27713]: debug: Starting 
> /etc/ha.d/resource.d/IPaddr 192.168.15.20 stop
>> Aug 14 13:16:51 rproxy1n1 IPaddr[27725]: [27734]: INFO: /sbin/ifconfig > 
>> eth0:0 192.168.15.20 down
>> Aug 14 13:16:51 rproxy1n1 IPaddr[27714]: [27737]: INFO:  Success
>> Aug 14 13:16:51 rproxy1n1 ResourceManager[27097]: [27738]: debug: 
> /etc/ha.d/resource.d/IPaddr 192.168.15.20 stop done. RC=0
>> Aug 14 13:17:21 rproxy1n1 hb_standby[27753]: [27756]: Going standby 
> [foreign].
>> Aug 14 13:17:21 rproxy1n1 heartbeat: [26996]: info: rproxy1n1 wants to go 
> standby [foreign]
>> Aug 14 13:17:31 rproxy1n1 heartbeat: [26996]: WARN: No reply to standby > 
>> request.  Standby request cancelled.
>> =============================================================
>> 
>> 
>> 
> *****************************************************************************
> ******
>> Mail FROM London Borough of Harrow:
>> Unencrypted electronic mail is not secure and may not be authentic, in whole 
> or in part. You are advised to check directly with the sender before acting 
> upon any e-mail received. 
>> 
>> The information contained in this message and any attachments is 
> confidential and is intended for receipt by the above named addressee(s) > 
> only. If you have otherwise encountered this message please notify its > 
> originator via +44(0)20 8863 5611 at LONDON BOROUGH OF HARROW. The 
> unauthorised use, disclosure, copying or alteration of this message is 
> strictly forbidden. The  views expressed within this message are those of the 
> individual sender and not necessarily those of Harrow Council.
>> 
>> Mail TO London Borough of Harrow:
>> London Borough of Harrow monitors all electronic mail it receives for Policy 
> compliance and to protect its systems including anti-spam and anti-virus > 
> measures. 
>> 
>> Electronic mail does not guarantee delivery, nor notification of 
> non-delivery. It is suggested you contact your intended recipient(s) by > 
> other means should confirmation of receipt be important.
>> 
> *****************************************************************************
> ******
>> 
>> _______________________________________________
>> Linux-HA mailing list
>> [email protected] 
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha 
>> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to