Page 1 of 1

Auto Asterisk Process killed

PostPosted: Fri Dec 12, 2008 7:14 am
by amirshr
Hi there,
We are using vicidialnow 1.1 with 4 GB RAM on HP server. We are dialing around 25 agents on the same server having mysql, apache, vicidial and asterisk. Sometimes asterisk process got killed automatically. This happens everyday twice/thrice. CPU usages is normally around 20 - 30% whereas 3.2 GB RAM is shown as used in top. Can it be due to resource problem or else anything?
Thanx
amir

PostPosted: Fri Dec 12, 2008 7:59 am
by mflorell
Is there a core file being generated when it crashes?

Is it just Asterisk that crashes or is it the whole machine?

PostPosted: Fri Dec 12, 2008 10:22 am
by amirshr
Thanx for prompt response.
It doesnot crashes. Asterisk process got killed. When i do start asterisk process, then we can start dialing again.
Thanx

PostPosted: Fri Dec 19, 2008 10:21 am
by amirshr
Hi there,
The following msg seems on the asterisk -r screen.

-- AGI Script agi://127.0.0.1:4577/VD_hangup--HVcause ... --19-----2) completed, returning 0
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing MeetMe("SIP/car-09ff9948", "8600064") in new stack
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9eddde0', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9e3abe8', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0xa218990', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0xa1e4ac0', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9c98340', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9d39108', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9cee7e0', 9 retries!
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0xa362f10', 9 retries!
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
-- AGI Script agi-VDADtransfer.agi completed, returning 0
-- Executing AGI("SIP/car-09efc630", "agi-VDADtransfer.agi|8365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADtransfer.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Spawn extension (default, 013369874624, 2) exited non-zero on 'Local/8600066@default-6805,1'
Does here anything we could guess for asterisk disconnection issues?

PostPosted: Sat Dec 20, 2008 11:04 am
by gardo
What's the output of "df -h"?

PostPosted: Sat Dec 20, 2008 12:41 pm
by williamconley
Dec 19 10:20:40 WARNING[3177]: channel.c:780 channel_find_locked: Avoided deadlock for '0x9eddde0', 9 retries!


nothing particularly unusual about any of your output. can you turn on debug to a file in asterisk? in case this issue is not vicidial related it may never appear in vicidial's logs.

logger.conf allows debug and other message types to be sent wherever you want them (within /var/log/asterisk).

the next time it crashes, you copy your debug (or FULL log file if you want to put it all in one) and each time it crashes from now on. if you get two or three ... you may be able to notice a common occurence immediately before the crash.

also, setting up a keepalive for Asterisk in Cron to check every minute ... and if asterisk is not running then copy the log to a dated/timed file name and restart asterisk could mean that the system is never down for more than a minute (reducing the need for your tech guy to jump in, but giving him a log file to troubleshoot, hopefully, the problem).