[Linux-HA] Problem with starting Apache and MySQL
dembi
dembi at ukr.net
Fri Oct 16 07:11:28 MDT 2009
I have installed wget:
sudo dpkg -l|grep wget
ii wget 1.11.4-2
And I have Loaded Module of ‘mod_status’. I can see this using phpinfo()
function.
Please see my status.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
# Allow from localhost ip6-localhost
Allow from all
</Location>
But I still can not start Apache with OCF script
Please see my log file:
Oct 16 16:08:31 aps-1 tengine: [18324]: info: send_rsc_command: Initiating
action 11: apache_monitor_0 on aps-3
Oct 16 16:08:31 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing
failed op apache_start_0 on aps-1: Timed Out
Oct 16 16:08:31 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Compatability
handling for failed op apache_start_0 on aps-1
Oct 16 16:08:31 aps-1 pengine: [18325]: notice: native_print:
apache#011(heartbeat::ocf:apache):#011Stopped
Oct 16 16:08:31 aps-1 pengine: [18325]: notice: StartRsc: aps-3#011Start
apache
Oct 16 16:08:31 aps-1 pengine: [18325]: notice: RecurringOp: aps-3#011
apache_monitor_5000
Oct 16 16:08:32 aps-1 tengine: [18324]: info: match_graph_event: Action
apache_monitor_0 (11) confirmed on aps-3 (rc=0)
Oct 16 16:08:34 aps-1 tengine: [18324]: info: send_rsc_command: Initiating
action 93: apache_start_0 on aps-3
Oct 16 16:08:54 aps-1 tengine: [18324]: WARN: print_elem: Action missed its
timeout[Action 93]: In-flight (id: apache_start_0, loc: aps-3, priority: 0)
Oct 16 16:08:55 aps-1 tengine: [18324]: WARN: update_failcount: Updating
failcount for apache on d305cc9a-6c27-4de0-ab2d-775419549bde after failed
start: rc=-2
Oct 16 16:08:55 aps-1 tengine: [18324]: info: match_graph_event: Action
apache_start_0 (93) confirmed on aps-3 (rc=4)
Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing
failed op apache_start_0 on aps-3: Timed Out
Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Compatability
handling for failed op apache_start_0 on aps-3
Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Processing
failed op apache_start_0 on aps-1: Timed Out
Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: unpack_rsc_op: Compatability
handling for failed op apache_start_0 on aps-1
Oct 16 16:08:55 aps-1 pengine: [18325]: notice: native_print:
apache#011(heartbeat::ocf:apache):#011Started aps-3 FAILED
Oct 16 16:08:55 aps-1 pengine: [18325]: WARN: native_color: Resource apache
cannot run anywhere
Oct 16 16:08:55 aps-1 pengine: [18325]: notice: StopRsc: aps-3#011Stop
apache
Oct 16 16:08:55 aps-1 tengine: [18324]: info: send_rsc_command: Initiating
action 5: apache_stop_0 on aps-3
Oct 16 16:08:56 aps-1 tengine: [18324]: info: match_graph_event: Action
apache_stop_0 (5) confirmed on aps-3 (rc=0)
Malte Geierhos-2 wrote:
>
> Hi
>> Ok, If I have stopped heartbeat resource on my aps-3 which was as DC.
>> All resources were successfully migrated on aps-1.
>> Can I think that all work ok.
>> Or may be I should perform additional testing?
>>
>> And can you please explain to me why it was not working with ‘ocf’
>> resource?
>>
>> Thanks in advance.
>>
> Do you have mod_status enabled or not ?
> Do you have wget installed on your server ?
>
> One of the differences between the lsb script and ocf agent for apache
> i.e. is,
> that most init scripts simply look if apache is a running process on
> your box
> while the ocf:heartbeat:apache agent tries to download the server-status
> page via wget
> and validate it (got 200 ok or 404 / 500 whatever ) .
> So a monitor action on a ocf agent gets much more into depth then status
> operation from
> init scripts.
>
> This will cause problems if your installation doesn't (yet) meet the
> requirements for running
> apache via its ocf agent.
>
>>
>> Stratos Zolotas wrote:
>>
>>> Maybe someone knows better, but i don't think is a good idea to manually
>>> start or stop the services controlled by the cluster manager.
>>>
>>> On Fri, Oct 16, 2009 at 2:22 PM, dembi<dembi at ukr.net> wrote:
>>>
>>>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
--
View this message in context: http://www.nabble.com/Problem-with-starting-Apache-and-MySQL-tp25905739p25925238.html
Sent from the Linux-HA mailing list archive at Nabble.com.
More information about the Linux-HA
mailing list