Author Topic: Asterisk Manager Connection Failure  (Read 3669 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Asterisk Manager Connection Failure
« on: January 17, 2012, 01:44:11 pm »
I'm playing around with the phone section.
I started in freepbx to add some phones and so, everything was working. And after that, i started to learn about how it should be done. Not directly adding the phone in freepbx, but through linuxmce. So i removed the extensions, started to add my phones by linuxmce... And i did somewhere a module update within asterisk...
But now, freepbx won't start anymore.

When i try to 'reload the changed configuration', i get:
Code: [Select]
exit: 1
Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking for /etc/amportal.conf ..OK
Bootstrapping /etc/amportal.conf ..OK
Parsing /etc/amportal.conf ..OK
Parsing /etc/asterisk/asterisk.conf ..OK
Connecting to database..OK
Connecting to Asterisk manager interface..FAILED
[FATAL] Asterisk Manager Connection Failure Failed to connect to the Asterisk manager through port: 5038

1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.

Maybe some additional logs (/var/log/asterisk/full):
Code: [Select]
[Jan 17 13:55:27] NOTICE[31247] cdr.c: CDR simple logging enabled.
[Jan 17 13:55:27] NOTICE[31247] loader.c: 166 modules will be loaded.
[Jan 17 13:55:27] WARNING[31247] loader.c: Error loading module 'format_au.so': /usr/lib/asterisk/modules/format_au.so: cannot
 open shared object file: No such file or directory
[Jan 17 13:55:27] WARNING[31247] loader.c: Error loading module 'format_mp3.so': /usr/lib/asterisk/modules/format_mp3.so: cann
ot open shared object file: No such file or directory
[Jan 17 13:55:27] WARNING[31247] res_musiconhold.c: Cannot open dir /var/lib/asterisk/mohmp3/none/ or dir does not exist
[Jan 17 13:55:27] WARNING[31247] res_config_pgsql.c: Unable to load config res_pgsql.conf
[Jan 17 13:55:27] NOTICE[31247] res_smdi.c: Unable to load config smdi.conf: SMDI disabled
[Jan 17 13:55:27] WARNING[31247] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Jan 17 13:55:27] WARNING[31247] res_odbc.c: Unable to load config file res_odbc.conf
[Jan 17 13:55:27] WARNING[31247] res_jabber.c: No such configuration file jabber.conf
[Jan 17 13:55:27] ERROR[31247] res_jabber.c: JABBER: Failed to load config.
[Jan 17 13:55:27] NOTICE[31247] config.c: Registered Config Engine odbc
[Jan 17 13:55:27] WARNING[31247] res_snmp.c: Could not load res_snmp.conf
[Jan 17 13:55:27] WARNING[31247] loader.c: Error loading module 'format_au.so': /usr/lib/asterisk/modules/format_au.so: cannot
 open shared object file: No such file or directory
[Jan 17 13:55:27] WARNING[31247] loader.c: Module 'format_au.so' could not be loaded.
[Jan 17 13:55:27] WARNING[31247] loader.c: Error loading module 'format_mp3.so': /usr/lib/asterisk/modules/format_mp3.so: cann
ot open shared object file: No such file or directory
[Jan 17 13:55:27] WARNING[31247] loader.c: Module 'format_mp3.so' could not be loaded.
[Jan 17 13:55:27] WARNING[31247] cdr_addon_mysql.c: MySQL database sock file not specified.  Using default
[Jan 17 13:55:27] NOTICE[31247] cdr_addon_mysql.c: MySQL database table not specified.  Assuming "cdr"
[Jan 17 13:55:27] WARNING[31247] chan_sip.c: tos value at line 20 is deprecated.  See doc/ip-tos.txt for more information.
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot disallow unknown format ''
[Jan 17 13:55:27] WARNING[31247] frame.c: Cannot allow unknown format ''
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 59
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 60
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 61
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 1130
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 1131
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: The use of '_.' for an extension is strongly discouraged and can have unexpecte
d behavior.  Please use '_X.' instead at line 1132
[Jan 17 13:55:27] WARNING[31247] pbx_config.c: Unable to include context 'from-internal' in context 'trusted'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'from-did-direct' tries to include nonexistent context 'ext-findmefollow'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'from-pstn' tries to include nonexistent context 'from-pstn-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'from-internal-additional' tries to include nonexistent context 'from-internal
-additional-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'bad-number' tries to include nonexistent context 'bad-number-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blackhole' tries to include nonexistent context 'app-blackhole-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'outrt-001-9_outside' tries to include nonexistent context 'outrt-001-9_outsid
e-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'outbound-allroutes' tries to include nonexistent context 'outbound-allroutes-
custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'ext-did-catchall' tries to include nonexistent context 'ext-did-catchall-cust
om'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'ext-did' tries to include nonexistent context 'ext-did-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'ext-test' tries to include nonexistent context 'ext-test-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-chanspy' tries to include nonexistent context 'app-chanspy-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-zapbarge' tries to include nonexistent context 'app-zapbarge-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-pickup' tries to include nonexistent context 'app-pickup-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-userlogonoff' tries to include nonexistent context 'app-userlogonoff-cust
om'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-unavailable-on' tries to include nonexistent context 'app-cf-unavailab
le-on-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-unavailable-off' tries to include nonexistent context 'app-cf-unavaila
ble-off-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-on' tries to include nonexistent context 'app-cf-on-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-off-any' tries to include nonexistent context 'app-cf-off-any-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-off' tries to include nonexistent context 'app-cf-off-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-busy-on' tries to include nonexistent context 'app-cf-busy-on-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-busy-off-any' tries to include nonexistent context 'app-cf-busy-off-an
y-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-cf-busy-off' tries to include nonexistent context 'app-cf-busy-off-custom
'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'gabcast' tries to include nonexistent context 'gabcast-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-gabcast' tries to include nonexistent context 'app-gabcast-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-dictate-send' tries to include nonexistent context 'app-dictate-send-cust
om'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-dictate-record' tries to include nonexistent context 'app-dictate-record-
custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-recordings' tries to include nonexistent context 'app-recordings-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'cidlookup' tries to include nonexistent context 'cidlookup-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-vmmain' tries to include nonexistent context 'app-vmmain-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-dialvm' tries to include nonexistent context 'app-dialvm-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-pbdirectory' tries to include nonexistent context 'app-pbdirectory-custom
'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-callwaiting-cwon' tries to include nonexistent context 'app-callwaiting-c
won-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-callwaiting-cwoff' tries to include nonexistent context 'app-callwaiting-
cwoff-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blacklist-remove' tries to include nonexistent context 'app-blacklist-rem
ove-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blacklist-last' tries to include nonexistent context 'app-blacklist-last-
custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blacklist-add' tries to include nonexistent context 'app-blacklist-add-cu
stom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blacklist' tries to include nonexistent context 'app-blacklist-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-blacklist-check' tries to include nonexistent context 'app-blacklist-chec
k-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-zoip' tries to include nonexistent context 'app-zoip-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-dnd-on' tries to include nonexistent context 'app-dnd-on-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-dnd-off' tries to include nonexistent context 'app-dnd-off-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-speakingclock' tries to include nonexistent context 'app-speakingclock-cu
stom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-speakextennum' tries to include nonexistent context 'app-speakextennum-cu
stom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-echo-test' tries to include nonexistent context 'app-echo-test-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-directory' tries to include nonexistent context 'app-directory-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-calltrace-perform' tries to include nonexistent context 'app-calltrace-pe
rform-custom'
[Jan 17 13:55:27] WARNING[31247] pbx.c: Context 'app-calltrace' tries to include nonexistent context 'app-calltrace-custom'
[Jan 17 13:55:27] WARNING[31247] cdr_odbc.c: cdr_odbc: Unable to load config for ODBC CDR's: cdr_odbc.conf
[Jan 17 13:55:27] NOTICE[31247] chan_agent.c: No agent configuration found -- agent support disabled
[Jan 17 13:55:27] NOTICE[31247] chan_mgcp.c: Unable to load config mgcp.conf, MGCP disabled
[Jan 17 13:55:27] WARNING[31247] cdr_custom.c: Failed to load configuration file. Module not activated.
[Jan 17 13:55:27] ERROR[31247] chan_gtalk.c: Unable to read config file gtalk.conf. Not loading module.
[Jan 17 13:55:27] WARNING[31247] cdr_pgsql.c: Unable to load config for PostgreSQL CDR's: cdr_pgsql.conf
[Jan 17 13:55:27] NOTICE[31247] func_odbc.c: Unable to load config for func_odbc: func_odbc.conf
[Jan 17 13:55:27] WARNING[31247] cdr_csv.c: unable to load config: cdr.conf
[Jan 17 13:55:27] ERROR[31247] pbx_dundi.c: Unable to load config dundi.conf
[Jan 17 13:55:27] ERROR[31247] res_config_mysql.c: MySQL RealTime: Failed to connect database server  on  (err 2002). Check de
bug for more info.
[Jan 17 13:55:27] WARNING[31247] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
[Jan 17 13:55:27] NOTICE[31247] config.c: Registered Config Engine mysql
[Jan 17 13:55:27] ERROR[31247] chan_zap.c: Unable to load config zapata.conf
[Jan 17 13:55:27] ERROR[31247] app_amd.c: Configuration file amd.conf missing.
[Jan 17 13:55:27] VERBOSE[31247] logger.c:   == No hardware transcoders found.
[Jan 17 13:55:27] VERBOSE[31247] logger.c:   == Platform byte order   : LITTLE ENDIAN
[Jan 17 13:55:27] VERBOSE[31247] logger.c:     -- GLOBAL: Preferred capability (alaw|ulaw)
[Jan 17 13:55:27] WARNING[31247] chan_sccp.c: Unknown param at line 50: park = off
[Jan 17 13:55:27] VERBOSE[31247] logger.c:     -- Added empty speeddial
[Jan 17 13:55:27] WARNING[31247] chan_sccp.c: Wrong device param: device => SEP
[Jan 17 13:55:27] WARNING[31247] chan_sccp.c: Unknown param at line 62: park = off
[Jan 17 13:55:27] VERBOSE[31247] logger.c:     -- Added empty speeddial
[Jan 17 13:55:27] WARNING[31247] chan_sccp.c: Wrong device param: device => SEP

Any idea what i must do???
Guess it has something to do with the update?  >:(
« Last Edit: January 17, 2012, 01:59:25 pm by brononi »
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: Asterisk Manager Connection Failure
« Reply #1 on: January 17, 2012, 03:06:24 pm »
I tried to remove and reinstall freepbx (since not a lot of config is done for the moment), but the end result stays the same...

Code: [Select]
dpkg -r --force-all freepbx
apt-get install freepbx


btw: The version is now " FreePBX 2.3.1.0 "
« Last Edit: January 17, 2012, 03:08:58 pm by brononi »
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE