Internal Server Error Cpanel 11.62.0.1

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported error number 2 when it ended.
cpsrvd/11.62.0.1 Server at

Please, tell us EasyApache version and extract from /usr/local/cpanel/logs/error_log with this error.
There is more detailed information in it.

Hi the CPANEL was recently release version 62.0.1 i’m running EasyApache 3:

Error Log:
==> cpsrvd: bound to ports
[2017-01-06 19:33:12 +0800] info [xml-api] Loading default httpupdate source
[2017-01-06 19:33:12 +0800] info [xml-api] Syncing version information from httpupdate.cpanel.net/cpanelsync/TIERS.json
[2017-01-06 19:33:16 +0800] info [xml-api] Syncing version information from httpupdate.cpanel.net/cpanelsync/TIERS.json
[2017-01-06 19:33:17 +0800] info [xml-api] Loading default httpupdate source
[2017-01-06 19:33:17 +0800] info [xml-api] Syncing version information from httpupdate.cpanel.net/cpanelsync/TIERS.json
[2017-01-06 19:33:19 +0800] info [xml-api] Successfully verified signature for cpanel (key types: release).
[2017-01-06 19:33:21 +0800] info [xml-api] Successfully verified signature for cpanel (key types: release).
[2017-01-06 19:33:21 +0800] info [xml-api] Using new TIERS.json version file
[2017-01-06 19:33:22 +0800] info [xml-api] Successfully verified signature for cpanel (key types: release).
Can’t locate whmlib.pm in @INC (you may need to install the whmlib module) (@INC contains: /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int /usr/local$
BEGIN failed–compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi line 9.
[2017-01-06 19:33:22 +0800] info [whostmgrd] Internal Server Error: “GET /cpsess2829771687/cgi/addon_cwaf.cgi HTTP/1.1” 500 No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cwaf.cgi): The subprocess reported err$
[2017-01-06 19:35:50 +0800] info [cpsrvd] Internal Server Error: “-” 500 The cPanel Server operation timed out at cpsrvd.pl line 531.

[2017-01-06 19:37:42 +0800] info [changelog] Successfully verified signature for cpanel (key types: release).
[2017-01-06 19:40:50 +0800] info [cpsrvd] Internal Server Error: “-” 500 The cPanel Server operation timed out at cpsrvd.pl line 531.


# cd /
# find . -name whmlib.pm
./usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm

So, this module should be in/usr/local/cpanel/whostmgr/docroot/cgi/ directory.
Try to find it and just copy it in this directory.

Hi akabakov,

no result found same is happened to my second server.

Thanks

To everyone who met this issue!!!
/usr/local/cpanel/whostmgr/docroot/cgi/whmlib.pm is removed in Cpanel 11.62.0.1.
So, please, send me your e-mail in PM and I’ll send this file.

Is this something you can fix before others upgrade to 11.62?

Thank you Akobakov you’re an Angel it works!!!

whmlib is critical software for writing WHM plugins. So I think it was removed in 11.62 (Release Candidate) accidentally and will be added back before release.

Hi Ogeg,

This the response i get from cPanel Development team


The deprecated whmlib.pm module was removed from distribution in cPanel & WHM version 62. Please contact the addon vendor/maker for an updated version that does not depend upon the module.

Hmm…
I have checked module whmlib.pm and found it just collector for some whm modules.
So I will change plugin code and remove whmlib.pm out of it.
Thank you for finding this out so we have time for this fix :slight_smile:

With best regards, Oleg

We’ll release new plugin with fix as soon as possible.

This bug has been fixed in the new CWAF version 2.20.

Please see details:
https://forums.comodo.com/free-modsecurity-rules-comodo-web-application-firewall/client-agent-updates-t101235.0.html;msg849428#msg849428

How do we force an update via the cmd line?

Thanks!

P.S. Just re-ran the client install script and got the WHM interface working again :slight_smile:

for cPanel

# /var/cpanel/cwaf/scripts/update-client.pl

or for other cms

# /usr/local/cwaf/scripts/update-client.pl

Regards, Oleg