Hello. I just installed the latest FreePBX 13.0 on centos 7 per the wiki here: Sangoma Documentation and ran into the following when trying to install the module from the webui:
Exception: Hook file '/var/spool/asterisk/incron/firewall.firewall' was not picked up by Incron after 5 seconds. Is it not running?
if (!$deleted) { throw new \Exception("Hook file '$filename' was not picked up by Incron after 5 seconds. Is it not running?"); }
and the related callstack information:
/var/www/html/admin/modules/firewall/Firewall.class.php231
4.
FreePBX\modules\Firewall
runHook
/var/www/html/admin/modules/firewall/OOBE.class.php28
3.
FreePBX\modules\Firewall\OOBE
oobeRequest
/var/www/html/admin/modules/firewall/Firewall.class.php44
2.
FreePBX\modules\Firewall
oobeHook
/var/www/html/admin/libraries/BMO/OOBE.class.php145
1.
OOBE
runModulesOOBE
/var/www/html/admin/libraries/BMO/OOBE.class.php167
0.
OOBE
showOOBE
/var/www/html/admin/config.php446
This shows up when I now try to load the landing page. My systemctl status for incrond is as follows:
[root@pbx ~]# systemctl status incrond
● incrond.service - Inotify System Scheduler
Loaded: loaded (/usr/lib/systemd/system/incrond.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2016-06-16 22:25:01 PDT; 16min ago
Process: 908 ExecStart=/usr/sbin/incrond (code=exited, status=0/SUCCESS)
Main PID: 915 (incrond)
CGroup: /system.slice/incrond.service
└─915 /usr/sbin/incrond
Jun 16 22:25:01 pbx.box incrond[915]: loading table local
Jun 16 22:25:01 pbx.box incrond[915]: loading table sysadmin
Jun 16 22:25:01 pbx.box incrond[915]: loading user tables
Jun 16 22:25:01 pbx.box incrond[915]: loading table for user root
Jun 16 22:25:01 pbx.box incrond[915]: ready to process filesystem events
Jun 16 22:25:01 pbx.box systemd[1]: Started Inotify System Scheduler.
Jun 16 22:25:20 pbx.box incrond[915]: (system::sysadmin) CMD (/usr/bin/sysadmin_manager firewall.firewall)
Jun 16 22:25:42 pbx.box incrond[915]: (system::sysadmin) CMD (/usr/bin/sysadmin_manager firewall.firewall)
Jun 16 22:34:47 pbx.box incrond[915]: (system::sysadmin) CMD (/usr/bin/sysadmin_manager firewall.firewall)
Jun 16 22:40:54 pbx.box incrond[915]: (system::sysadmin) CMD (/usr/bin/sysadmin_manager firewall.firewall)
I had also been having issues with firewalld and extensions trying to register timing out, but resolved the timeout issues when stopping and disabling firewalld. Obviously, I’d rather not have the firewall be down but I was testing to make sure I installed everything else correctly and in the process found that my yate client running in the same subnet can only register with my Centos 7 FreePBX system when firewalld is stopped. I installed the module in hopes of fixing this but installing the module led to my now not being able to access the ui at all.
I had also installed sysadmin using yum install since the module admin was warning me regarding having sysadmin rpm installed prior to installing the firewall module and I’m not sure if this did irreversible damage to the system.
I tried to run “fwconsole uninstall firewall” and when following that with “fwconsole restart” and loading the webui, I’d get:
0
System Admin 13.0.47.3
Copyright 2016 by Schmoozecom, Inc., All rights reserved
By installing, copying, downloading, distributing, inspecting or using
the materials provided herewith, you agree to all of the terms of use as
outlined in our End User Agreement which can be found and reviewed at
www.schmoozecom.com/cmeula
I had tried yum removing sysadmin as well and I still get the same message from the documentroot of the webui.
At this point, I’d be more than OK with reverting back to a working version and wait for a version of the module that will run with CentOS 7 but can’t find info on this.
Thank you.