Asterisk suddenly stopped

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Asterisk suddenly stopped

Postby ctc_olsen » Sun Apr 06, 2014 9:21 am

I've been digging for the cause of this but it simply stopped after months of usage. I got the error when I do asterisk -vvvvvr.

Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)


asterisk.ctl is there when I checked this. I did a reboot and the problem went away. Does anyone know what could have caused this issue?
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Asterisk suddenly stopped

Postby ctc_olsen » Mon Apr 07, 2014 9:10 am

Anyone please?
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Asterisk suddenly stopped

Postby geoff3dmg » Mon Apr 07, 2014 11:00 am

I've had this happen on my systems where:

a) Asterisk crashes
b) Asterisk never starts due to slow networking at boot.

Either way, on newer SVN releases you can go into Admin -> Servers and set 'Auto-Restart Asterisk' to 'Y' to get round the issue.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Asterisk suddenly stopped

Postby ctc_olsen » Mon Apr 07, 2014 11:43 am

Thank you for the response. Do you know by any chance on which logfile I could look at to check what happened during this time(when it stopped)? /var/log/messages doesn't seem to give me anything and /var/log/asterisk/messages on stores messages for the past 24H.
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Asterisk suddenly stopped

Postby geoff3dmg » Tue Apr 08, 2014 5:30 am

1) You can check in the log rotated syslog/asterisk logs. They should be in the same place as the current logs but with a date in the file name.
2) You can check if a service failed to start by asking systemd, for example for the Vicidial start up (which includes asterisk) run this: ' systemctl status vicidial.service'
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Asterisk suddenly stopped

Postby ctc_olsen » Wed Apr 09, 2014 9:10 am

Thanks for the input Geoff.
VERSION: 2.4-309a BUILD: 110430-1642 (Upgrade from CE 2.0,ISO) | Asterisk 1.4.27.1-1 | VmWare vCenter Server Ver 4.1.0| No additional software | No Digium/Sangoma Hardware
ctc_olsen
 
Posts: 65
Joined: Tue Jul 24, 2012 7:34 am

Re: Asterisk suddenly stopped

Postby williamconley » Thu May 01, 2014 7:49 pm

Excellent geoff3dmg. :)

On an added note, it is possible to rotate the asterisk logs in the CLI as soon as you start it up (or at any time really) by issuing "logger rotate" in the asterisk cli or (asterisk -rx 'logger rotate") from the linux cli. This could give you the ability to peruse the prior logs at your leisure by starting a new log set.

But upgrading Vicidial to get the auto-restart function is a very good idea if this happens more than once.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 30 guests

cron