cPanel CWAF broken after update

Edit: mod can remove this post, i havent seen that the issue was posted already

Hello!

It seems that after v84.0.13 cPanel update the CWAF plugin is broken, accessing it’s control panel returns error 500. Reinstall doesn’t help

Browser error:

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported error number 72,057,594,037,927,935 when it ended. The process dumped a core file.

tail -f /usr/local/cpanel/logs/error_log:

Can’t locate Cpanel/AdvConfig/apache.pm in [at]INC (you may need to install the Cpanel::AdvConfig::apache module) ([at]INC contains: /usr/local/cpanel /var/cpanel/cwaf/modules/CPAN/lib /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/x86_64-linux-64int /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0 /opt/cpanel/perl5/528/site_lib/x86_64-linux-64int /opt/cpanel/perl5/528/site_lib) at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Cpanel.pm line 15.
Compilation failed in require at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/5.28.0/if.pm line 15.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/Platform.pm line 16.
Compilation failed in require at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
BEGIN failed–compilation aborted at /var/cpanel/cwaf/modules/CPAN/lib/Comodo/CWAF/ClientAPI.pm line 17.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 19.
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 19.
[2019-11-21 13:18:18 +0100] info [whostmgrd] Internal Server Error: “GET /cpsess3925626570/cgi/addon_cwaf.cgi HTTP/1.1” 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported error number 72,057,594,037,927,935 when it ended. The process dumped a core file

Server is Centos 7 CloudLinux:

Linux 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Hi
Can you try this?

SSH to your server and go to /var/cpanel/cwaf/tmp/
cd /var/cpanel/cwaf/tmp/
mkdir install
cd install
wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
bash /var/cpanel/cwaf/tmp/install/cwaf_client_install.sh – --update --mode cpanel
cd …
rm -rf install
cd /var/cpanel/cwaf/scripts
./updater.pl
./update-client.pl

Hello!

The interface is now working, but currently the only option under catalog is to edit Global config. Is there any way to edit (via GUI) specific domains as it was possible before?

Best Regards.

Hi
I ll convey this to developer. Thank you for contacting us.

Hi,
the issue is currently in the developers’ backlog and no ETA so far.
We suggest reinstalling plugin in standalone mode.