After that I perform some test.
Apache ceases to work normally.
And I can see following error in my log file:

RA output: (apache:monitor:stderr)
/usr/lib/ocf/resource.d//heartbeat/apache: line 39:
/usr/lib/ocf/usr/lib/ocf/resource.d//heartbeat/.ocf-shellfuncs: No such file
or directory




dembi wrote:
> 
> 
> I have changed path in Apache of ocf script
> from
> #. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
> to
> . ${OCF_ROOT}/usr/lib/ocf/resource.d//heartbeat/.ocf-shellfuncs
> 
> After that I have changed my cib.xml on:
> 
>         <primitive id="apache" class="ocf" provider="heartbeat"
> type="apache">
>            <operations>
>              <op id="apache-app_mon" interval="5s" name="monitor"
> timeout="5s"/>
>            </operations>
>          </primitive>
> 
> And as I can see Apache has started successfully:
> 
> Resource Group: app_group
>     virtual-app-ip      (heartbeat::ocf:IPaddr2):       Started aps-3
>     fs-app      (heartbeat::ocf:Filesystem):    Started aps-3
>     apache      (heartbeat::ocf:apache):        Started aps-3
> 
> Question:
> 
> Why I received error when I try to use ocf-tester script:
> 
> sudo ocf-tester -n apache
> Beginning tests for ...
> * rc=127: The meta-data action cannot fail and must return 0
> * rc=127: Validation failed.  Did you supply enough options with -o ?
> Aborting tests
> 
> sudo ocf-tester -n proc_apache -o configfile=/etc/apache2/httpd.conf
> Beginning tests for ...
> * rc=127: The meta-data action cannot fail and must return 0
> * rc=127: Validation failed.  Did you supply enough options with -o ?
> Aborting tests
> 
> 
> 
> Malte Geierhos-2 wrote:
>> 
>> Hi,
>> 
>> 
>>>>         <primitive id="apache" class="lsb" provider="heartbeat"
>>>> type="apache">
>>>>            <operations>
>>>>              <op id="apache-app_mon" interval="5s" name="monitor"
>>>> timeout="5s"/>
>>>>            </operations>
>>>>          </primitive>
>>>>
>>>> As you can see Apache has successfully working.
>>>>
>>>> 2. But If I manually try to start ocf script I get following error:
>>>>
>>>> /usr/lib/ocf/resource.d/heartbeat/apache start
>>>> /usr/lib/ocf/resource.d/heartbeat/apache: line 37:
>>>> /resource.d/heartbeat/.ocf-shellfuncs: No such file or directory
>>>>      
>> have you tried using ocf-tester ?
>> 
>> ocf-tester -n proc_apache -o configfile=/etc/apache2/httpd.conf -o ... 
>> /usr/lib/ocf/resource.d/heartbeat/apache
>> 
>> Ocf agents usually have its own environment. Its not used normally as a 
>> lsb-script replacement.
>> 
>> Kind regards,
>> Malte Geierhos
>>>> May be someone can to explain me what is it the error and how I can fix
>>>> it?
>>>>      
>> 
>> _______________________________________________
>> Linux-HA mailing list
>> [email protected]
>> 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-tp25905739p25957770.html
Sent from the Linux-HA mailing list archive at Nabble.com.

_______________________________________________
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