I am struggling with this error after an Elastix
upgrade:
exit: 1
[FATAL] Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting
From what I can see the manager is running:
[root@elastix3 asterisk]# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
Asterisk Call Manager/1.1
By all indications the various Astersik Management Portal passwords should match up, in the /etc/amportal.conf
, /etc/asterisk/manager.conf
, and possibly in the GUI.
Selective output of /etc/amportal.conf:
AMPDBHOST=localhost
AMPDBENGINE=mysql
AMPDBUSER=asteriskuser
AMPDBPASS=My_Secret
AMPENGINE=asterisk
AMPMGRUSER=admin
AMPMGRPASS=My_Secret
Selective output of /etc/asterisk/manager.conf
[admin]
secret = My_Secret
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0,192.168.20.0/255.255.255.0
Image of Password Update success
When I access FreePBX directly I also have an indication that there is no communication, see this screenshot:
But it's not correct, because Asterisk is online and working.
I would like some ideas on what to try next as I am at a complete loss. With regards to the botched upgrade, I have logged a separate Server Fault post here:
In summary when I did the upgrade Yum succeeded apart from a few packages.
Another anomaly of the upgrade is that I had to run amportal a ma install module_name
for many different modules (one would have expected this to happen automatically).
Fixing the GUI is a priority but at least for now I suspect all is not lost because I think doing this command reloads the config in the command line:
amportal module_admin reload
This condition happens when ari or ampm passwords were recently changed and it contains some illegal characters that asterisk would not recognize like semicolons. It is safe to use passwords including letters, numbers and underscore. Just check /etc/asterisk/manager.conf and /var/www/html/recordings/includes/main.conf.php for passwords.
I had the same problem. Turned out that the
/etc/asterisk/manager.conf
file had the wrong entry forbindaddr
. Changed it frombindaddr = MY.IPA.DDR.ESS
tobindaddr = 127.0.0.1
. After that, went into asterisk CLI with# asterisk -r
and executedCLI> core reload
, then exited out and did# amportal a r
. After that, it worked.