Devraj Mukherjee
2007-Jan-23 03:27 UTC
[asterisk-users] Can't find asterisk.ctl under CentOS installation
Hi Everyone, I recently upgraded to Asterisk 1.4 using the RPMS at ATrpms.net on CentOS 4.4, Asterisk starts up but when I start the console it reports this error and drops out. "Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist)?" I have checked to see that the file asterisk.ctl actually exists. Any suggestions? -- "I never look back darling, it distracts from the now", Edna Mode (The Incredibles)
Steven
2007-Jan-23 06:10 UTC
[asterisk-users] Re: Can't find asterisk.ctl under CentOS installation
If you are not running asterisk as root, then change the permissions on the /var/run/asterisk folder and below to allow you user access. Also, I seem to remember that on one release, the entry in asterisk.conf did not match safe_asterisk. So the ctl file was NOT where asterisk was looking. -- -- Steven http://www.glimasoutheast.org "Devraj Mukherjee" <devraj@gmail.com> wrote in message news:2d57c6570701230227q7e3210a2keac4e06f42073ea8@mail.gmail.com...> Hi Everyone, > > I recently upgraded to Asterisk 1.4 using the RPMS at ATrpms.net on > CentOS 4.4, Asterisk starts up but when I start the console it reports > this error and drops out. > > "Unable to connect to remote asterisk (does > /var/run/asterisk/asterisk.ctl exist)?" > > I have checked to see that the file asterisk.ctl actually exists. Any > suggestions? > > -- > "I never look back darling, it distracts from the now", Edna Mode (The > Incredibles) > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Axel Thimm
2007-Jan-23 06:48 UTC
[asterisk-users] Re: Can't find asterisk.ctl under CentOS installation
On Tue, Jan 23, 2007 at 09:27:03PM +1100, Devraj Mukherjee wrote:> I recently upgraded to Asterisk 1.4 using the RPMS at ATrpms.net on > CentOS 4.4, Asterisk starts up but when I start the console it reports > this error and drops out. > > "Unable to connect to remote asterisk (does > /var/run/asterisk/asterisk.ctl exist)?" > > I have checked to see that the file asterisk.ctl actually exists. Any > suggestions?Have you tried asterisk -r as root or as a non-root user? See below for details. On Tue, Jan 23, 2007 at 08:10:29AM -0500, Steven wrote:> If you are not running asterisk as root, then change the permissions > on the /var/run/asterisk folder and below to allow you user access.asterisk on ATrpms runs as asterisk:asterisk and the folder belongs to that uid/gid: # ls -ld /var/run/asterisk drwxr-xr-x 2 asterisk asterisk 4096 Jan 16 17:30 /var/run/asterisk> Also, I seem to remember that on one release, the entry in > asterisk.conf did not match safe_asterisk. So the ctl file was NOT > where asterisk was looking.asterisk.conf does point to the same folder. # grep astrundir /etc/asterisk/asterisk.conf astrundir => /var/run/asterisk And safe_asterisk/asterisk do use that file according to lsof asterisk 3u unix 0xffff8800332dfc00 213094 /var/run/asterisk/asterisk.ctl If I call asterisk -r as root it succeeds, if as another user it will give Devraj's error message. That's probably how it is supposed to work, or not? -- Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070123/eeb8dc33/attachment.pgp