FreePBX 17 upgrade cannot Apply Config in GUI

Installed FreePBX 17, restored backup from FreePBX 16. System online except I cannot Apply Config in the GUI. It fails 100% of the time.
I hop over to the console and it reloads with zero issues.

How can I track this down since it never fails from the console?

Hey Jared!

Does it fail if you run the command as the asterisk user?

sudo -u asterisk fwconsole ...

Yeah, no idea why i did not try that first.

jbusch@FreePBX17:~$ sudo -u asterisk fwconsole reload --verbose
[sudo] password for jbusch:
Reload Started

In utility.functions.php line 123:

  [Exception]
  Can not write to the LESS cache folder at /var/www/html/admin/modules/endpoint/assets/less/cache. Please run (from
  the CLI): fwconsole chown::


Exception trace:
  at /var/www/html/admin/libraries/utility.functions.php:123
 die_freepbx() at /var/www/html/admin/libraries/BMO/Less.class.php:187
 FreePBX\Less->getCachedFile() at /var/www/html/admin/libraries/BMO/Less.class.php:94
 FreePBX\Less->generateModuleStyles() at /var/www/html/admin/libraries/Console/Reload.class.php:547
 FreePBX\Console\Command\Reload->generate_less() at /var/www/html/admin/libraries/Console/Reload.class.php:163
 FreePBX\Console\Command\Reload->reload() at /var/www/html/admin/libraries/Console/Reload.class.php:95
 FreePBX\Console\Command\Reload->execute() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php:312
 Symfony\Component\Console\Command\Command->run() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:1022
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:314
 Symfony\Component\Console\Application->doRun() at /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php:168
 Symfony\Component\Console\Application->run() at /var/lib/asterisk/bin/fwconsole:163

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

Ran chown and now it works. But I ran chown as part of the upgrade also. So no clue what changed on permissions.
image

1 Like

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