Constant failover

Configuring synchronization, sensors, and optimizations
Post Reply
User avatar
CRM User
Posts: 174
Joined: Sun Nov 27, 2016 3:41 pm

Constant failover

Post by CRM User » Thu Oct 10, 2019 9:41 pm

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?
Account for questions transferred from CRM system
User avatar
Telium Support
Posts: 234
Joined: Sun Nov 27, 2016 3:27 pm

Re: Constant failover

Post by Telium Support » Thu Oct 10, 2019 9:44 pm

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
User avatar
CRM User
Posts: 174
Joined: Sun Nov 27, 2016 3:41 pm

Re: Constant failover

Post by CRM User » Thu Oct 10, 2019 9:47 pm

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.
Account for questions transferred from CRM system
Post Reply