Juan David Diaz
2010-Nov-16 18:38 UTC
[asterisk-users] HA - asterisk service is not starting
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101116/1e891a1f/attachment.htm
Juan David Diaz
2010-Nov-16 22:43 UTC
[asterisk-users] Fwd: HA - asterisk service is not starting
Juan. Linux User #441131 ---------- Forwarded message ---------- From: Juan David Diaz <juanchonk at gmail.com> Date: Tue, Nov 16, 2010 at 1:38 PM Subject: HA - asterisk service is not starting To: Asterisk Users Mailing List - Non-Commercial Discussion < asterisk-users at lists.digium.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101116/ec2f7066/attachment.htm
dotnetdub
2010-Nov-16 23:49 UTC
[asterisk-users] Fwd: HA - asterisk service is not starting
On 16 November 2010 22:43, Juan David Diaz <juanchonk at gmail.com> wrote:> > Juan. > Linux User #441131 > >Maybe best on the linux-ha lists... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101116/3fcf9994/attachment.htm
Alexis de BRUYN
2010-Nov-17 08:59 UTC
[asterisk-users] HA - asterisk service is not starting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Juan David,> 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"*[...] 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, - -- Alexis de BRUYN email : alexis at de-bruyn.fr -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkzjmW4ACgkQPdN4bPTxnXdjFQCfZS9xy2/d3zTwi+OINCGJFFfv vzkAoKqjPTOdW7dcSknwJt6UJVkINoWn =9NCH -----END PGP SIGNATURE-----
Juan David Diaz
2010-Nov-17 13:03 UTC
[asterisk-users] HA - asterisk service is not starting
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 On Wed, Nov 17, 2010 at 3:59 AM, Alexis de BRUYN <alexis at de-bruyn.fr> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello Juan David, > > > 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"* > [...] > > 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, > > - -- > Alexis de BRUYN > email : alexis at de-bruyn.fr > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkzjmW4ACgkQPdN4bPTxnXdjFQCfZS9xy2/d3zTwi+OINCGJFFfv > vzkAoKqjPTOdW7dcSknwJt6UJVkINoWn > =9NCH > -----END PGP SIGNATURE----- > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101117/cbd9921c/attachment.htm
Juan David Diaz
2010-Nov-17 17:12 UTC
[asterisk-users] HA - asterisk service is not starting
> > 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> > > > On Wed, Nov 17, 2010 at 3:59 AM, Alexis de BRUYN <alexis at de-bruyn.fr>wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hello Juan David, >> >> > 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"* >> [...] >> >> 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, >> >> - -- >> Alexis de BRUYN >> email : alexis at de-bruyn.fr >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (GNU/Linux) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iEYEARECAAYFAkzjmW4ACgkQPdN4bPTxnXdjFQCfZS9xy2/d3zTwi+OINCGJFFfv >> vzkAoKqjPTOdW7dcSknwJt6UJVkINoWn >> =9NCH >> -----END PGP SIGNATURE----- >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101117/d70283a4/attachment.htm