unable to update cPanel due corrupt perl modules

luisorozcomx

Registered
Feb 12, 2021
1
0
1
Mexico
cPanel Access Level
Root Administrator
hi, this is my first post.

I'm new on cPanel & WHM management and i'm unable to update WHM; then i tried into ssh as root and got "(ERROR): Core cpanel-perl modules have been found to be corrupt. Attempting to correct this."

Then i read this article ((ERROR): Core cpanel-perl modules have been found to be corrupt. Attempting to correct this. ) and run the command: /scripts/check_cpanel_rpm --fix

Then the scripts start to run but it run into a infinite loop performing the same rpm update/install. Here is a part of the log, as i said, it never stops.

Code:
[root@dev ~]# /scripts/check_cpanel_rpms --fix

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

    LANGUAGE = (unset),

    LC_ALL = (unset),

    LC_CTYPE = "UTF-8",

    LANG = "en_US.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

2021-02-13 02:37:33   52 (ERROR): Core cpanel-perl modules have been found to be corrupt. Attempting to correct this.

2021-02-13 02:37:33  533 ( INFO): CentOS 7 (Linux) detected!

2021-02-13 02:37:33  428 ( INFO): Downloading GPG public key, cPanelPublicKey.asc

2021-02-13 02:37:33  303 (DEBUG):   Retrieving https://securedownloads.cpanel.net/cPanelPublicKey.asc

JSON::XS is missing the no_set_utf8 flag at /usr/local/cpanel/Cpanel/JSON.pm line 172.

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512.asc

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512

2021-02-13 02:37:34  350 ( INFO): FILE - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512

2021-02-13 02:37:34  351 ( INFO): SIG  - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512.asc

2021-02-13 02:37:34  352 ( INFO): URL  - /RPM/11.86/centos/7/x86_64/rpm.sha512

2021-02-13 02:37:34  397 ( INFO): Valid signature for /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512 (/usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512)

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-common-sense-3.74-1.cp1186.noarch.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-5.30.0-5.cp1186.x86_64.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-CDB_File-0.99-1.cp1186.x86_64.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-SigGuard-0.15-1.cp1186.noarch.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-JSON-XS-3.04-1.cp1186.x86_64.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Compress-Raw-Lzma-2.087-1.cp1186.x86_64.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Proc-FastSpawn-1.2-1.cp1186.x86_64.rpm

2021-02-13 02:37:34  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Try-Tiny-0.30-1.cp1186.noarch.rpm

Preparing...                          2021-02-13 02:37:35  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Types-Serialiser-1.0-1.cp1186.noarch.rpm

################################# [100%]

Updating / installing...

   1:cpanel-perl-530-5.30.0-5.cp1186  2021-02-13 02:37:35  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-YAML-Syck-1.31-1.cp1186.x86_64.rpm

2021-02-13 02:37:35  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Net-SSLeay-1.88-1.cp1186.x86_64.rpm

2021-02-13 02:37:35  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-Socket-SSL-2.066-4.cp1186.noarch.rpm

################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:cpanel-perl-530-common-sense-3.74################################# [  9%]

   2:cpanel-perl-530-Types-Serialiser-################################# [ 18%]

   3:cpanel-perl-530-Net-SSLeay-1.88-1################################# [ 27%]

   4:cpanel-perl-530-IO-Socket-SSL-2.0################################# [ 36%]

   5:cpanel-perl-530-JSON-XS-3.04-1.cp################################# [ 45%]

   6:cpanel-perl-530-YAML-Syck-1.31-1.################################# [ 55%]

   7:cpanel-perl-530-Try-Tiny-0.30-1.c################################# [ 64%]

   8:cpanel-perl-530-Proc-FastSpawn-1.################################# [ 73%]

   9:cpanel-perl-530-Compress-Raw-Lzma################################# [ 82%]

  10:cpanel-perl-530-IO-SigGuard-0.15-################################# [ 91%]

  11:cpanel-perl-530-CDB_File-0.99-1.c################################# [100%]

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:

    LANGUAGE = (unset),

    LC_ALL = (unset),

    LC_CTYPE = "UTF-8",

    LANG = "en_US.UTF-8"

    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

2021-02-13 02:37:39   52 (ERROR): Core cpanel-perl modules have been found to be corrupt. Attempting to correct this.

2021-02-13 02:37:39  533 ( INFO): CentOS 7 (Linux) detected!

2021-02-13 02:37:39  428 ( INFO): Downloading GPG public key, cPanelPublicKey.asc

2021-02-13 02:37:39  303 (DEBUG):   Retrieving https://securedownloads.cpanel.net/cPanelPublicKey.asc

JSON::XS is missing the no_set_utf8 flag at /usr/local/cpanel/Cpanel/JSON.pm line 172.

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512.asc

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512

2021-02-13 02:37:39  350 ( INFO): FILE - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512

2021-02-13 02:37:39  351 ( INFO): SIG  - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512.asc

2021-02-13 02:37:39  352 ( INFO): URL  - /RPM/11.86/centos/7/x86_64/rpm.sha512

2021-02-13 02:37:39  397 ( INFO): Valid signature for /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512 (/usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512)

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-common-sense-3.74-1.cp1186.noarch.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-5.30.0-5.cp1186.x86_64.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-CDB_File-0.99-1.cp1186.x86_64.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-SigGuard-0.15-1.cp1186.noarch.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-JSON-XS-3.04-1.cp1186.x86_64.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Compress-Raw-Lzma-2.087-1.cp1186.x86_64.rpm

2021-02-13 02:37:39  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Proc-FastSpawn-1.2-1.cp1186.x86_64.rpm

2021-02-13 02:37:40  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Try-Tiny-0.30-1.cp1186.noarch.rpm

2021-02-13 02:37:40  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Types-Serialiser-1.0-1.cp1186.noarch.rpm

Preparing...                          2021-02-13 02:37:40  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-YAML-Syck-1.31-1.cp1186.x86_64.rpm

################################# [100%]

Updating / installing...

   1:cpanel-perl-530-5.30.0-5.cp1186  2021-02-13 02:37:40  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Net-SSLeay-1.88-1.cp1186.x86_64.rpm

2021-02-13 02:37:40  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-Socket-SSL-2.066-4.cp1186.noarch.rpm

################################# [100%]

Preparing...                          ################################# [100%]

Updating / installing...

   1:cpanel-perl-530-common-sense-3.74################################# [  9%]

   2:cpanel-perl-530-Types-Serialiser-################################# [ 18%]

   3:cpanel-perl-530-Net-SSLeay-1.88-1################################# [ 27%]

   4:cpanel-perl-530-IO-Socket-SSL-2.0################################# [ 36%]

   5:cpanel-perl-530-JSON-XS-3.04-1.cp################################# [ 45%]

   6:cpanel-perl-530-YAML-Syck-1.31-1.################################# [ 55%]

   7:cpanel-perl-530-Try-Tiny-0.30-1.c################################# [ 64%]

   8:cpanel-perl-530-Proc-FastSpawn-1.################################# [ 73%]

   9:cpanel-perl-530-Compress-Raw-Lzma################################# [ 82%]

  10:cpanel-perl-530-IO-SigGuard-0.15-################################# [ 91%]

  11:cpanel-perl-530-CDB_File-0.99-1.c################################# [100%]
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there! I'm sorry to hear about this issue with perl on the system. Were you also able to run the "/scripts/fix-cpanel-perl" command? While it usually doesn't give any output, that may help get things working on this machine.

If not, feel free to submit a ticket to our support team and we can check the server directly for you.