Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

I’m able to install FreePBX and Asterisk and it works, but then when I reboot my computer I get the above error. I get no errors in the /var/log/asterisk folder.

I can reinstall Asterisk and run install_amp and it works again, but not after a reboot. I’m on Ubuntu Natty, using apt-get to install Asterisk.

The following is what I get when I type asterisk -c.

Any ideas?

Asterisk 1.6.2.9-2ubuntu2, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core 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 ‘core show license’ for details.

[ Booting…
[ Reading Master Configuration ]
e[0;37m[ Initializing Custom Configuration Options ]
Started Asterisk Event Logger
2 modules will be loaded.
.CDR simple logging enabled.
Could not load features.conf
204 modules will be loaded.
Error loading module ‘app_voicemail_odbc.so’: /usr/lib/asterisk/modules/app_voicemail_odbc.so: undefined symbol: ast_odbc_request_obj
Error loading module ‘pbx_ael.so’: /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ast_compile_ael2
Error loading module ‘res_agi.so’: /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_start
Error loading module ‘res_config_odbc.so’: /usr/lib/asterisk/modules/res_config_odbc.so: undefined symbol: ast_odbc_clear_cache
Error loading module ‘app_speech_utils.so’: /usr/lib/asterisk/modules/app_speech_utils.so: undefined symbol: ast_speech_start
Error loading module ‘chan_jingle.so’: /usr/lib/asterisk/modules/chan_jingle.so: undefined symbol: ast_aji_get_client
Error loading module ‘chan_gtalk.so’: /usr/lib/asterisk/modules/chan_gtalk.so: undefined symbol: ast_aji_get_client
Unable to load res_config_sqlite.conf
Unable to load config res_pgsql.conf
.No such configuration file jabber.conf
JABBER: Failed to load config.
Unable to load config file res_odbc.conf
.Could not load res_snmp.conf
.Unable to load users.conf
.Unable to load config smdi.conf: SMDI disabled
No SMDI interfaces are available to listen on, not starting SMDI listener.
Error loading extensions.lua: cannot open ‘/etc/asterisk/extensions.lua’ for reading: No such file or directory
Cannot load configuration res_ldap.conf
Cannot load LDAP RealTime driver.
.Manager ‘admin’ logged on from 127.0.0.1
Manager ‘admin’ logged on from 127.0.0.1
Manager ‘admin’ logged off from 127.0.0.1
…Unable to load config chan_dahdi.conf
…Cannot find variable ‘IAXPEER’ in tree 'description’
Cannot find variable ‘IAXVAR’ in tree 'description’
Unable to load config iax.conf
Unable to read config file gtalk.conf. Not loading module.
…Unable to load config for PostgreSQL CDR’s: cdr_pgsql.conf
…Unable to load TDS config for CDRs: cdr_tds.conf
…Manager ‘admin’ logged off from 127.0.0.1
…plc_samples 160 format f
…No follow me config file (followme.conf), so no follow me
Could not initialize cluster membership service: Try Again
.Registered Config Engine mysql
…Unable to read config file jingle.conf. Not loading module.
…No queuerules.conf file found, queues will not follow penalty rules
…No Voicetronix cards detected
…Unable to load config for func_odbc: func_odbc.conf
…Failed to open /dev/dahdi/transcode: No such file or directory
…This module has been marked deprecated in favor of using cdr_sqlite3_custom. (May be removed after Asterisk 1.6)
…Starting AEL load process.
File /etc/asterisk/extensions.ael not found; AEL declining load
Failed to load configuration file. Module not activated.
…Already have an application 'VoiceMail’
Already have an application 'VoiceMailMain’
Already have an application 'MailboxExists’
Already have an application 'VMAuthenticate’
Function MAILBOX_EXISTS already registered.
e[0m

Did you ever figure this out? Having the same problem…

I had the same problem as yours.
My problem occurred when I tried to change app_voicemail.c and compile asterisk.
I located voicemail, and found app_hasnewvoicemail.so and app_voicemail.so in this path:

/usr/local/asterisk/lib/asterisk/modules/

(I’ve installed freepbx on debian)

I removed these files, and then went to my src asterisk, recompiled it (make & make install). Yeay… Problem solved! :smiley: