[asterisk-users] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory

Ken Leland III k3leland at monmouth.com
Wed Feb 10 07:54:50 CST 2010


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



More information about the asterisk-users mailing list