Cannot login Error

Hi,

I just tried to login to my freepbx server and I have the following error, any help to try and solve the issue would be appreciated. This error has just come all of a sudden.

Whoops\Exception\ErrorException: file(/etc/asterisk/asterisk.conf): failed to open stream: No such file or directory in file /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php on line 418
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  2. Whoops\Run->handleError() :0
  3. file() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  4. FreePBX\Freepbx_conf->parse_amportal_conf() /var/www/html/admin/bootstrap.php:179
  5. require_once() /etc/freepbx.conf:9
  6. include_once() /var/lib/asterisk/bin/fwconsole:12
    Whoops\Exception\ErrorException: file(/etc/asterisk/asterisk.conf): failed to open stream: No such file or directory in file /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php on line 418
    Stack trace:
  7. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  8. Whoops\Run->handleError() :0
  9. file() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  10. FreePBX\Freepbx_conf->parse_amportal_conf() /var/www/html/admin/bootstrap.php:179
  11. require_once() /etc/freepbx.conf:9
  12. include_once() /var/lib/asterisk/bin/fwconsole:12

Can anyone help?

Please try to restart fwconsole.

Hi James,

Thanks for your reply, I tried that and received the the following message:

[[email protected] ~]# fwconsole restart
Whoops\Exception\ErrorException: file(/etc/asterisk/asterisk.conf): failed to open stream: No such file or directory in file /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php on line 418
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  2. Whoops\Run->handleError() :0
  3. file() /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:418
  4. FreePBX\Freepbx_conf->parse_amportal_conf() /var/www/html/admin/bootstrap.php:179
  5. require_once() /etc/freepbx.conf:9
  6. include_once() /var/lib/asterisk/bin/fwconsole:12
    [[email protected] ~]#

maybe lost some flles. Have you try : fwconsole upgrade?

Thanks, I just ended up doing a reinstall as nothing seemed to work.