After installing a new box and asterisk. i have got these errors [root at localhost ~]# asterisk Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory [root at localhost ~]# asterisk -vr Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) I didn't find a folder called asterisk in the directory /var/run [root at localhost ~]# cd /var/run/ [root at localhost run]# ls acpid.socket dbus iptraf messagebus.pid ntpd.pid sendmail.pid sudo utmp atd.pid dhclient-eth0.pid klogd.pid mysqld ppp sm-client.pid syslogd.pid winbindd console haldaemon.pid mdadm netreport rpc.statd.pid spamassassin tog-pegasus xfs.pid crond.pid httpd.pid mdmpd nscd saslauthd sshd.pid usb xinetd.pid [root at localhost run]# [root at localhost run]# asterisk -cvvvvv Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory Unable to bind socket to /var/run/asterisk/asterisk.ctl: No such file or directory == Parsing '/etc/asterisk/asterisk.conf': Found == Parsing '/etc/asterisk/extconfig.conf': Found Asterisk 1.2.28, Copyright (C) 1999 - 2007 Digium, Inc. and others. Created by Mark Spencer <markster at digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'show license' for details. ======================================================================== == Parsing '/etc/asterisk/logger.conf': Found Asterisk Event Logger Started /var/log/asterisk/event_log == Parsing '/etc/asterisk/dnsmgr.conf': Found Asterisk Dynamic Loader loading preload modules: == Parsing '/etc/asterisk/modules.conf': Found == Manager registered action Ping == Manager registered action Events == Manager registered action Logoff == Manager registered action Hangup == Manager registered action Status == Manager registered action Setvar == Manager registered action Getvar == Manager registered action Redirect == Manager registered action Originate == Manager registered action Command == Manager registered action ExtensionState == Manager registered action AbsoluteTimeout == Manager registered action MailboxStatus == Manager registered action MailboxCount == Manager registered action ListCommands == Parsing '/etc/asterisk/manager.conf': Found == Parsing '/etc/asterisk/manager_custom.conf': Found [root at localhost run]# How can i solve it please? _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081019/a0981d69/attachment.htm
On 10/19/08, Ahmed torinto <torinto1984 at hotmail.com> wrote:> > > > After installing a new box and asterisk. i have got these errors > > > > > > [root at localhost ~]# asterisk > > > > Unable to open pid file '/var/run/asterisk/asterisk.pid': > No such file or directory >mkdir /var/run/asterisk -- Kristian Kielhofner http://blog.krisk.org http://www.submityoursip.com http://www.astlinux.org http://www.star2star.com
When installing Asterisk, did you issue the command "make config" after "make samples" ?? If so, try issuing "service asterisk start" on RedHat or "/etc/init.d/asterisk start" on Debian. Regards, Juan On Sun, Oct 19, 2008 at 3:50 PM, Ahmed torinto <torinto1984 at hotmail.com>wrote:> After installing a new box and asterisk. i have got these errors > > > > > > [root at localhost ~]# asterisk > > > > Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or > directory > > > > [root at localhost ~]# asterisk -vr > > > > Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl > exist?) > > > > I didn't find a folder called asterisk in the directory /var/run > > > > [root at localhost ~]# cd /var/run/ > > [root at localhost run]# ls > > acpid.socket dbus iptraf messagebus.pid ntpd.pid > sendmail.pid sudo utmp > > atd.pid dhclient-eth0.pid klogd.pid mysqld ppp > sm-client.pid syslogd.pid winbindd > > console haldaemon.pid mdadm netreport rpc.statd.pid > spamassassin tog-pegasus xfs.pid > > crond.pid httpd.pid mdmpd nscd saslauthd > sshd.pid usb xinetd.pid > > [root at localhost run]# > > [root at localhost run]# asterisk -cvvvvv > > Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or > directory > > Unable to bind socket to /var/run/asterisk/asterisk.ctl: No such file or > directory > > == Parsing '/etc/asterisk/asterisk.conf': Found > > == Parsing '/etc/asterisk/extconfig.conf': Found > > Asterisk 1.2.28, Copyright (C) 1999 - 2007 Digium, Inc. and others. > > Created by Mark Spencer <markster at digium.com> > > Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for > details. > > This is free software, with components licensed under the GNU General > Public > > License version 2 and other licenses; you are welcome to redistribute it > under > > certain conditions. Type 'show license' for details. > > ========================================================================> > == Parsing '/etc/asterisk/logger.conf': Found > > Asterisk Event Logger Started /var/log/asterisk/event_log > > == Parsing '/etc/asterisk/dnsmgr.conf': Found > > Asterisk Dynamic Loader loading preload modules: > > == Parsing '/etc/asterisk/modules.conf': Found > > == Manager registered action Ping > > == Manager registered action Events > > == Manager registered action Logoff > > == Manager registered action Hangup > > == Manager registered action Status > > == Manager registered action Setvar > > == Manager registered action Getvar > > == Manager registered action Redirect > > == Manager registered action Originate > > == Manager registered action Command > > == Manager registered action ExtensionState > > == Manager registered action AbsoluteTimeout > > == Manager registered action MailboxStatus > > == Manager registered action MailboxCount > > == Manager registered action ListCommands > > == Parsing '/etc/asterisk/manager.conf': Found > > == Parsing '/etc/asterisk/manager_custom.conf': Found > > [root at localhost run]# > > > > How can i solve it please? > > > > > > > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. Check > it out! <http://www.live.com/getstarted.aspx> > > _______________________________________________ > -- 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 >-- Juan E. Rodr?guez Cel. 829-886-5565 Work: 809-724-9227 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081019/a42d434b/attachment.htm
Hi, I had this problem once before. It was related to running asterisk as a non root user. I think if you run asterisk as root your problems will go away. OR you can change the permissions on the /var/run directory to 777 and the problem might be solved too. Regards, Antoine Megalla.> Message: 15 > Date: Sun, 19 Oct 2008 22:19:09 +0200 > From: Ahmed Torintino <torintino at hotmail.com> > Subject: Re: [asterisk-users] Asterisk Problem > To: Asterisk Users Mailing List - Non-CommercialDiscussion> <asterisk-users at lists.digium.com> > Message-ID:<BAY136-W5366762562FD5135F82D9CBD2C0 at phx.gbl>> Content-Type: text/plain; charset="iso-8859-1" > > i have done that as follow > > [root at localhost asterisk]# service asterisk start > Starting asterisk:[ OK ]> [root at localhost asterisk]# asterisk > [root at localhost asterisk]# asterisk > [root at localhost asterisk]# asterisk -vr > Unable to connect to remote asterisk (does/var/run/asterisk.ctl exist?)> but i think the problem is because of those couplefiles> > /var/run/asterisk.ctl and/var/run/asterisk.pid> > > Thanks > > > > Date: Sun, 19 Oct 2008 16:05:34 -0400From:jerdguez at gmail.comTo:> asterisk-users at lists.digium.comSubject: Re:[asterisk-users] Asterisk> Problem > When installing Asterisk, did you issue the command"make config" after> "make samples" ?? > > If so, try issuing "service asterisk start" onRedHat or> "/etc/init.d/asterisk start" on Debian. > > Regards, > Juan > On Sun, Oct 19, 2008 at 3:50 PM, Ahmed torinto<torinto1984 at hotmail.com>> wrote: > > > After installing a new box and asterisk. i have gotthese errors> > > [root at localhost ~]# asterisk > > Unable to open pid file'/var/run/asterisk/asterisk.pid': No such file or> directory > > [root at localhost ~]# asterisk -vr > > Unable to connect to remote asterisk (does/var/run/asterisk/asterisk.ctl> exist?) > > I didn't find a folder called asterisk in thedirectory /var/run> > [root at localhost ~]# cd /var/run/ > [root at localhost run]# ls > acpid.socket dbus iptrafmessagebus.pid ntpd.pid> sendmail.pid sudo utmp > atd.pid dhclient-eth0.pid klogd.pid mysqldppp> sm-client.pid syslogd.pid winbindd > console haldaemon.pid mdadmnetreport rpc.statd.pid> spamassassin tog-pegasus xfs.pid > crond.pid httpd.pid mdmpd nscdsaslauthd> sshd.pid usb xinetd.pid > [root at localhost run]# > [root at localhost run]# asterisk -cvvvvv > Unable to open pid file'/var/run/asterisk/asterisk.pid': No such file or> directory > Unable to bind socket to/var/run/asterisk/asterisk.ctl: No such file or> directory > == Parsing '/etc/asterisk/asterisk.conf': Found > == Parsing '/etc/asterisk/extconfig.conf': Found > Asterisk 1.2.28, Copyright (C) 1999 - 2007 Digium,Inc. and others.> Created by Mark Spencer <markster at digium.com> > Asterisk comes with ABSOLUTELY NO WARRANTY; type'show warranty' for> details. > This is free software, with components licensedunder the GNU General> Public > License version 2 and other licenses; you arewelcome to redistribute it> under > certain conditions. Type 'show license' for details. >========================================================================> == Parsing '/etc/asterisk/logger.conf': Found> Asterisk Event Logger Started/var/log/asterisk/event_log> == Parsing '/etc/asterisk/dnsmgr.conf': Found > Asterisk Dynamic Loader loading preload modules: > == Parsing '/etc/asterisk/modules.conf': Found > == Manager registered action Ping > == Manager registered action Events > == Manager registered action Logoff > == Manager registered action Hangup > == Manager registered action Status > == Manager registered action Setvar > == Manager registered action Getvar > == Manager registered action Redirect > == Manager registered action Originate > == Manager registered action Command > == Manager registered action ExtensionState > == Manager registered action AbsoluteTimeout > == Manager registered action MailboxStatus > == Manager registered action MailboxCount > == Manager registered action ListCommands > == Parsing '/etc/asterisk/manager.conf': Found > == Parsing '/etc/asterisk/manager_custom.conf':Found> [root at localhost run]# > > How can i solve it please?__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Mon, Oct 20, 2008 at 05:36:55AM -0700, Antoine Megalla wrote:> Hi, > > I had this problem once before. > It was related to running asterisk as a non root user. > > I think if you run asterisk as root your problems will > go away. > OR > you can change the permissions on the /var/run > directory to 777 and the > problem might be solved too.chmod 777 means you should have solved it with chown otherwise . In this case: chown asterisk: on /var/run/asterisk . BTW: are you on a distribution that deletes the contents of /var/run at startup? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir