SOLVED Error updating cPanel RPM issue

Nile Youth

Active Member
Apr 2, 2015
26
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
Hello every body

can any one help me each time I try to make update I got error

this is update log hope to help how can I solve it

- Removed output -

I try to run : /usr/local/cpanel/scripts/check_cpanel_rpms --fix

but I got missing rpm:
MySQL56-client-5.6.38-1.cp1162
MySQL56-devel-5.6.38-1.cp1162
MySQL56-server-5.6.38-1.cp1162
MySQL56-shared-5.6.38-1.cp1162
MySQL56-test-5.6.38-1.cp1162
compat-MySQL50-shared-5.0.96-4.cp1136
compat-MySQL51-shared-5.1.73-1.cp1150
every time I run it got the same missing with error:

[2018-03-07 19:12:06 +0200] W Error Code: 7
[2018-03-07 19:12:06 +0200] Hooks system enabled.
[2018-03-07 19:12:06 +0200] Checking for and running RPM::Versions 'post' hooks for any RPMs about to be installed
[2018-03-07 19:12:06 +0200] All required 'post' hooks have been run
[2018-03-07 19:12:06 +0200] Restoring service monitoring.


can any one help?? thanks a lot for you all
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

The removed error logs indicate you may have some duplicate RPMs installed on the system. Try running the following command to see if it removes the duplicates:

Code:
/scripts/autorepair fix_duplicate_cpanel_rpms
Then, update YUM via the following command:

Code:
yum update
Let us know if this helps.

Thank you.
 

Nile Youth

Active Member
Apr 2, 2015
26
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
Hello,

The removed error logs indicate you may have some duplicate RPMs installed on the system. Try running the following command to see if it removes the duplicates:

Code:
/scripts/autorepair fix_duplicate_cpanel_rpms
Then, update YUM via the following command:

Code:
yum update
Let us know if this helps.

Thank you.
I made it but still update didn't finished with the same error
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Try running the following command as well:

Code:
package-cleanup --cleandupes
If that doesn't help, let us know the output from the below commands:

Code:
mysql -V
grep mysql-version /var/cpanel/cpanel.config
rpm -qa|grep MySQL
rpm -qa|grep MariaDB
Thank you.
 

Nile Youth

Active Member
Apr 2, 2015
26
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
Hello,

Try running the following command as well:

Code:
package-cleanup --cleandupes
If that doesn't help, let us know the output from the below commands:

Code:
mysql -V
grep mysql-version /var/cpanel/cpanel.config
rpm -qa|grep MySQL
rpm -qa|grep MariaDB
Thank you.
I try but didn't work this is the output:

[email protected] [~]# mysql -V
mysql Ver 14.14 Distrib 5.6.39, for Linux (x86_64) using EditLine wrapper
[email protected] [~]# grep mysql-version /var/cpanel/cpanel.config
mysql-version=5.6
[email protected] [~]# rpm -qa|grep MySQL
alt-python27-MySQL-mysql5.1-1.2.5-1.el7.cloudlinux.2.x86_64
alt-python27-MySQL-meta-1-4.el7.x86_64
cl-MySQL56-server-5.6.39-1.el7.cloudlinux.x86_64
alt-python27-MySQL-percona5.7-1.2.5-1.el7.cloudlinux.3.x86_64
alt-python27-MySQL-mysql5.7-1.2.5-1.el7.cloudlinux.2.x86_64
alt-python27-MySQL-mariadb102-1.2.5-1.el7.cloudlinux.3.x86_64
alt-python27-MySQL-percona5.5-1.2.5-1.el7.cloudlinux.2.x86_64
cl-MySQL56-client-5.6.39-1.el7.cloudlinux.x86_64
alt-python27-MySQL-mariadb101-1.2.5-1.el7.cloudlinux.2.x86_64
alt-python27-MySQL-common-1.2.5-1.el7.cloudlinux.2.x86_64
cl-MySQL-meta-5.6.39-2.el7.cloudlinux.x86_64
alt-python27-MySQL-mysql5.5-1.2.5-1.el7.cloudlinux.2.x86_64
cl-MySQL56-shared-5.6.39-1.el7.cloudlinux.x86_64
alt-python27-MySQL-mysql5.0-1.2.5-1.el7.cloudlinux.2.x86_64
cpanel-perl-524-MySQL-Diff-0.50-1.cp1162.x86_64
alt-python27-MySQL-mysql5.6-1.2.5-1.el7.cloudlinux.2.x86_64
cl-MySQL56-devel-5.6.39-1.el7.cloudlinux.x86_64
cl-MySQL-meta-client-5.6.39-2.el7.cloudlinux.x86_64
alt-python27-MySQL-percona5.6-1.2.5-1.el7.cloudlinux.2.x86_64
cl-MySQL-meta-devel-5.6.39-2.el7.cloudlinux.x86_64
alt-python27-MySQL-mariadb10-1.2.5-1.el7.cloudlinux.2.x86_64
[email protected] [~]# rpm -qa|grep MariaDB
[email protected] [~]#
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

It looks like you are using MySQL governor from CloudLinux. Try uninstalling MySQL Governor to revert the standard MySQL installation:

Code:
/usr/share/lve/dbgovernor/mysqlgovernor.py --delete
Once you've confirmed everything is working as expected, you can proceed to install MySQL Governor again using the instructions at:

MySQL Governor > Installation

Thank you.
 

Nile Youth

Active Member
Apr 2, 2015
26
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
Hello,

It looks like you are using MySQL governor from CloudLinux. Try uninstalling MySQL Governor to revert the standard MySQL installation:

Code:
/usr/share/lve/dbgovernor/mysqlgovernor.py --delete
Once you've confirmed everything is working as expected, you can proceed to install MySQL Governor again using the instructions at:

MySQL Governor > Installation

Thank you.
Thanks a lot for help it was solved now by remove governor

Thanks again
 
  • Like
Reactions: cPanelMichael