HA – asterisk service is not starting

Home » Asterisk Users » HA – asterisk service is not starting
Asterisk Users 3 Comments

Hi Asterisk Users,

I´m in trouble setting a HA cluster for Asterisk service.

While starting heartbeat service (with “*clusterMaster 192.168.1.147 zaptel
asterisk*” on haresources), zaptel and asterisk does not start as
I´m expecting, this is the debug result:

ResourceManager[3260]: 2010/11/16_12:27:12 info: Releasing resource group:
clustermaster 192.168.1.147 zaptel asterisk
ResourceManager[3260]: 2010/11/16_12:27:12 info: Running
/etc/init.d/asterisk stop
*ResourceManager[3260]: 2010/11/16_12:27:12 debug: Starting
/etc/init.d/asterisk stop — This Should be “start”, but I don´t know why
it´s “stop”*
Shutting down asterisk: [ OK ]
ResourceManager[3260]: 2010/11/16_12:27:13 debug: /etc/init.d/asterisk
stop done. RC=0
ResourceManager[3260]: 2010/11/16_12:27:13 info: Running /etc/init.d/zaptel
stop
*ResourceManager[3260]: 2010/11/16_12:27:13 debug: Starting
/etc/init.d/zaptel stop **– This Should be “start”, but I don´t know why
it´s “stop”*
Unloading zaptel hardware drivers:.
ResourceManager[3260]: 2010/11/16_12:27:13 debug: /etc/init.d/zaptel stop
done. RC=0

*/etc/ha.d/haresources*
*
*
clusterMaster 192.168.1.147 zaptel asterisk

*/etc/ha.d/ha.cf*
*
*
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility local0
keepalive 2
deadtime 32
warntime 16
initdead 64
bcast eth0
udpport 694
auto_failback on
node clusterMaster clusterSlave

Can you help me, please, to find what am I doing wrong

Thanks in advance

Kind Regards.

Juan.
Linux User #441131

3 thoughts on - HA – asterisk service is not starting

  • Hello Juan David,

    […]

    Is your Asterisk starting while you invoke directly /etc/init.d/asterisk
    (and hearbeat is off)? Try to figure if this is an Asterisk/Zaptel or HA
    misconfiguration/issue first.

    Do you have the same debug result on both nodes? Which logs do you
    provide here: Master or Slave ?

    Best regards,

  • Hi Alexis,

    Thanks for for answer. This is the master node debug, asterisk & zaptel
    starts correctly when I start it manual. The HA config is the same for both
    nodes. There is an strange event:

    When I start both nodes, Master node does not start the services, but if I
    turn off master, Slave works as expected, it checks master is down and turn
    both services on. If I turn on Master again and turn off Slave, The master
    takes control and works pretty fine bringing up both services again. This
    malfunction or configuration mistake, I think, it´s only happening while
    master is turned on by first time…but I simply don´t know what could it
    be.

    Thanks for your help!!

    Kind Regards.

    Juan.
    Linux User #441131

    href=”mailto:alexis@de-bruyn.fr”>alexis@de-bruyn.fr

  • Thanks for for answer. This is the master node debug, asterisk & zaptel
    starts correctly when I start it manual. The HA config is the same for both
    nodes. There is an strange event:

    When I start both nodes, Master node does not start the services, but if I
    turn off master, Slave works as expected, it checks master is down and turn
    both services on. If I turn on Master again and turn off Slave, The master
    takes control and works pretty fine bringing up both services again. This
    malfunction or configuration mistake, I think, it´s only happening while
    master is turned on by first time…but I simply don´t know what could it
    be.

    Thanks for your help!!

    Kind Regards.

    Juan.

    href=”mailto:alexis@de-bruyn.fr”>alexis@de-bruyn.fr