I am having a problem at the system startup, where HAAst takes some time to switch on Asterisk and in the HAAst log I see the following:
Code: Select all
Fri Aug 10 06:46:55 2018, 00001258, I, Asterisk Controller, Starting
Fri Aug 10 06:46:55 2018, 00010012, I, Cluster Controller, Setting initial state of local peer to standby due to local peer haast service start
Fri Aug 10 06:46:55 2018, 00000107, I, Cluster Controller, Local peer HAAst state changing to standby
Fri Aug 10 06:46:56 2018, 00010013, I, Cluster Controller, Initial state of local peer sucessfully set to standby
Fri Aug 10 06:46:56 2018, 00001901, I, Peer Link Server, PeerLinkServer listening on 12.34.56.78:3002
Fri Aug 10 06:46:56 2018, 00001800, E, Peer Link, Connection attempt to remote node failed with error 0. Attempting reconnection in 5 seconds
Fri Aug 10 06:46:56 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:00 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:05 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:10 2018, 00001805, W, Peer Link, Connection to remote node not established within 15 seconds of first attempt. Requesting local node promotion
Fri Aug 10 06:47:10 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:10 2018, 00010018, I, Cluster Controller, Promotion of local peer is beginning due to local peer PeerLink connection failure
Fri Aug 10 06:47:10 2018, 00000108, I, Cluster Controller, Local peer HAAst state changing to active
Fri Aug 10 06:47:10 2018, 00003327, I, Sensors, Resetting local peer sensor scores and state
Fri Aug 10 06:47:10 2018, 00010106, I, NIC, IP address '12.34.56.78' added to physical NIC device 'eth0' as new virtual NIC device 'eth0:haast'
Fri Aug 10 06:47:15 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:22 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:27 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:32 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:37 2018, 00001836, W, Peer Link, Connection to remote node failed. Not requesting local node promotion due to local node snoozing
Fri Aug 10 06:47:42 2018, 00000721, E, System Command, Failed to start Asterisk (start) wrapper. Run result 3; exitcode 0
Fri Aug 10 06:47:42 2018, 00010019, I, Cluster Controller, Promotion of local peer is complete
Fri Aug 10 06:47:42 2018, 00001256, W, Asterisk Controller, Connection attempt to AMI failed with error 0. Requesting local peer demotion
Fri Aug 10 06:47:42 2018, 00010012, I, Cluster Controller, Demotion of local peer is beginning due to local peer lost/failed AMI connection
Another thing I did is to add some delay to firewalld at the startup as sometimes I saw a "firewall rules corrupted" but in the log the only thing wrong I saw was that asterisk was not running.
About the peer link error, I didn't setup the backup server yet, I am going to do it after I figure this AMI error