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