Page 1 of 1

Constant failover

Posted: Thu Oct 10, 2019 9:41 pm
by CRM User
I have setup a new cluster, and notice that the nodes are failing over back and forth non-stop. I saw the forum topic about misconfigured network settings in HAAst, but I confirmed they are correct.

One clue I see in the HAAst log file is that the Asterisk wrapper start is exiting with error code 3. What does that mean?

Re: Constant failover

Posted: Thu Oct 10, 2019 9:44 pm
by Telium Support
If the Asterisk control file (wrapper) is exiting with code 3, that means Asterisk is taking too long to start. I recommend you disable the HAAst service and manually try to start the Asterisk service directly.

I suspect you will see a long and slow (or errored) start of Asterisk. The systemd service file included with Asterisk is not ideal for cluster use and can cause slow startup. If you are using systemd please try the service file offered by Telium here:

viewtopic.php?f=5&t=90&p=167

Re: Constant failover

Posted: Thu Oct 10, 2019 9:47 pm
by CRM User
Your replacement systemd file solved my problem. I found discussions on the Digium forum about the parameters (used in the Digium provided service file) and causing slow Asterisk start. I also found this link https://community.asterisk.org/t/solved ... 13/66359/2 which makes reference to the same.

I noticed your recommended SystemD service file also removes the restart parameter, which I realize makes perfect sense since HAAst should be controlling starts/stops of Asterisk, not systemd.