Stopped working on CPanel - internal server error

I’m seeing this message on CPanel:

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess exited with status 255.
cpsrvd/11.48.0.11 Server at cppg-wmrw.accessdomain.com

I have tried reinstalling update with no success. I had tried to update to current version via WHM/CPanel & got an error message; then tried upgrade via shell.

Hi

Cause of this error can be found in cpanel log /usr/local/cpanel/logs/error_log
Please send us this log.
Alternatively reinstall (uninstal and then install again) CWAF plugin, but note you excluded rules will be lost.

Try to do the next:

wget --no-check-certificate https://waf.comodo.com/cpanel/cwaf_client_install.sh

bash ./cwaf_client_install.sh – --update

There is something wrong with perl modules, Update will fix it

I’m having the same problem and have tried all these solutions without any success, any other suggestions?

Here is the error log:-

“is_apache” is not exported by the Comodo::CWAF::Main module
“is_litespeed” is not exported by the Comodo::CWAF::Main module
“is_nginx” is not exported by the Comodo::CWAF::Main module
Can’t continue after import errors at /usr/local/cpanel/whostmgr/cgi/cwaf_sharedlib.pl line 7.
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/cgi/cwaf_sharedlib.pl line 7.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 21.
Duplicate logaccess: at /usr/local/cpanel/Cpanel/Server.pm line 420.
Cpanel::Server::logaccess(Cpanel::Server=HASH(0x2c64908)) called at /usr/local/cpanel/Cpanel/Server.pm line 364
Cpanel::Server::body_internal_error(Cpanel::Server=HASH(0x2c64908), 500, “No response from subprocess (/usr/local/cpanel/whostmgr/docro”…) called at /usr/local/cpanel/Cpanel/Server.pm line 312
Cpanel::Server::internal_error(Cpanel::Server=HASH(0x2c64908), “No response from subprocess (/usr/local/cpanel/whostmgr/docro”…) called at cpsrvd.pl line 6165
cpanel::cpsrvd::internal_error(“No response from subprocess (/usr/local/cpanel/whostmgr/docro”…) called at cpsrvd.pl line 9122
cpanel::cpsrvd::handle_subprocess_failure(3, undef, 0, “No response from subprocess (/usr/local/cpanel/whostmgr/docro”…) called at cpsrvd.pl line 7382
cpanel::cpsrvd::subprocess_handler(CPANEL_HIDDEN, IO::Handle=GLOB(0x2c64740), GLOB(0x2c647e8), 0) called at cpsrvd.pl line 7235
cpanel::cpsrvd::cgiHandler(CPANEL_HIDDEN, CPANEL_HIDDEN) called at cpsrvd.pl line 6620
cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1876
cpanel::cpsrvd::dodoc(HASH(0x1f19588)) called at cpsrvd.pl line 1444
cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 1074
cpanel::cpsrvd::script() called at cpsrvd.pl line 432
Internal Server Error: “GET /cpsess7147165441/cgi/addon_cwaf.cgi HTTP/1.1” 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess exited with status 255

For some reason perl modules were not updated during client update.

Please download last client version and run update as root

# wget  https://waf.comodo.com/cpanel/cwaf_client_install.sh
# bash ./cwaf_client_install.sh -- --update

If this not help please submit a ticket to support:
Submit a ticket - Powered by Kayako Help Desk Software
“WAF Support” department.

Also you can check there are our perl modules in /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int/ or not.
It may be another path, depending on your perl version.
If there are no our modules, you can just copy it by:

/bin/cp -avf /var/cpanel/cwaf/modules/CPAN/lib/* /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int/