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

4 posts / 0 new
Last post
beachcomp
beachcomp's picture
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

Hello all,

Everything was working fine today until I noticed a call stuck in a channel & decided to reboot the system.
Now, Asterisk chokes.
The only way to get it to come up is with genzaptelconf.
Any suggestions are HIGHLY appreciated.

root@voip:~ $ asterisk -vr
Asterisk 1.4.18, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
root@voip:~ $ tail /var/log/asterisk/full
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Manager registered action MeetmeMute
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Manager registered action MeetmeUnmute
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered application 'MeetMeAdmin'
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered application 'MeetMeCount'
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered application 'MeetMe'
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered application 'SLAStation'
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered application 'SLATrunk'
[Aug 4 17:37:50] VERBOSE[2454] logger.c: app_meetme.so => (MeetMe conference bridge)
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered translator 'g729tolin' from format g729 to slin, cost 1
[Aug 4 17:37:50] VERBOSE[2454] logger.c: == Registered translator 'lintog729' from format slin to g729, cost 3
root@voip:~ $ genzaptelconf

STOPPING ASTERISK

STOPPING FOP SERVER
Generating '/etc/zaptel.conf'
Generating '/etc/asterisk/zapata-auto.conf'
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

Unloading zaptel hardware drivers:.
Loading zaptel framework: [ OK ]
Waiting for zap to come online...OK
Loading zaptel hardware modules: tor2.
wct4xxp.
wcte12xp.
wct1xxp.
wcte11xp.
wctdm24xxp.
wcfxo.
wctdm.
wcusb.
No functioning zap hardware found in /proc/zaptel, loading ztdummy
Running ztcfg: [ OK ]

SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
/usr/sbin/safe_asterisk: line 117: 3224 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY}
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.18 currently running on voip (pid = 3260)
Verbosity is at least 3
voip*CLI>

pjhealy
pjhealy's picture
Disk space?

Any chance you're out of, or low on disk space? Is the system failing to create the necessary PID and log files? What does a tail of /var/log/asterisk/full look like?

wiseoldowl
wiseoldowl's picture
Did you try rebooting once

Did you try rebooting once more? Sometimes it's just that simple. I have no idea why it happens, but whenever it happened to me, a second reboot was the solution.

beachcomp
beachcomp's picture
Tail is below. I was hoping

Tail is below.
I was hoping it was a drive issue, but no.
And reboots dont help.

Crazy?!?!

root@voip:~ $ asterisk -vr
Asterisk 1.4.18, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
root@voip:~ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
39994728 8543124 29387220 23% /
/dev/sda1 101086 16744 79123 18% /boot
tmpfs 257764 0 257764 0% /dev/shm
root@voip:~ $ tail /var/log/asterisk/full
[Aug 4 20:55:50] VERBOSE[2412] logger.c: == Registered application 'MYSQL'
[Aug 4 20:55:50] VERBOSE[2412] logger.c: app_addon_sql_mysql.so => (Simple Mysql Interface)
[Aug 4 20:55:50] VERBOSE[2412] logger.c: == Registered file format iLBC, extension(s) ilbc
[Aug 4 20:55:50] VERBOSE[2412] logger.c: format_ilbc.so => (Raw iLBC data)
[Aug 4 20:55:50] WARNING[2412] loader.c: Module 'cdr_addon_mysql.so' was not compiled against a recent version of Asterisk and may cause instability.
[Aug 4 20:55:50] VERBOSE[2412] logger.c: == Parsing '/etc/asterisk/cdr_mysql.conf': [Aug 4 20:55:50] VERBOSE[2412] logger.c: Found
[Aug 4 20:55:50] WARNING[2412] cdr_addon_mysql.c: MySQL database sock file not specified. Using default
[Aug 4 20:55:50] VERBOSE[2412] logger.c: cdr_addon_mysql.so => (MySQL CDR Backend)
[Aug 4 20:55:50] VERBOSE[2412] logger.c: == Registered translator 'g723tolin' from format g723 to slin, cost 1
[Aug 4 20:55:50] VERBOSE[2412] logger.c: == Registered translator 'lintog723' from format slin to g723, cost 4
root@voip:~ $