# Asterisk Problem

**URL:** <https://community.asterisk.org/t/asterisk-problem/23638>\
**Category:** Asterisk General\
**Created:** [October 19, 2008, 7:42pm UTC](https://community.asterisk.org/t/asterisk-problem/23638 "2008-10-19T19:42:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![torinto](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@torinto](https://community.asterisk.org/u/torinto)\
**Post date:** [October 19, 2008, 7:42pm UTC](https://community.asterisk.org/t/asterisk-problem/23638/1 "2008-10-19T19:42:01Z")

</div>

After installing a new box and asterisk. i have got these errors

[root@localhost ~]# asterisk

Unable to open pid file ‘/var/run/asterisk/asterisk.pid’: No such file or directory

[root@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@localhost ~]# cd /var/run/ [root@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@localhost run]# [root@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 © 1999 - 2007 Digium, Inc. and others. Created by Mark Spencer [markster@digium.com](mailto:markster@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@localhost run]#

How can i solve it please?

---

<div class="post-metadata">

**Author:** ![mazilo](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@mazilo](https://community.asterisk.org/u/mazilo)\
**Post date:** [October 20, 2008, 3:25am UTC](https://community.asterisk.org/t/asterisk-problem/23638/2 "2008-10-20T03:25:56Z")

</div>

Unfortunately, you didn’t specify on which platform you encountered such a problem when trying to run asterisk. I ran into these similar error messages using an asterisk-1.4.x and/or asterisk-1.6.x compiled on [OpenWRT](http://openwrt.org) and/or [DDWRT](http://www.dd-wrt.com/dd-wrtv3/index.php) firmware with a uClibc-0.9.29 library. I resolved this issue with a uClibc-0.9.28.2 library.
