Symptoms
After uninstalling the CloudLinux operating system you may find that account creations, or account restores are failing. When the error occurs the cPanel error_log prints the log below:
[YYYY-MM-DD HH:MM:SS +offset] die [Internal Death while parsing [stdin] 2507617] Failed to read data: Is a directory at /usr/local/cpanel/Cpanel/LoadFile/ReadFast.pm line 126.at /usr/local/cpanel/Cpanel/LoadFile/ReadFast.pm line 126.
Cpanel::LoadFile::ReadFast::read_all_fast(GLOB(0x40903a8), "") called at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 550
Cpanel::Config::LoadConfig::_parse_from_filehandle(GLOB(0x40903a8), "comment", "^\\s*[#;]", "delimiter", "=", "regexp_to_preprune", "", "allow_undef_values", ...) called at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 289
Alternatively, you may see a dialogue box when this error occurs in the WHM panel with the following:
Failed: Account Restore Failed: “Account failure: Failed to read data: Is a directory at /usr/local/cpanel/Cpanel/LoadFile/ReadFast.pm line 126. ”
Description
This occurs due to a sub process that runs when the CloudLinux kmod package is removed as part of the CloudLinux uninstall process. This process incorrectly adds a space to the _PACKAGE_EXTENSIONS line within the cPanel package file that causes this issue as it should not exist. We have reported this to CloudLinux at this time.
Workaround
The loop below will go through all of the cPanel packages and remove the erroneous space which will allow account creations, and restores to proceed without error. This will need to be run when logged in as the root user via SSH or WHM's Terminal interface.
for i in /var/cpanel/packages/* ; do echo $i; sed -i 's/_PACKAGE_EXTENSIONS= /_PACKAGE_EXTENSIONS=/g' $i; done
Comments
0 comments
Article is closed for comments.