[Pacemaker] crm resourse (lsb:apache2) not starting
Andrew Beekhof
andrew at beekhof.net
Mon Jul 28 23:03:12 UTC 2014
On 29 Jul 2014, at 12:55 am, W Forum W <wforumw at gmail.com> wrote:
> Hi Andrew,
>
> I am thank-full for the help but
> I can not find ken's instructions anymore
Ken wrote:
"
Pore through the daemon.log entries around the time you do your "resource start". There are a variety of log tags (cib, lrmd, pengine, etc.), so grepping usually isn't worth the bother. The main difficulty is the verbosity and the fact that it's not obvious what's expected and what indicates trouble. Not every message with the word "error" in it is an error. ;-)
But if you go line by line through all that, you can usually find a telltale indicator of what really went wrong.
Out of curiosity, why do you put apache in your cluster resources? If people are connecting to your virtual IP, there's generally no harm in having apache continue running on the other node. But if your DRBD is master-slave and apache can't run without it, that would make sense.
"
I would start by working out when '[notice] caught SIGTERM, shutting down' appears relative to what the cluster is doing.
If its prior to the failed monitor operation - then some external actor is causing a failure and pacemaker is merely detecting it.
If it happens afterwards, then it is likely that the monitor operation in the LSB script is broken somehow - add logging (somehow) to figure out what's going wrong.
> And I thought I answered all the questions of you guys.
> That's why I asked if someone still has an idea to look.
>
> I don't know where to look further :-\
>
> Many thanks
>
>
> On 07/28/2014 03:17 PM, Andrew Beekhof wrote:
>> On 28 Jul 2014, at 9:45 pm, W Forum W <wforumw at gmail.com>
>> wrote:
>>
>>
>>> What do you mean with 'based on what'?
>>>
>> "On what" refers to the amount of information we have with which to assist you.
>> Ken has already given as good instructions as are possible based on the little information you provided.
>>
>>
>>> Like I said below
>>> I can start apache normally from the console but not from the crm,I get
>>> an error like
>>> p_ps_apache_monitor_60000 (node=wegc203137, call=72, rc=7,
>>> status=complete): not running
>>>
>>>
>>> The problem is not selinux or the status url not configured correctly
>>> I have also checked if the Init Script LSB is compatible (see
>>>
>>> http://www.linux-ha.org/wiki/LSB_Resource_Agents
>>> ).
>>> All sequences tested are ok
>>>
>>> Anyone can help where to look further?
>>>
>>> Many thanks
>>>
>>>
>>> On 27 Jul 2014, at 4:45 am, W Forum W
>>> <wforumw at gmail.com>
>>> wrote:
>>>
>>>
>>>> Anyone can help??
>>>>
>>> Based on what?
>>>
>>>
>>>> Many thanks
>>>>
>>>>
>>>> On 07/13/2014 04:28 PM, W Forum W wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> The apache logs doesn't say a lot (LogLevel debug)
>>>>>
>>>>> [error] python_init: Python version mismatch, expected '2.7.2+', found '2.7.3'.
>>>>> [error] python_init: Python executable found '/usr/bin/python'.
>>>>> [error] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
>>>>> [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
>>>>> [notice] mod_python: using mutex_directory /tmp
>>>>> [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 mod_python/3.3.1 Python/2.7.3 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
>>>>> [notice] caught SIGTERM, shutting down
>>>>>
>>>>> The configuration should be ok, or do I miss something
>>>>>
>>>>> primitive p_ps_apache lsb:apache2 \
>>>>> op monitor interval="60" timeout="30" \
>>>>> op start interval="0" timeout="30" \
>>>>> op start interval="0" timeout="30"
>>>>>
>>>>> Many thanks
>>>>>
>>>>> On 07/12/2014 12:00 PM,
>>>>> pacemaker-request at oss.clusterlabs.org
>>>>> wrote:
>>>>>
>>>>>> Send Pacemaker mailing list submissions to
>>>>>>
>>>>>>
>>>>>> pacemaker at oss.clusterlabs.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>>>
>>>>>>
>>>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>>>
>>>>>>
>>>>>> or, via email, send a message with subject or body 'help' to
>>>>>>
>>>>>>
>>>>>> pacemaker-request at oss.clusterlabs.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> You can reach the person managing the list at
>>>>>>
>>>>>>
>>>>>> pacemaker-owner at oss.clusterlabs.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> When replying, please edit your Subject line so it is more specific
>>>>>> than "Re: Contents of Pacemaker digest..."
>>>>>>
>>>>>>
>>>>>> Today's Topics:
>>>>>>
>>>>>> 1. Re: crm resourse (lsb:apache2) not starting (Michael Monette)
>>>>>> 2. Re: crm resourse (lsb:apache2) not starting (W Forum W)
>>>>>> 3. Re: crm resourse (lsb:apache2) not starting (Vladislav Bogdanov)
>>>>>>
>>>>>>
>>>>>> ----------------------------------------------------------------------
>>>>>>
>>>>>> Message: 1
>>>>>> Date: Fri, 11 Jul 2014 11:41:09 -0400
>>>>>> From: Michael Monette
>>>>>>
>>>>>> <mmonette at 2keys.ca>
>>>>>>
>>>>>>
>>>>>> To:
>>>>>>
>>>>>> wforumw at gmail.com
>>>>>>
>>>>>> , The Pacemaker cluster resource manager
>>>>>>
>>>>>>
>>>>>> <pacemaker at oss.clusterlabs.org>
>>>>>>
>>>>>>
>>>>>> Subject: Re: [Pacemaker] crm resourse (lsb:apache2) not starting
>>>>>>
>>>>>> Is there a certificate passphrase when starting apache from command line?
>>>>>>
> No there is no passphrase
>>>>>>
>>>>>> On July 11, 2014 11:38:11 AM EDT, W Forum W
>>>>>>
>>>>>> <wforumw at gmail.com>
>>>>>>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>> hi,
>>>>>>>
>>>>>>> we are using debian and selinux is default disabled in debian.
>>>>>>> we don't use it either
>>>>>>>
>>>>>>> is there no way to find what causes apache not to start?
>>>>>>>
>>>>>>> many thanks!!!!
>>>>>>>
>>>>>>> On 07/11/2014 01:36 AM, Andrew Beekhof wrote:
>>>>>>>
>>>>>>>
>>>>>>>> On 10 Jul 2014, at 7:58 pm, W Forum W <wforumw at gmail.com>
>>>>>>>>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi thanks for the help.
>>>>>>>>> the status url is configured and working, also no error in apache
>>>>>>>>>
>>>>>>>>>
>>>>>>> log when I start the service manually
>>>>>>>
>>>>>>>
>>>>>>>>> any other ideas where to look??
>>>>>>>>>
>>>>>>>>>
>>>>>>>> selinux. if it starts from the command line but not in the cluster
>>>>>>>>
>>>>>>>>
>>>>>>> its very often selinux
>>>>>>>
>>>>>>>
>>>>>>>>> many thanks!!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 07/09/2014 12:53 AM, Andrew Beekhof wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 8 Jul 2014, at 11:15 pm, W Forum W <wforumw at gmail.com>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I have a two node cluster with a DRBD, heartbeat and pacemaker (on
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>> Debian Wheezy)
>>>>>>>
>>>>>>>
>>>>>>>>>>> The cluster is working fine. 2 DRBD resources, Shared IP, 2 File
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>> systems and a postgresql database start, stop, migrate, ... correctly.
>>>>>>>
>>>>>>>
>>>>>>>>>>> Now the problem is with the lsb:apache2 resource agent.
>>>>>>>>>>> When I try to start is (crm resource start p_ps_apache)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>> immediately I got an error like
>>>>>>>
>>>>>>>
>>>>>>>>>>> p_ps_apache_monitor_60000 (node=wegc203136, call=653, rc=7,
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>> status=complete): not running
>>>>>>>
>>>>>>>
>>>>>>>>>>> When I start Apache from the console (service apache2 start), it
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>> works fine
>>>>>>>
>>>>>>>
>>>>>>>>>>> I have checked if the Init Script LSB is compatible (see
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> http://www.linux-ha.org/wiki/LSB_Resource_Agents
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ).
>>>>>>>>>>> All sequences tested are ok
>>>>>>>>>>>
>>>>>>>>>>> How can I found out why crm is not starting Apache?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> most likely the status url is not setup/configured.
>>>>>>>>>> have you checked the apache logs?
>>>>>>>>>>
>>>>>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>> Message: 2
>>>>>> Date: Fri, 11 Jul 2014 17:44:52 +0200
>>>>>> From: W Forum W
>>>>>>
>>>>>> <wforumw at gmail.com>
>>>>>>
>>>>>>
>>>>>> To: Michael Monette
>>>>>>
>>>>>> <mmonette at 2keys.ca>
>>>>>>
>>>>>> , The Pacemaker cluster
>>>>>> resource manager
>>>>>>
>>>>>> <pacemaker at oss.clusterlabs.org>
>>>>>>
>>>>>>
>>>>>> Subject: Re: [Pacemaker] crm resourse (lsb:apache2) not starting
>>>>>>
>>>>>> no, it starts normal without any errors
>>>>>>
>>>>>> On 07/11/2014 05:41 PM, Michael Monette wrote:
>>>>>>
>>>>>>
>>>>>>> Is there a certificate passphrase when starting apache from command line?
>>>>>>>
>>>>>>> On July 11, 2014 11:38:11 AM EDT, W Forum W
>>>>>>>
>>>>>>> <wforumw at gmail.com>
>>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>> hi,
>>>>>>>
>>>>>>> we are using debian and selinux is default disabled in debian.
>>>>>>> we don't use it either
>>>>>>>
>>>>>>> is there no way to find what causes apache not to start?
>>>>>>>
>>>>>>> many thanks!!!!
>>>>>>>
>>>>>>> On 07/11/2014 01:36 AM, Andrew Beekhof wrote:
>>>>>>>
>>>>>>>
>>>>>>>> On 10 Jul 2014, at 7:58 pm, W Forum W <wforumw at gmail.com>
>>>>>>>>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Hi thanks for the help.
>>>>>>>>> the status url is configured and working, also no error in apache log when I start the service manually
>>>>>>>>>
>>>>>>>>> any other ideas where to look??
>>>>>>>>>
>>>>>>>>>
>>>>>>>> selinux. if it starts from the command line but not in the cluster its very often selinux
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> many thanks!!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 07/09/2014 12:53 AM, Andrew Beekhof wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> On 8 Jul 2014, at 11:15 pm, W Forum W <wforumw at gmail.com>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Hi,
>>>>>>>>>>>
>>>>>>>>>>> I have a two node cluster with a DRBD, heartbeat and pacemaker (on Debian Wheezy)
>>>>>>>>>>> The cluster is working fine. 2 DRBD resources, Shared IP, 2 File systems and a postgresql database start, stop, migrate, ... correctly.
>>>>>>>>>>>
>>>>>>>>>>> Now the problem is with the lsb:apache2 resource agent.
>>>>>>>>>>> When I try to start is (crm resource start p_ps_apache) immediately I got an error like
>>>>>>>>>>>
>>>>>>>>>>> p_ps_apache_monitor_60000 (node=wegc203136, call=653, rc=7, status=complete): not running
>>>>>>>>>>>
>>>>>>>>>>> When I start Apache from the console (service apache2 start), it works fine
>>>>>>>>>>>
>>>>>>>>>>> I have checked if the Init Script LSB is compatible (see
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> http://www.linux-ha.org/wiki/LSB_Resource_Agents
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ).
>>>>>>>>>>> All sequences tested are ok
>>>>>>>>>>>
>>>>>>>>>>> How can I found out why crm is not starting Apache?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>> most likely the status url is not setup/configured.
>>>>>>>>>> have you checked the apache logs?
>>>>>>>>>>
>>>>>>>>>>
>>>>>> ------------------------------
>>>>>>
>>>>>> Message: 3
>>>>>> Date: Fri, 11 Jul 2014 21:15:47 +0300
>>>>>> From: Vladislav Bogdanov
>>>>>>
>>>>>> <bubble at hoster-ok.com>
>>>>>>
>>>>>>
>>>>>> To:
>>>>>>
>>>>>> pacemaker at oss.clusterlabs.org
>>>>>>
>>>>>>
>>>>>> Subject: Re: [Pacemaker] crm resourse (lsb:apache2) not starting
>>>>>> 08.07.2014 16:15, W Forum W wrote:
>>>>>>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I have a two node cluster with a DRBD, heartbeat and pacemaker (on
>>>>>>> Debian Wheezy)
>>>>>>> The cluster is working fine. 2 DRBD resources, Shared IP, 2 File systems
>>>>>>> and a postgresql database start, stop, migrate, ... correctly.
>>>>>>>
>>>>>>> Now the problem is with the lsb:apache2 resource agent.
>>>>>>> When I try to start is (crm resource start p_ps_apache) immediately I
>>>>>>> got an error like
>>>>>>>
>>>>>>> /p_ps_apache_monitor_60000 (node=wegc203136, call=653, rc=7,
>>>>>>> status=complete): not running/
>>>>>>>
>>>>>>> When I start Apache from the console (service apache2 start), it works fine
>>>>>>>
>>>>>>> I have checked if the Init Script LSB is compatible (see
>>>>>>>
>>>>>>>
>>>>>>> http://www.linux-ha.org/wiki/LSB_Resource_Agents
>>>>>>>
>>>>>>> ).
>>>>>>> All sequences tested are ok
>>>>>>>
>>>>>>> How can I found out why crm is not starting Apache?
>>>>>>>
>>>>>>>
>>>>>> Is it really not started, or just is not configured enough to be
>>>>>> successfully monitored and then monitor op fails?
>>>>>> What your apache logs say?
>>>>>>
>>>
>>>
>>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140729/dce906ab/attachment-0004.sig>
More information about the Pacemaker
mailing list