CSF Firewall 500 error: Can't locate Cpanel/cPanelFunctions.pm

MikeU

Registered
Oct 12, 2021
2
0
1
San Diego
cPanel Access Level
Root Administrator
I made a change to the number of temporary IPs that can be blocked in my CSF firewall yesterday -- and everything was fine. Went in this mornign to check on it, and received a 500 error. I believe that WHM/CPanel was just updated.

The log shows the following error:

[Tue Oct 12 11:02:12 2021] csf.cgi: Can't locate Cpanel/cPanelFunctions.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf.cgi line 17.


[Tue Oct 12 11:02:12 2021] csf.cgi: BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf.cgi line 17.


[2021-10-12 11:02:12 -0700] warn [whostmgrd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf.cgi) exited with an error (ID 0128320013909651): The subprocess reported error number 2 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 264.


Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x3bfb7a0)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 111


Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x3bfb7a0), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 3059, __CPANEL_HIDDEN__, GLOB(0x3bfba28), __CPANEL_HIDDEN__, ...) called at cpsrvd.pl line 7387


cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 6825


cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 2075


cpanel::cpsrvd::dodoc(HASH(0x14b4048)) called at cpsrvd.pl line 1812


cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 1061


cpanel::cpsrvd::script() called at cpsrvd.pl line 440


------------------------

I can't find any reference to the cPanelFunctions.pm anywhere on my server or in searches. Advice?

Thanks
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,028
313
cPanel Access Level
Root Administrator
Hey there! I have a machine with CSF and I am not seeing any errors in the WHM interface with that tool. You may want to try running this command just to ensure there is nothing missing on the server-side:

Code:
/scripts/check_cpanel_rpms
If that doesn't resolve the issue, reaching out to CSF directly at ConfigServer Technical Support would be the best option as that isn't software we create or distribute on our end.
 

MikeU

Registered
Oct 12, 2021
2
0
1
San Diego
cPanel Access Level
Root Administrator
After doing a reinstall / upgrade of CSF, the problem cleared up. I don't know if this is just my provider, but I had a script csupdate that was in my root directory. After reviewing the script it was set up to update the CSF software. I ran the code, CSF was updated and the CSF config page came back up.