Solved: Reload failed because retrieve_conf encountered an error: 1

I’m getting this error when clicking ‘apply config’ in the gui. If I click on more info it shows this:

exit: 1
Whoops\Exception\ErrorException: file_put_contents(/etc/wanpipe/global.conf): failed to open stream: No such file or directory in file /var/www/html/admin/modules/dahdiconfig/modules/sangoma.module on line 92
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/dahdiconfig/modules/sangoma.module:92
  2. Whoops\Run->handleError() :0
  3. file_put_contents() /var/www/html/admin/modules/dahdiconfig/modules/sangoma.module:92
  4. dahdi_sangoma->generateConf() /var/www/html/admin/modules/dahdiconfig/includes/dahdi_cards.class.php:1619
  5. dahdi_cards->write_modules() /var/www/html/admin/modules/dahdiconfig/functions.inc.php:27
  6. dahdiconfig_conf->dahdiconfig_conf() /var/lib/asterisk/bin/retrieve_conf:586

I’m running the freepbx 13 distro. In the past fwconsole restart has worked but not this time, neither does fwconsole chown. I did fwconsole debug and it have me:

The following modules are disabled because they need to be upgraded:
arimanager, endpoint, restapps
You should go to the module admin page to fix these.

but when I went to the admin module page I clicked check for updates and it came back with nothing - it showed all modules were up to date. I did fwconsole ma upgradeall but that gave the following errors:

  1. Unable to install module arimanager:
  • Requires engine asterisk (>= 12), you have: asterisk 11.21.2
  1. Unable to install module endpoint:
  • Failed to install EndPoint Manager due to the following conflicting module(s): Bulk Phone Restart
  1. Failed to install EndPoint Manager due to the following conflicting module(s): Bulk Phone Restart
    Unable to resolve dependencies for module restapps:

I also tried tried restoring a backup but that didn’t work either, I still got the same error. Any help appreciated.

update: omg I solved it. Having seen dahdi stuff in the error details I took a chance and uninstalled dahdi config in the modules admin and then ‘apply config’ worked without the error.