Peter, I prefer finding the problem rather then scripting work arounds. That being said, You may want to consider moving up to Debian 8 which supports systemd. The systemd unit will restart ASL quickly in case of a crash. Again, this is not the way to solve the issue, but it may help until we can find and fix the problem. 73, Steve N4IRS On 11/15/2017 11:36 AM, Peter wrote:
Hi...
I'm one the minions that help run M0HOY's Allstar hubs in the UK. Node 41522 & 41223, There is an ongoing problem where the hub will crash randomly when a someone comes on with a flaky internet connection, the crash is associated with segfault in app_rpt.so and and usually one of the following in the logs:
Undecodable frame received from 'xxx.xxx.xxx.xxx' PBX may not have been terminated properly on 'IAX2/xxx.xxx.xxx.xxx:4572-5435' lots of.... Max retries exceeded to host xxx.xxx.xxx.xxx
Sometimes the crash is a 'general protection ip' in app_rpt.so but usually nothing in the logs just before to give any clues.
Average uptime is 7 - 14 days, a flaky incoming connection will kill it within minutes dropping all the connections.
Both of the hubs are hosted in a DC on VPS running on Debian 7.4, 3.2.81 X64, built with source from the github repo.
There tends to be on average 60 - 80 ASL connections spread across the two hubs to share the load.
Recently we've had a few users on the hub form the US and Australia repeatedly crashing the hubs sometimes more than once a day.
Some of the ideas we've done/are looking at are:
More hubs to spread the load and minimise the disruption A script to keep a check on the running process and restart asterisk QUICKLY A scripts to alert us of potential problems On some occasions have had to use iptables to block the host causing the problem were we've not been able to make contact.
I wonder if anyone has any suggestions?
TIA
Peter G7RPG
_______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.