Brian
2010-Feb-10 11:57 UTC
[asterisk-users] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory
Since upgrading from 1.6.1 to 1.6.2 I get this error on boot: Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory Or if I try to connect to Asterisk: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) If I manually create /var/run/asterisk/ and restart Asterisk I can connect to it, but if the server is rebooted /var/run/asterisk/ disappears and warning comes back. I could doctor the init.d script to overcome this, but I'm not sure it's the right thing to do. Can anyone explain the best way for me to get over this?
Ken Leland III
2010-Feb-10 13:54 UTC
[asterisk-users] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory
Brian, It could be that the ownership/permissions on the directory are not correct. Are you running asterisk as asterisk:asterisk or root:root? Here is an article that lists the directories and what the ownership/permissions on each one should be: http://www.voip-info.org/wiki/view/Asterisk+non-root On Wed, Feb 10, 2010 at 11:57:44AM +0000, Brian wrote:> Since upgrading from 1.6.1 to 1.6.2 I get this error on boot: > Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file > or directory > > Or if I try to connect to Asterisk: > Unable to connect to remote asterisk > (does /var/run/asterisk/asterisk.ctl exist?) > > If I manually create /var/run/asterisk/ and restart Asterisk I can > connect to it, but if the server is rebooted /var/run/asterisk/ > disappears and warning comes back. > > I could doctor the init.d script to overcome this, but I'm not sure it's > the right thing to do. Can anyone explain the best way for me to get > over this? > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Reasonably Related Threads
- Nat Issue - is this Draytek || Asterisk?
- file.c:1160 ast_writefile: Unable to open file /var/spool/asterisk/monitor/11Feb2014/_11-Feb-2014-17-44-01.wav: No such file or directory
- Redirect call based on CLI???
- Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
- Unable to connect to remote asterisk (does / var/run/asterisk.ctl exist?)