FreePBX | Register | Issues | Wiki | Portal | Support

Bucket API initialization failed. ASTERISK EXITING!

asterisk
Tags: #<Tag:0x00007f74a1dd1ba8>

(Michael F) #1

I restarted my FreePBX server this morning. The GUI would load, but it would say Can Not Connect to Asterisk in the corner. I can’t get it back up. This is the output of asterisk -vvvc:

[root@freepbx Default_backup]# asterisk -vvvc
Asterisk 13.22.0, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer <markster...>
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.
=========================================================================
[ Initializing Custom Configuration Options ]
Couldn't find manager DBGet in XML documentation
Couldn't find manager DBGet in XML documentation
  == Manager registered action DBGet
Couldn't find manager DBPut in XML documentation
Couldn't find manager DBPut in XML documentation
  == Manager registered action DBPut
Couldn't find manager DBDel in XML documentation
Couldn't find manager DBDel in XML documentation
  == Manager registered action DBDel
Couldn't find manager DBDelTree in XML documentation
Couldn't find manager DBDelTree in XML documentation
  == Manager registered action DBDelTree
PBX UUID: eea80e2f-12e0-4395-abb7-4081b8646cd7
  == Registered 'audio' codec 'g723' at sample rate '8000' with id '1'
  == Created cached format with name 'g723'
  == Registered 'audio' codec 'ulaw' at sample rate '8000' with id '2'
  == Created cached format with name 'ulaw'
  == Registered 'audio' codec 'alaw' at sample rate '8000' with id '3'
  == Created cached format with name 'alaw'
  == Registered 'audio' codec 'gsm' at sample rate '8000' with id '4'
  == Created cached format with name 'gsm'
  == Registered 'audio' codec 'g726' at sample rate '8000' with id '5'
  == Created cached format with name 'g726'
  == Registered 'audio' codec 'g726aal2' at sample rate '8000' with id '6'
  == Created cached format with name 'g726aal2'
  == Registered 'audio' codec 'adpcm' at sample rate '8000' with id '7'
  == Created cached format with name 'adpcm'
  == Registered 'audio' codec 'slin' at sample rate '8000' with id '8'
  == Created cached format with name 'slin'
  == Registered 'audio' codec 'slin' at sample rate '12000' with id '9'
  == Created cached format with name 'slin12'
  == Registered 'audio' codec 'slin' at sample rate '16000' with id '10'
  == Created cached format with name 'slin16'
  == Registered 'audio' codec 'slin' at sample rate '24000' with id '11'
  == Created cached format with name 'slin24'
  == Registered 'audio' codec 'slin' at sample rate '32000' with id '12'
  == Created cached format with name 'slin32'
  == Registered 'audio' codec 'slin' at sample rate '44100' with id '13'
  == Created cached format with name 'slin44'
  == Registered 'audio' codec 'slin' at sample rate '48000' with id '14'
  == Created cached format with name 'slin48'
  == Registered 'audio' codec 'slin' at sample rate '96000' with id '15'
  == Created cached format with name 'slin96'
  == Registered 'audio' codec 'slin' at sample rate '192000' with id '16'
  == Created cached format with name 'slin192'
  == Registered 'audio' codec 'lpc10' at sample rate '8000' with id '17'
  == Created cached format with name 'lpc10'
  == Registered 'audio' codec 'g729' at sample rate '8000' with id '18'
  == Created cached format with name 'g729'
  == Registered 'audio' codec 'speex' at sample rate '8000' with id '19'
  == Created cached format with name 'speex'
  == Registered 'audio' codec 'speex' at sample rate '16000' with id '20'
  == Created cached format with name 'speex16'
  == Registered 'audio' codec 'speex' at sample rate '32000' with id '21'
  == Created cached format with name 'speex32'
  == Registered 'audio' codec 'ilbc' at sample rate '8000' with id '22'
  == Created cached format with name 'ilbc'
  == Registered 'audio' codec 'g722' at sample rate '16000' with id '23'
  == Created cached format with name 'g722'
  == Registered 'audio' codec 'siren7' at sample rate '16000' with id '24'
  == Created cached format with name 'siren7'
  == Registered 'audio' codec 'siren14' at sample rate '32000' with id '25'
  == Created cached format with name 'siren14'
  == Registered 'audio' codec 'testlaw' at sample rate '8000' with id '26'
  == Created cached format with name 'testlaw'
  == Registered 'audio' codec 'g719' at sample rate '48000' with id '27'
  == Created cached format with name 'g719'
  == Registered 'audio' codec 'opus' at sample rate '48000' with id '28'
  == Created cached format with name 'opus'
  == Registered 'image' codec 'jpeg' at sample rate '0' with id '29'
  == Created cached format with name 'jpeg'
  == Registered 'image' codec 'png' at sample rate '0' with id '30'
  == Created cached format with name 'png'
  == Registered 'video' codec 'h261' at sample rate '1000' with id '31'
  == Created cached format with name 'h261'
  == Registered 'video' codec 'h263' at sample rate '1000' with id '32'
  == Created cached format with name 'h263'
  == Registered 'video' codec 'h263p' at sample rate '1000' with id '33'
  == Created cached format with name 'h263p'
  == Registered 'video' codec 'h264' at sample rate '1000' with id '34'
  == Created cached format with name 'h264'
  == Registered 'video' codec 'mpeg4' at sample rate '1000' with id '35'
  == Created cached format with name 'mpeg4'
  == Registered 'video' codec 'vp8' at sample rate '1000' with id '36'
  == Created cached format with name 'vp8'
  == Registered 'video' codec 'vp9' at sample rate '1000' with id '37'
  == Created cached format with name 'vp9'
  == Registered 'text' codec 'red' at sample rate '0' with id '38'
  == Created cached format with name 'red'
  == Registered 'text' codec 't140' at sample rate '0' with id '39'
  == Created cached format with name 't140'
  == Registered 'audio' codec 'none' at sample rate '8000' with id '40'
  == Created cached format with name 'none'
  == Registered 'audio' codec 'silk' at sample rate '8000' with id '41'
  == Created cached format with name 'silk8'
  == Registered 'audio' codec 'silk' at sample rate '12000' with id '42'
  == Created cached format with name 'silk12'
  == Registered 'audio' codec 'silk' at sample rate '16000' with id '43'
  == Created cached format with name 'silk16'
  == Registered 'audio' codec 'silk' at sample rate '24000' with id '44'
  == Created cached format with name 'silk24'
  == Sorcery registered wizard 'bucket'
  == Sorcery registered wizard 'bucket_file'
Cannot update type 'bucket' in module 'core' because it has no existing documentation!
Failed to register 'bucket' object type in Bucket sorcery
Bucket API initialization failed.  ASTERISK EXITING!
  == Manager unregistered action DBGet
  == Manager unregistered action DBPut
  == Manager unregistered action DBDel
  == Manager unregistered action DBDelTree

Can someone point me in the right direction? I have spent hours Googling with no resolution. Thank you.


(Chris Dolese) #2

closest i can find suggest missing documentation files
https://issues.asterisk.org/jira/browse/ASTERISK-25424 ( Last post )

run this …

ll /var/lib/asterisk/documentation

do you have any files in this directory ? who owns them ?

if its a freepbx distro system you can try asterisk-version-switch from command line as well to see if that lays those files down for you - choose whatever version you like and let it reinstall the packages


(Michael F) #3

Chris,

[root@freepbx ~]# ll /var/lib/asterisk/documentation
total 1104
-rw-r–r-- 1 asterisk asterisk 5563 Jul 25 2018 appdocsxml.dtd
-rw-r–r-- 1 asterisk asterisk 6994 Jul 25 2018 appdocsxml.xslt
-rw-r–r-- 1 asterisk asterisk 3660 Dec 11 2017 codec_opus_config-en_US.xml
-rw-r–r-- 1 asterisk asterisk 1105952 Jul 25 2018 core-en_US.xml
drw-r–r--. 6 asterisk asterisk 83 Jul 25 2018 thirdparty

It is FreePBX. I rad the version switch, chose 16, and when Asterisk tried starting back up, I received the same error:

Starting Asterisk…
[--------------->------------] 11 secs
In Start.class.php line 187:
Unable to connect to Asterisk. Did it start?
Restart [-i|–immediate] [–] []…
Regenerate FreePBX Dialplan…
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1
Chowning all needed files
Taking too long? Customize the chown command, See xxx/display/FOP/FreePBX+Chown+Conf
Setting Permissions…
Setting base permissions…Done
Setting specific permissions…
41249 [============================]
Finished setting permissions
[root@freepbx ~]#

Running /var/lib/asterisk/bin/retrieve_conf outputs:
Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Unable to connect to Asterisk through the CLI
Unable to continue. Asterisk is not connected in /var/www/html/admin/libraries/php-asmanager.php on line 242
#0 /var/www/html/admin/libraries/php-asmanager.php(591): AGI_AsteriskManager->send_request(‘Command’, Array)
#1 /var/www/html/admin/libraries/php-asmanager.php(1653): AGI_AsteriskManager->Command('database show ')
#2 /var/www/html/admin/libraries/php-asmanager.php(1622): AGI_AsteriskManager->parseAsteriskDatabase()
#3 /var/www/html/admin/libraries/php-asmanager.php(210): AGI_AsteriskManager->database_show()
#4 /var/lib/asterisk/bin/retrieve_conf(69): AGI_AsteriskManager->LoadAstDB()
#5 {main}

Thank you for the help. It’s greatly appreciated.

  • Michael

(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.