# Problem in running Asterisk

**URL:** <https://community.asterisk.org/t/problem-in-running-asterisk/23823>\
**Category:** Asterisk Support\
**Created:** [October 30, 2008, 3:25am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823 "2008-10-30T03:25:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandu73](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chandu73](https://community.asterisk.org/u/chandu73)\
**Post date:** [October 30, 2008, 3:25am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/1 "2008-10-30T03:25:32Z")

</div>

Hi,

i have installed Asterisk on Ubuntu 8.04LTS Desktop version.

now i would like to run asterisk so, am giving the following command at

$ asterisk  
getting the error "Unable to open pid file ‘/var/run/asterisk.pid’: Permission denied"  
2) asterisk-r getting error  
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

pls anyone help me in solving the problem , i don’t know whether am doing any wrong in running asterisk.

chandu

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [October 30, 2008, 9:21am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/2 "2008-10-30T09:21:02Z")

</div>

Try run asterisk as root user.

Cheers.

Marco Bruni

---

<div class="post-metadata">

**Author:** ![chandu73](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chandu73](https://community.asterisk.org/u/chandu73)\
**Post date:** [October 31, 2008, 12:53am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/3 "2008-10-31T00:53:09Z")

</div>

helloMarco Bruni,

i have tried running asterisk as root user ,still am getting the same problem.

when i run the command # asterisk -r

am getting “Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)”

if i run # asterisk -vvvc  
WARNING[6015]: pbx.c:2981 ast\_register\_application: Already have an application 'Pickup’  
please help me in solving this issue.

thanks

Regards  
Chandu

---

<div class="post-metadata">

**Author:** ![riddlebox](https://avatars.discourse-cdn.com/v4/letter/r/dbc845/32.png) [@riddlebox](https://community.asterisk.org/u/riddlebox)\
**Post date:** [October 31, 2008, 1:56am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/4 "2008-10-31T01:56:12Z")

</div>

You are typing “sudo asterisk” first right?

---

<div class="post-metadata">

**Author:** ![chandu73](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chandu73](https://community.asterisk.org/u/chandu73)\
**Post date:** [October 31, 2008, 3:44am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/5 "2008-10-31T03:44:41Z")

</div>

hi,  
am trying as a root use although am getting th same erroe,

Regards  
chandu

---

<div class="post-metadata">

**Author:** ![mbruni](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mbruni](https://community.asterisk.org/u/mbruni)\
**Post date:** [November 3, 2008, 8:55am UTC](https://community.asterisk.org/t/problem-in-running-asterisk/23823/6 "2008-11-03T08:55:32Z")

</div>

As root try run

```auto
asterisk -vvvvvvvvvvvgc
```

to see if Asterisk starts or not, if not then check the last messages for the error.

Cheers.

Marco Bruni
