(does /var/run/asterisk/asterisk.ctl exist?

seanshonag
Posts: 135
Member Since:
2006-12-24

== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?

is there a way to fix this?

please



kerryg
Posts: 6790
Member Since:
2006-05-31
Usually means Asterisk is

Usually means Asterisk is not running. Do a tail /var/log/asterisk/full to figure out where it is dieing. This will tell you what is wrong.

--

Kerry Garrison
http://www.VoipStore.com - http://3cxbook.com
(888) VOIPSTORE - (888) 864-7786



busster8
Posts: 388
Member Since:
2006-06-25
Same error

I get the same error. All looks good in log file.



kapil
Posts: 109
Member Since:
2006-06-13
Did you make any hardware or

Did you make any hardware or configuration changes recently?



mglaske
Posts: 26
Member Since:
2006-11-03
Unable to connect to remote asterisk.

I had this happen. It was because asterisk was running as 'root'. I did an 'amportal restart', and it came back online as the user 'asterisk' (like it should be), and all worked fine after that.



ledcito
Posts: 4
Member Since:
2007-01-26
Same Error

I do a yum -y update and before that trixbox did't detect the tdm02b



ledcito
Posts: 4
Member Since:
2007-01-26
Same Error

I do a yum -y update and AFTER that trixbox did't detect the tdm02b
SORRY



ledcito
Posts: 4
Member Since:
2007-01-26
Solution

I do it and works.

First you need to create the asterisk folder in /var/run/asterisk, then in the shell type asterisk, type asteriks -r, If you have error in asterisk -r type asterisk -& and the asterisk -r. Then reboot, tha's all.



kieranmullen
Posts: 30
Member Since:
2006-09-27
Didnt work

I didnt even touch the zaptel drivers

root@cpanel3 [/var/run/asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
root@cpanel3 [/var/run/asterisk]# asterisk -&
[1] 5710
root@cpanel3 [/var/run/asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
[1]+ Done asterisk -
root@cpanel3 [/var/run/asterisk]#
root@cpanel3 [/var/run/asterisk]# asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
root@cpanel3 [/var/run/asterisk]# amportal stop

STOPPING ASTERISK

STOPPING FOP SERVER
usage: kill [ -s signal | -p ] [ -a ] pid ...
kill -l [ signal ]
FOP Server Stopped
root@cpanel3 [/var/run/asterisk]# amportal start

SETTING FILE PERMISSIONS
chmod: cannot access `/home/sip2ins/fop/safe_opserver': No such file or directory
Permissions OK

STARTING ASTERISK
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed

-----------------------------------------------------
Asterisk could not start!
Use 'tail /var/log/asterisk/full' to find out why.
-----------------------------------------------------
root@cpanel3 [/var/run/asterisk]#
root@cpanel3 [/var/run/asterisk]#
root@cpanel3 [/var/run/asterisk]# tail /var/log/asterisk/full
Sep 24 17:04:12 VERBOSE[6028] logger.c: == Parsing '/etc/asterisk/phone.conf': Sep 24 17:04:12 VERBOSE[6028] logger.c: == Parsing '/etc/asterisk/phone.conf': Found
Sep 24 17:04:12 VERBOSE[6028] logger.c: == Registered channel type 'Phone' (Standard Linux Telephony API Driver)
Sep 24 17:04:12 VERBOSE[6028] logger.c: [chan_zap.so]Sep 24 17:04:12 VERBOSE[6028] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI)
Sep 24 17:04:12 VERBOSE[6028] logger.c: == Parsing '/etc/asterisk/zapata.conf': Sep 24 17:04:12 VERBOSE[6028] logger.c: == Parsing '/etc/asterisk/zapata.conf': Found
Sep 24 17:04:12 WARNING[6028] chan_zap.c: Unable to open '/dev/zap/channel': No such file or directory
Sep 24 17:04:12 ERROR[6028] chan_zap.c: Unable to open channel 1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
Sep 24 17:04:12 ERROR[6028] chan_zap.c: Unable to register channel '1'
Sep 24 17:04:12 WARNING[6028] loader.c: chan_zap.so: load_module failed, returning -1
Sep 24 17:04:12 WARNING[6028] loader.c: Loading module chan_zap.so failed!



simple68
Posts: 176
Member Since:
2006-06-26
above

Run "genzaptelconf" may improve things



nttranbao
Posts: 189
Member Since:
2008-02-16
I have encountered the same

I have encountered the same error messages, and here is my solution:

chown asterisk:asterisk /var/run/asterisk/asterisk.ctl

Cheers.

Bao Nguyen

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



AfghanITT
Posts: 5
Member Since:
2008-09-02
Same Problem

I run this command but problem is same.

[root@test ~]# chown asterisk:asterisk /var/run/asterisk/asterisk.ctl
[root@test ~]#
[root@test ~]# asterisk -rvv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)



joshelson
Posts: 244
Member Since:
2006-12-07
Need output of tail

Need output of tail /var/log/asterisk/full.

Likely you have an error in your zaptel configuration.

Josh

--

FluentStream Technologies - Integrate * Communicate



rchaud03
Posts: 2
Member Since:
2009-02-24
I have encountered the same

I tried administrator@SSTS-ALPH1:~$ sudo chown asterisk:asterisk/var/run/asterisk/asterisk.ctl

and got

chown: missing operand after `asterisk:asterisk/var/run/asterisk/asterisk.ctl'

Any suggestions?

rookie/newbie so bear with me

--

rookie/newbie so bear with me



rchaud03
Posts: 2
Member Since:
2009-02-24
follow up

and yes "asterisk.ctl" does exist

--

rookie/newbie so bear with me



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.