'fwconsole reload' failed on Web & Console, posssible permsions issue

freepbx
Tags: #<Tag:0x00007f7016f71fd8>

(Mike) #1

Morning

I think i’m running into some permissions issues, but i’m not sure what i need to change or if i need to setup a new user.

This is a new install, services fully restarted.

Web Page returns - ‘fwconsole reload’ failed, config not applied - error on the admin dashboard

When i try and run it manually on console, i get the following.

$ fwconsole reload
PHP Warning:  include_once(/etc/freepbx.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/fwconsole on line 12
PHP Warning:  include_once(): Failed opening '/etc/freepbx.conf' for inclusion (include_path='.:/usr/share/php') in /var/lib/asterisk/bin/fwconsole on line 12
PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Console\Application' not found in /var/www/html/admin/libraries/FWApplication.class.php:11
Stack trace:
#0 /var/lib/asterisk/bin/fwconsole(66): include()
#1 {main}
  thrown in /var/www/html/admin/libraries/FWApplication.class.php on line 11

So i figured maybe i just needed to run it as root, so sudo fwconsole reload gets me the following

Reload Started

In digium_phones.php line 31:

Methods with the same name as their class will not be constructors in a future version of PHP; digium_phones has a deprecated constructor

reload [--json] [--dry-run] [--skip-registry-checks] [--dont-reload-asterisk]

I found a few things online but all it seems to be a little different than what i’m running into.

Any suggestions on where i can go next?


(Mauro) #2

fwconsole chown


(Mike) #3

same errors

~ $ fwconsole chown
PHP Warning:  include_once(/etc/freepbx.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/fwconsole on line 12
PHP Warning:  include_once(): Failed opening '/etc/freepbx.conf' for inclusion (include_path='.:/usr/share/php') in /var/lib/asterisk/bin/fwconsole on line 12
PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Console\Application' not found in /var/www/html/admin/libraries/FWApplication.class.php:11
Stack trace:
#0 /var/lib/asterisk/bin/fwconsole(66): include()
#1 {main}
  thrown in /var/www/html/admin/libraries/FWApplication.class.php on line 11

again tried as sudo and that seemed to work

~ $ sudo fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 12468 [============================]
Finished setting permissions

however running reload give me the same php warning


#4

I would just delete that digium phones module unless you are using it.


(Mike) #5

Looking better now, thank you both. It appears that the current version did not like nodejs, i also had to install node. (npm)

After i disabled the digum phones module like you suggested i was getting this

sudo fwconsole reload
Reload Started

In Self_Helper.class.php line 212:

  Unable to locate the FreePBX BMO Class 'Pm2'A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install pm2 2) fwconsole ma enable pm2

so then i tried running ma install pm2 & reload worked great


(system) closed #6

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.