New install, errors galore. Help!

I had a reasonably solid Asterisk v1.6.0 installation, but have been battling to get FFA going, so decided to upgrade to 1.6.2 and see if it was any easier there. Oh what fun. Now on startup I get this:

[code]> asterisk -gc
Asterisk 1.6.2.0~rc2-0ubuntu1.1, Copyright © 1999 - 2009 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
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.

This package has been modified for the Ubuntu distribution. Please report
all bugs to https://bugs.edge.launchpad.net/ubuntu/+source/asterisk/+filebug

[ Booting…
[ Reading Master Configuration ]
[ Initializing Custom Configuration Options ]
[Dec 28 23:40:43] NOTICE[9158]: loader.c:1050 load_modules: 1 modules will be loaded.
.[Dec 28 23:40:43] NOTICE[9158]: cdr.c:1473 do_reload: CDR simple logging enabled.
[Dec 28 23:40:43] NOTICE[9158]: loader.c:1050 load_modules: 208 modules will be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘cdr_adaptive_odbc.so’: /usr/lib/asterisk/modules/cdr_adaptive_odbc.so: undefined symbol: ast_odbc_request_obj
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘app_speech_utils.so’: /usr/lib/asterisk/modules/app_speech_utils.so: undefined symbol: ast_speech_start
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘res_agi.so’: /usr/lib/asterisk/modules/res_agi.so: undefined symbol: ast_speech_start
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘func_odbc.so’: /usr/lib/asterisk/modules/func_odbc.so: undefined symbol: SQLFetch
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘res_indications.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘res_indications.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘res_indications.so’ could not be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘pbx_ael.so’: /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ast_compile_ael2
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘app_voicemail_odbc.so’: /usr/lib/asterisk/modules/app_voicemail_odbc.so: undefined symbol: ast_odbc_request_obj
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘res_fax_digium.so’: /usr/lib/asterisk/modules/res_fax_digium.so: undefined symbol: ast_fax_state_to_str
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘res_config_odbc.so’: /usr/lib/asterisk/modules/res_config_odbc.so: undefined symbol: ast_odbc_clear_cache
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘chan_gtalk.so’: /usr/lib/asterisk/modules/chan_gtalk.so: undefined symbol: ast_aji_get_client
[Dec 28 23:40:43] WARNING[9158]: loader.c:392 load_dynamic_module: Error loading module ‘chan_jingle.so’: /usr/lib/asterisk/modules/chan_jingle.so: undefined symbol: ast_aji_get_client
.[Dec 28 23:40:43] NOTICE[9158]: res_odbc.c:1687 load_module: res_odbc loaded.
…[Dec 28 23:40:43] NOTICE[9158]: res_fax.c:1838 load_module: Generic FAX application module version 1.6.2.0_1.1.6, Copyright © 2008-2009 Digium, Inc.
[Dec 28 23:40:43] NOTICE[9158]: res_fax.c:1841 load_module: This module is supplied under a commercial license granted by Digium, Inc.
[Dec 28 23:40:43] NOTICE[9158]: res_fax.c:1842 load_module: Please see the full license text supplied by the accompanying
[Dec 28 23:40:43] NOTICE[9158]: res_fax.c:1843 load_module: “register” utility, or ask for a copy from Digium.
[Dec 28 23:40:43] NOTICE[9158]: res_fax.c:1653 set_config: Configuration file ‘res_fax.conf’ not found, using default options.
.[Dec 28 23:40:43] ERROR[9158]: res_config_sqlite.c:743 load_config: Unable to load res_config_sqlite.conf
[Dec 28 23:40:43] WARNING[9158]: res_config_pgsql.c:1343 parse_config: PostgreSQL RealTime: no requirements setting found, using ‘warn’ as default.
[Dec 28 23:40:43] ERROR[9158]: res_config_pgsql.c:1414 pgsql_reconnect: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1:
[Dec 28 23:40:43] WARNING[9158]: res_config_pgsql.c:1367 parse_config: PostgreSQL RealTime: Couldn’t establish connection. Check debug.
[Dec 28 23:40:43] NOTICE[9158]: config.c:1968 ast_config_engine_register: Registered Config Engine pgsql
.[Dec 28 23:40:43] WARNING[9158]: res_config_ldap.c:1591 parse_config: No directory user found, anonymous binding as default.
[Dec 28 23:40:43] ERROR[9158]: res_config_ldap.c:1616 parse_config: No directory URL or host found.
[Dec 28 23:40:43] NOTICE[9158]: res_config_ldap.c:1510 load_module: Cannot load LDAP RealTime driver.
…[Dec 28 23:40:43] NOTICE[9158]: res_smdi.c:1361 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘app_pickupchan.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘app_pickupchan.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘app_pickupchan.so’ could not be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘test_skel.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘test_skel.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘test_skel.so’ could not be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘app_skel.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘app_skel.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘app_skel.so’ could not be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘chan_features.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘chan_features.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘chan_features.so’ could not be loaded.
[Dec 28 23:40:43] WARNING[9158]: loader.c:716 inspect_module: Module ‘codec_ilbc.so’ was not compiled with the same compile-time options as this version of Asterisk.
[Dec 28 23:40:43] WARNING[9158]: loader.c:717 inspect_module: Module ‘codec_ilbc.so’ will not be initialized as it may cause instability.
[Dec 28 23:40:43] WARNING[9158]: loader.c:800 load_resource: Module ‘codec_ilbc.so’ could not be loaded.
…[Dec 28 23:40:43] ERROR[9158]: res_clialiases.c:186 load_config: res_clialiases configuration file ‘cli_aliases.conf’ not found
…[Dec 28 23:40:43] WARNING[9158]: app_voicemail_imap.c:1770 messagecount: IMAP user not set for mailbox 6000
[Dec 28 23:40:43] WARNING[9158]: app_voicemail_imap.c:1770 messagecount: IMAP user not set for mailbox 6001
[Dec 28 23:40:43] WARNING[9158]: app_voicemail_imap.c:1770 messagecount: IMAP user not set for mailbox 6002
…[Dec 28 23:40:43] WARNING[9158]: cdr_sqlite.c:178 load_module: This module has been marked deprecated in favor of using cdr_sqlite3_custom. (May be removed after Asterisk 1.6)
…[Dec 28 23:40:43] NOTICE[9158]: chan_skinny.c:7062 config_load: Configuring skinny from skinny.conf
…[Dec 28 23:40:43] NOTICE[9158]: config.c:1968 ast_config_engine_register: Registered Config Engine curl
…[Dec 28 23:40:43] WARNING[9158]: pbx.c:5048 ast_register_application2: Already have an application ‘VoiceMail’
[Dec 28 23:40:43] WARNING[9158]: pbx.c:5048 ast_register_application2: Already have an application ‘VoiceMailMain’
[Dec 28 23:40:43] WARNING[9158]: pbx.c:5048 ast_register_application2: Already have an application ‘MailboxExists’
[Dec 28 23:40:43] WARNING[9158]: pbx.c:5048 ast_register_application2: Already have an application ‘VMAuthenticate’
[Dec 28 23:40:43] ERROR[9158]: pbx.c:3290 __ast_custom_function_register: Function MAILBOX_EXISTS already registered.
[/code]
if I try to start with “safe_asterisk”, I get a never-ending loop of:

Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk. which I know sometimes means you’re trying to run more than one copy, but this is not the case here.ps -ef | grep asteriskshows nothing running.

What did I break? I have a feeling there may be some detritus left over from the previous install - I’m happy to clean off and start again, but which paths should I make sure are clear before installing again?

I would try delete all the libraries in the /usr/lib/asterisk/modules directory and build everything again, because most of the warnings shown are related to modules loading.

Cheers.

Marco Bruni
www.marcobruni.net

I uninstalled, then killed all instances of any folder or file with “asterisk” in it, including /usr/lib/asterisk and started over. Same result. I have a feeling the problem may be a bad build in the apt repository for Ubuntu.

I’m lucky enough not to be in a production environment just yet, so I’m about to nuke the box, reinstall Ubuntu clean and try again. Maybe this time I’ll grab 1.6.2 directly and do a proper build! Wish me luck, I’ll report back progress.