# Unable to connect to remote asterisk (does /var/run/asterisk

**URL:** <https://community.asterisk.org/t/unable-to-connect-to-remote-asterisk-does-var-run-asterisk/34755>\
**Category:** Asterisk Support\
**Created:** [April 5, 2011, 1:48pm UTC](https://community.asterisk.org/t/unable-to-connect-to-remote-asterisk-does-var-run-asterisk/34755 "2011-04-05T13:48:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [April 5, 2011, 1:48pm UTC](https://community.asterisk.org/t/unable-to-connect-to-remote-asterisk-does-var-run-asterisk/34755/1 "2011-04-05T13:48:01Z")

</div>

my os is centOS 5.X  
i installed asterisk1.8.3.2 via Installing Asterisk With Yum  
i used command as below:  
“yum install asterisk18 asterisk18-configs asterisk18-voicemail dahdi-linux  
dahdi-tools libpri”

but i will run  
#asterisk  
#asterisk -r  
showing error "Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) "

i see /var/log/asterisk/meessage  
showing “[Apr 5 17:21:16] ERROR[13757] /usr/src/redhat/BUILD/asterisk18-1.8.3.2/include/asterisk/utils.h: Memory Allocation Failure in function internal\_ao2\_alloc at line 295 of astobj2.c”

anyidea?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [April 5, 2011, 1:50pm UTC](https://community.asterisk.org/t/unable-to-connect-to-remote-asterisk-does-var-run-asterisk/34755/2 "2011-04-05T13:50:49Z")

</div>

[Apr 5 17:41:11] WARNING[32359] loader.c: Error loading module ‘res\_pktccops’: /usr/lib/asterisk/modules/res\_pktccops.so: cannot open shared object file: No such file or directory  
[Apr 5 17:41:11] WARNING[32359] loader.c: Error loading module ‘chan\_mgcp.so’: /usr/lib/asterisk/modules/chan\_mgcp.so: undefined symbol: ast\_pktccops\_gate\_alloc  
[Apr 5 17:41:11] WARNING[32359] loader.c: Module ‘chan\_mgcp.so’ could not be loaded.  
[Apr 5 17:41:11] WARNING[32359] res\_musiconhold.c: Cannot open dir /var/lib/asterisk/moh or dir does not exist  
[Apr 5 17:41:11] WARNING[32359] res\_musiconhold.c: No music on hold classes configured, disabling music on hold.  
[Apr 5 17:41:11] NOTICE[32359] chan\_skinny.c: Configuring skinny from skinny.conf

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [April 5, 2011, 1:58pm UTC](https://community.asterisk.org/t/unable-to-connect-to-remote-asterisk-does-var-run-asterisk/34755/3 "2011-04-05T13:58:27Z")

</div>

At first sight, you do not have enough RAM, however, given more details, it might turn out to be [issues.asterisk.org/view.php?id=19065](https://issues.asterisk.org/view.php?id=19065)

The rasterisk error simply means that asterisk proper is not running.

Installing from yum almost certainly means you cannot progress this any further, as the package is unlikely to have been built with options compatible with submitting a bug report, and you will have to wait for any fix to find its way into the package.
