FreePBX 17 Installation Issues

I attempted to open the following issues at https://issues.freepbx.org/ but that the site is not currently operational (403 Forbidden / Request forbidden by administrative rules). Todd at Sangoma advised me that FreePBX 17 issues are being addressed by the developers on the Community Forum for the time being.

While adding FreePBX 17 support to [PBX] FreePBX for the Raspberry Pi - VOIP Tech Chat | DSLReports Forums, I encountered the following three issues:

Issue #1
A successfull install returns a non-zero result code:

cd /usr/src/freepbx
./start_asterisk start
STARTING ASTERISK
Asterisk Started

./install --no-interaction
Assuming you are Database Root
Checking if SELinux is enabledā€¦Its not (good)!
No /etc/asterisk/asterisk.conf file detected. Installingā€¦Writing /etc/asterisk/asterisk.confā€¦Done
Checking if Asterisk is running and we can talk to it as the ā€˜asteriskā€™ userā€¦Yes. Determined Asterisk version to be: 20.5.2
Checking if NodeJS is installed and we can get a version from itā€¦Yes. Determined NodeJS version to be: 18.19.0
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new installā€¦Yes (No /etc/freepbx.conf file detected)
Database Root installation checking credentials and permissionsā€¦Connected!
Empty asterisk Database going to populate it
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobsā€¦Done
Empty asteriskcdrdb Database going to populate it
Initializing FreePBX Settings
Changing AMPMGRUSER [admin] to match what was given at install time: f426c1e474dbcbc915e5c8a22c4e59d5
Changing AMPMGRPASS [amp111] to match what was given at install time: 6968009c1027a52998ad4a2a4c81e357
Finished initalizing settings
Copying files (this may take a bit)ā€¦
Done
bin is: /var/lib/asterisk/bin
sbin is: /usr/sbin
Symlinking /var/lib/asterisk/bin/fwconsole to /usr/sbin/fwconsole ā€¦Done
Symlinking /var/lib/asterisk/bin/amportal to /usr/sbin/amportal ā€¦Done
Finishing up directory processesā€¦Done!
Running variable replacementā€¦Done
Creating missing #include filesā€¦Done
Setting up Asterisk Manager Connectionā€¦Done
Running through upgradesā€¦
Checking for upgradesā€¦
No further upgrades necessary
Finished upgrades
Setting FreePBX version to 17.0.14.9ā€¦Done
Writing out /etc/amportal.confā€¦Done
Writing out /etc/freepbx.confā€¦Done
Chowning directoriesā€¦
Taking too long? Customize the chown command, See Sangoma Documentation
Setting Permissionsā€¦
Setting base permissionsā€¦Done in 0 seconds
Setting specific permissionsā€¦
Finished setting permissions
Done
Installing frameworkā€¦
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobsā€¦Done
Determined Asterisk version to be: 20.5.2
No directory /var/www/html/admin/modules/framework/amp_conf/htdocs, install script not needed
Generating CSSā€¦Done
Module framework version 17.0.14.9 successfully installed
Updating Hooksā€¦Done
Chowning directoriesā€¦Done
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobsā€¦Done
Determined Asterisk version to be: 20.5.2
No directory /var/www/html/admin/modules/framework/amp_conf/htdocs, install script not needed
Generating CSSā€¦Done
Module framework version 17.0.14.9 successfully installed
Updating Hooksā€¦Done
Chowning directoriesā€¦Done
Done
Building Packaged Scriptsā€¦Done
Trusting FreePBXā€¦Trusted
Taking too long? Customize the chown command, See Sangoma Documentation
Setting Permissionsā€¦
Setting base permissionsā€¦Done in 0 seconds
Setting specific permissionsā€¦
Finished setting permissions
Taking too long? Customize the chown command, See Sangoma Documentation
Setting Permissionsā€¦
Setting base permissionsā€¦Done in 0 seconds
Setting specific permissionsā€¦
Finished setting permissions
Generating default configurationsā€¦
Finished generating default configurations
You have successfully installed FreePBX

echo $?
1

:::::

Issue #2
ā€œfwconsole reloadā€ following the upgrade of framework 17.0.14.9 to 17.0.14.10 produces ā€œUndefined variable $funclistā€:

fwconsole setting MODULEADMINEDGE 1
Changing ā€œMODULEADMINEDGEā€ from [0] to [1]
No repos specified, using: [standard] from last GUI settings

fwconsole ma downloadinstall framework
Downloading module ā€˜frameworkā€™
Processing framework
Downloadingā€¦
Finished downloading
Extractingā€¦Done
Download completed in 7 seconds
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobsā€¦Done
Determined Asterisk version to be: 20.5.2
installing files to /var/www/htmlā€¦done
installing files to /var/lib/asterisk/binā€¦done
installing files to /var/lib/asterisk/agi-binā€¦done
Checking for upgradesā€¦
No further upgrades necessary
framework file install done, removing packages from module
file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
file/directory: /var/www/html/admin/modules/framework/start_asterisk removed successfully
file/directory: /var/www/html/admin/modules/framework/install removed successfully
file/directory: /var/www/html/admin/modules/framework/installlib removed successfully
Compressing Framework CSSā€¦Done
Setting Framework Versionā€¦Done
Running SQL cleanupā€¦Done
Building Packaged Scriptsā€¦Done
Refreshing GPG Keysā€¦Done
Generating CSSā€¦Done
Module framework version 17.0.14.10 successfully installed
Updating Hooksā€¦Done
Chowning directoriesā€¦Done

fwconsole reload
Reload Started

In DialplanHooks.class.php line 157:

Undefined variable $funclist

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

No repos specified, using: [standard] from last GUI settings

:::::

Issue #3
Attempting to disable FreePBX logging results in an error (repeated 12 times):

fwconsole setting AMPDISABLELOG 1
Changing ā€œAMPDISABLELOGā€ from [0] to [1]
Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
Stack trace:

  1. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  2. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  3. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  4. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  5. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  6. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  7. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  8. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  9. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  10. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  11. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  12. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  13. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  14. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  15. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  16. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  17. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  18. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  19. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  20. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  21. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  22. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  23. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  24. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  25. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  26. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  27. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  28. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  29. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  30. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  31. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  32. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  33. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  34. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  35. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  36. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  37. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  38. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  39. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  40. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  41. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  42. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  43. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  44. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  45. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  46. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  47. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  48. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  49. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  50. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  51. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  52. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  53. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  54. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  55. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  56. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  57. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  58. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  59. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  60. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  61. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  62. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  63. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  64. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  65. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  66. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
    Error: Call to undefined method Monolog\Handler\NullHandler::setFormatter() in file /var/www/html/admin/libraries/BMO/Logger.class.php on line 230
    Stack trace:
  67. Error->() /var/www/html/admin/libraries/BMO/Logger.class.php:230
  68. FreePBX\Logger->createLogDriver() /var/www/html/admin/libraries/BMO/Logger.class.php:135
  69. FreePBX\Logger->driverChannelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:108
  70. FreePBX\Logger->channelLogWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:96
  71. FreePBX\Logger->logWrite() /var/www/html/admin/libraries/BMO/Logger.class.php:41
  72. FreePBX\Logger->log() /var/lib/asterisk/bin/fwconsole:137
1 Like

As of 16/1/24 Freepbx 17 still does not install on Debian 12 VM and Ubuntu 24.04 VM.Tested on internet in a box as per @reraikes and A.Holtā€™s internet in a box scripts.Unfortunately new users cannot post links to the issues encountered .
There is a ticket iiab/iiab#3675 in GitHub with background info regarding Freepbx 17 Beta installation.Below is snapshot of recent posts.
I got the same mysterious return code / exit status 1 right after it announced ā€œYou have successfully installed FreePBXā€ :

root@box:~# fwconsole reload
Reload Started

In DialplanHooks.class.php line 157:

Undefined variable $funclist

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

I can see the bug hereā€¦ If you have other modules installed this should go away though that doesnā€™t mean there isnā€™t a bug.

Basically there is just an uninitialized variable because you have no modulesā€¦

PR submitted: Fix uninitialized variable by jfinstrom Ā· Pull Request #93 Ā· FreePBX/framework Ā· GitHub @kgupta @lgaetz

1 Like

from a shell

php -v

Thereā€™s no bug here only a missing step.

cd /usr/local/src
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-17.0-latest-EDGE.tgz
tar zxvf freepbx-17.0-latest-EDGE.tgz
cd /usr/local/src/freepbx/
./start_asterisk start
./install -n

Which the OP did but the next few steps are:

**fwconsole ma installall** (SKIPPED BY OP)
fwconsole reload
fwconsole restart

The OP skipped fwconsole ma install and went straight to the reload/restart which is going to fail.

Thank you all for your help in looking into it
@dicko.I am on PHP 8.2.7

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