Reload failed because retrieve_conf encountered an error: 1

Hi there,
I’ve recently built a FreePBX using the latest raspbx-06-03-2016 image on a raspberry pi 2 to replace our existing switch that has faults. However, whenever I try to apply a config I get this error.

Reload failed because retrieve_conf encountered an error: 1
exit: 1
Whoops\Exception\ErrorException: mkdir(): No such file or directory in file /var/www/html/admin/libraries/BMO/Media.class.php on line 34
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/Media.class.php:34
  2. Whoops\Run->handleError() :0
  3. mkdir() /var/www/html/admin/libraries/BMO/Media.class.php:34
  4. FreePBX\Media->construct() /var/www/html/admin/libraries/BMO/Self_Helper.class.php:125
  5. FreePBX\Self_Helper->autoLoad() /var/www/html/admin/libraries/BMO/Self_Helper.class.php:37
  6. FreePBX\Self_Helper->get() /var/lib/asterisk/bin/retrieve_conf:40

I have also tried the raspbx-25-01-2016 image and have the exact same issue. Any help would be appreciated.

try running
fwconsole chown

thanks for the suggestion. The permissions are changed, but I still have the same issue

Upgrade all modules. This was fixed a while ago

I’ve built it using the latest image, I’ve run raspbpx-upgrade and I’ve also run the updates in the module administration window. Is there another update tool I should use? Thanks for the help.

Show me the code on line 34 of /var/www/html/admin/libraries/BMO/Media.class.php


Hmmm the final parameter “true” will make it force make the directories if the parent directory doesn’t exist. Looks like this is an issue on the PIs only.

Any recommendations?


I don’t get any errors using this on a Raspberry Pi 1, 2, or 3:


1 Like