I managed to install Asterisk 16 (detailled version: Asterisk 16.16.1~dfsg-1+deb11u1) and FreePBX 16 (detailled version: 16.0.10.33) on a Raspberry Pi device and the installation just worked fine with some little hurdles to overcome under the Raspberry PI Bullseye OS based on Debian 11.
What strikes me is that many people in this forum seem to run into problems during the FreePBX installation when it comes to the PM2 module setup.
Albeit the introduced functionality with the PM2 module is nice, I do not really need this module for a very small IP telephony server.
Is there any command line or parameter that I can use to completely avoid the installation of the PM2 module and its dependent modules without breaking the FreePBX installation per se?
Deleting those modules will remove Xmpp/WebRTC/Jabber and User Control Panel support. If you plan on using SangomaConnect or anything else that relies on WebRTC you’ll have to reinstall at that time. Other than that you should be fine.
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
That would depend on the modules you have installed if you have no dependent modules installed, fwconsole will reload happily. On the other hand, it needs to be installed even if any dependent loaded module subsequently fails to load
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
root@FreePBX:~# fwconsole ma delete sms
The following error(s) occured:
Specified module not found
root@FreePBX:~# fwconsole ma delete webrtc
The following error(s) occured:
Specified module not found
root@FreePBX:~# fwconsole ma delete ucp
The following error(s) occured:
Specified module not found
root@FreePBX:~# fwconsole ma delete pm2
Module pm2 successfully deleted
Updating Hooks…Done
root@FreePBX:~# 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
root@FreePBX:~# fwconsole ma downloadinstall pm2
No repos specified, using: [standard] from last GUI settings
Downloading module ‘pm2’
Processing pm2
Downloading…
28867/28867 [============================] 100%
Finished downloading
Extracting…Done
Download completed in 3 seconds
Installing/Updating Required Libraries. This may take a while…The following messages are ONLY FOR DEBUGGING. Ignore anything that says ‘WARN’ or is just a warning
…
Finished updating libraries!
Generating CSS…Done
Module pm2 version 16.0.5 successfully installed
Updating Hooks…Done
Chowning directories…Done
root@FreePBX:~# fwconsole reload
Reload Started
Reload Complete
root@FreePBX:~#
Yes, on a Raspberry Pi 4B: Debian 11 (Bullseye) / FreePBX-16 / Asterisk 18.8.0
Everything fully up-to-date.
root@FreePBX:~# fwconsole ma delete pm2
Module pm2 successfully deleted
Updating Hooks…Done
root@FreePBX:~# 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
This is the reason ‘fwconsole reload’ fails without pm2 installed.
It would be much nicer if FastAGI was forced off and not allowed to be enabled if pm2 is not installed instead of having fwconsole throw a cryptic error message.