I went to upgrade my version of FreePBX from 2.5.0.1 to the latest 2.6 beta, and everything appeared to install correctly, that is until I hit “Apply Configuration Settings”… then I’m greeting with a “Reload failed because FreePBX could not connect to the asterisk manager interface.”
The front page says this “Critical Error retrieve_conf failed, config not applied”
Any idea what may have gone wrong? Thanks in advance for any help on this!
This is what the log says in the popup:
exit: 0
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…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = amp109
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 144
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Use of undefined constant last - assumed ‘last’ in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 780
PHP Notice: Use of undefined constant last - assumed ‘last’ in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 780
PHP Notice: Use of undefined constant last - assumed ‘last’ in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 780
PHP Notice: Use of undefined constant last - assumed ‘last’ in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 780
PHP Notice: Use of undefined constant last - assumed ‘last’ in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 780
Please update your modules and reload Asterisk by browsing to your server.
1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.
I’ve swapped out retrieve_op_conf_from_mysql.php with the one in that ticket, but am still getting an error, which is different now:
exit: 0
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…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = amp109
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/iaxsettings/functions.inc.php on line 166
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/iaxsettings/functions.inc.php on line 197
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/sipsettings/functions.inc.php on line 167
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/modules/sipsettings/functions.inc.php on line 221
Please update your modules and reload Asterisk by browsing to your server.
1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.
don’t know what the error in dashboard is but the warnings are not important (though I’ve checked in changes to remove them). They will not result in any issue.
My mistake, the error in the dashboard is the same:
retrieve_conf failed, config not applied
Reload failed because FreePBX could not connect to the asterisk manager interface.
Added 1 minute ago
(freepbx.RCONFFAIL)
Is there somewhere else I can look to find some more information?
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…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = amp109
PHP Warning: array_keys(): The first argument should be an array in /var/www/html/admin/extensions.class.php on line 292
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/admin/extensions.class.php on line 292
PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of runtime function name. If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 144
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
Please update your modules and reload Asterisk by visiting http://192.168.11.26/admin
1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.
If you can’t connect to the manager, check your credentials against your config. There are no obvious errors above. The warnings would not have anything to do with the issue, furthermore, if retrieve_conf could not connect to the manger, it should have bailed out earlier on (I thought, would have to check)
ok - well something clearly is not right with your configuration. Make sure your amportal.conf file does not have the credentials wrong. Look at the whole file, it is read from top to bottom and any duplicate will have the last entry used.
Something is not right with your configuration somewhere because there is no issue in 2.6 to get to the manager and there are over 1000 people who have upgraded to 2.6, the forum would be flooded if that were broken.
Look again, or try manually connecting to the manager with those credentials and telnet, and various other diagnostics to figure out what is not computing.
Any ideas? FreePBX has been useless for me for the past week…
exit: 0
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…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = amp111
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = asteriskuser
Added to globals: AMPDBPASS = amp109
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
PHP Notice: Undefined offset: 1 in /var/lib/asterisk/bin/retrieve_op_conf_from_mysql.php on line 133
Please update your modules and reload Asterisk by browsing to your server.
1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.
There is unfortunately no information here of help. the notices are not related.
There seems to be something specific to your installation that you are going to have to troubleshoot. If it is the same issue wrt to manager access, you will need to dig deeper and find out why they are not working.
I realize this does not help you specifically but there are over 1700 beta installations currently and almost no issues being reported, which means that it is generally working very solid and you need to focus on what might be different, customized, etc. on your installation.