Trixbox 2.2.5 "Unable to connect to remote asterisk"

grolo
Posts: 25
Member Since:
2006-11-23

I have a fresh install of Trixbox 2.2.5, and i get:

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

But Asterisk is running well, and i can make and receive calls. The problem is that i can't stop Asterisk and i can't run the console with "asterisk -r" because i get the error all time.

I repeat is a fresh install without upgrading, installing or uninstalling any packet or module.

Any idea about the problem?

PD: [root@asterisk1 ~]# uname -r
2.6.9-34.0.2.EL

(it's a Pentium IV 1,7 GHZ)

Thanks



DKirk
Posts: 11
Member Since:
2007-10-04
Same thing here, fresh

Same thing here, fresh install of 2.2.5 and I get the same error.



DKirk
Posts: 11
Member Since:
2007-10-04
The file

The file /var/run/asterisk/asterisk.ctl does NOT exist on my machine, anywhere.



ja133
Posts: 1608
Member Since:
2006-11-26
since when is there 2.2.5?

since when is there 2.2.5? the latest stable version is 2.2.4

edit:
never miind i see it was just released today

--

Joseph Ades
Local Support in New York City & Remote Support Available
josephades1@gmail.com
(718) 303-1061
Blackberry PIN: 2416CDD3
trixbox Troubleshooting & Guides: http://www.joeyades.com/asterisk



DKirk
Posts: 11
Member Since:
2007-10-04
After much reading ... turns

After much reading ... turns out that .ctl file is created by Asterisk when it runs. The asterisk.conf shows that the file should be in /var/run/asterisk directory and the group/rights appear to be fine for the "asterisk" user. Not sure why Asterisk is failing to create the file... still reading, but may break down and reload 2.2.5 from scratch and see if I broke something by updating the system after the 2.2.5 install.
-#edited#-
Ok, I wiped the drives and installed again fresh ... the .ctl file remains missing, there is something wrong with 2.2.5 since I did not have this problem with 2.2.4



kerryg
Posts: 5574
Member Since:
2006-05-31
This was due to a change in

This was due to a change in our asterisk build. We have figured it out and are doing a new build.



DKirk
Posts: 11
Member Since:
2007-10-04
I really like what I see in

I really like what I see in 2.2.5 and do not wish to reload 2.2.4, will the re-release of 2.2.5 be coming any time soon?



haidinh
Posts: 19
Member Since:
2007-09-01
I repaired the problem after running trixbox and yum updates

The problem was repaired after I did the trixbox and yum updates.
Trixbox-update.sh update
Yum –y install tbm-GUIcore
Yum –y update



DKirk
Posts: 11
Member Since:
2007-10-04
Running those updates did

Running those updates did not cure the problem for me, executing "asterisk -r" from the console still throws the error.



GSnover
Posts: 1305
Member Since:
2006-11-19
This is because Asterisk is running as a service instead of

from amportal - Load up Webmin, set the service to NOT start at boot time, reboot and it should start up from within amportal as it should.

Greg



mikemee
Posts: 121
Member Since:
2006-06-07
Step by step

Here's how to stop asterisk running as a service, step by step.

First install webmin from an ssh prompt with:

yum -y install webmin

Then log into webmin with

http://yourip:10000

and provide the username of root and the root password.

Click on System -> Bootup and Shutdown

Check the box next to Asterisk

Click the "Disable Now and On Boot" button

Go back to your ssh shell and type:

shutdown -r now

to restart the machine. All should now be ok and asterisk should be running. Thanks GSnover!



kerryg
Posts: 5574
Member Since:
2006-05-31
You guys all downloaded

You guys all downloaded 2.2.5 before I announced it. You got a hosed up version. Please wait for an announcement before downloading new versions. You should be able to do a yum update to fix it or download 2.2.5a which is on its way to the sf mirrors.



GSnover
Posts: 1305
Member Since:
2006-11-19
Post it...And they will come!

Don't let people downloading the .ISO's the minute they are posted annoy you - you should be flattered - If you haven't noticed yet, the Trixbox community is fairly rabid (myself included) for new releases and updates - this is a good thing - Adminsparadise and Elastix are pretty quiet these days...

Greg



kerryg
Posts: 5574
Member Since:
2006-05-31
It doesn't annoy me, I just

It doesn't annoy me, I just want people to have a good experience and jumping on a build before we release it does not always give the best impression.



nothings_found
Posts: 72
Member Since:
2007-03-10
How about..

Just a simple.

chkconfig asterisk off

:D



splante
Posts: 15
Member Since:
2006-07-07
Still no update, problem persists

We did an update via the web interface on Saturday not realizing 2.2.5 was out there. We are having a couple of problems including this unable to connect to remote asterisk issue. We saw this thread Saturday and figured the new stuff just hadn't made it out to all the mirrors. However we still aren't getting any new updates and the problem persists. The Asterisk version reported by asterisk -V is 1.2.24 svn rev 79171. This matches what yum info asterisk says. Is this the proper latest version that's supposed to fix the remote asterisk issue? I've just done a "yum clean all" followed by a yum update, and it reports "No packages marked for Update.."



devex
Posts: 15
Member Since:
2007-07-19
is there any

fix for this? having the same problems and I cant contact extensions from outside!

Thanks!



devex
Posts: 15
Member Since:
2007-07-19
my fix!

I have remove asterisk from start up and then restart my server.. :-(



devex
Posts: 15
Member Since:
2007-07-19
argh! unable to connect again!

What the... It appears again and I cant do outside call! Please help!

Thanks!



kerryg
Posts: 5574
Member Since:
2006-05-31
you might want to install

you might want to install 2.2.8 instead. It certainly seems to be more stable.



buidanghuy
Posts: 6
Member Since:
2006-11-16
Re: Step by step from mikemee

Hello mikemee and GSnover

Thank you very much!
My Trixbox now work ok, but I don't know how it can run when we "Disable Asterisk Now and On Boot"? I'm very crazy about that.

Many Thanks,



Comment viewing options

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