Freepbx 13 no solution to "Reload failed because retrieve_conf encountered an error: 1"

Hi Guys
i read most of topics for solving the frequent error for
"Reload failed because retrieve_conf encountered an error: 1" in GUI .

none of them were stable .

yes it work for sometime
the after some changes in GUI the errors comes again

i hope i find final solution for that error above .

i already tried the solution below :slight_smile:

fwconsole ma download framework
fwconsole ma install framework

asterisk -rx 'core stop now’
fwconsole start

fwconsole ma upgradeall

amportal stop
chown -R asterisk:asterisk /var/run/asterisk
sed -i ‘/END INIT INFO/a AST_USER=“asterisk”\nAST_GROUP=“asterisk”’ /etc/init.d/asterisk
sed -i ‘s|exit 0|/usr/local/sbin/amportal restart\nexit 0|’ /etc/rc.local
amportal restart
sed -i ‘s|;runuser|runuser|’ /etc/asterisk/asterisk.conf
sed -i ‘s|;rungroup|rungroup|’ /etc/asterisk/asterisk.conf
reboot

again all work

but after sometime of GUI working

the issue comes back

please help us to fix this issue permanently .

cheers

Expand the error. There is more information.

exit: 1
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Exception: Unable to connect to Asterisk through the CLI in file /var/lib/asterisk/bin/retrieve_conf on line 43
Stack trace:

  1. Exception->() /var/lib/asterisk/bin/retrieve_conf:43

problem as it is

When that happens we have to fwconsole reload until we perform an fwconsole restart. Something is not connecting when our server completely reboots, doesn’t happen much anymore now though.

Why you aren’t use amportal command instead of asterisk and other manually restart command?

https://wiki.freepbx.org/display/FPG/amportal+commands