Conflict with Rogue RPM - Sanity Check

elflaco

Member
Nov 6, 2006
12
0
151
I have a server on which cPanel update has been failing. It gets to the point where it is verifying the RPM's and then tanks on MySQL:

Code:
[20130906.053446]   All files Staged
[20130906.053446]   Testing if the newly downloaded RPMS can be installed without conflict
[20130906.053446]   Testing RPM transaction
[20130906.053451]   error: Failed dependencies:
[20130906.053451]       MySQL conflicts with mysql-5.0.45-7.el5.i386
[20130906.053451] W Exit Code: 254
[20130906.053451] ***** FATAL: Test install failed: error: Failed dependencies:
[20130906.053451]       MySQL conflicts with mysql-5.0.45-7.el5.i386
[20130906.053451]   The Administrator will be notified to review this output when this script completes
[20130906.053451] ***** FATAL: Error testing if the RPMs will install: Died at /usr/local/cpanel/scripts/updatenow.static-cpanelsync line 12529.
[20130906.053451]   see http://go.cpanel.net/rpmcheckfailed for more information
[20130906.053451]   The Administrator will be notified to review this output when this script completes
[20130906.053451] E Detected events which require user notification during updatenow. Will send iContact the log
Now, according to the error and the supplied link, the issue is due to a rogue MySQL RPM, and simply removing the RPM in question should fix the issue. The installed version of MySQL on this server is 5.1.68.

Am I over-thinking this or can I just run
Code:
RPM -e mysql-5.0.45-7.el5.i386
and be done with it without affecting the currently installed version or said data?

Thanks in advance and sorry if this question is feeble.
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
"he solution to this conflict is to remove the rogue RPM file and run the cPanel update process again."

that is the solution :)
 

elflaco

Member
Nov 6, 2006
12
0
151
Thank you for the reply, but that particular script doesn't seem to exist. I checked that directory and couldn't find anything similarly named. Any thoughts?
 

cPanelMichael

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

The following script should exist on your system:

Code:
/usr/local/cpanel/scripts/check_cpanel_rpms
It's documented at:

Check cPanel RPMS

Note that you can try removing the rogue MySQL RPM manually, forcing a cPanel update, and then checking again to see if the script exists.

Thank you.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
check_cpanel_rpms will only exist on systems using cPanel & WHM version 11.36 and newer. My guess is you are still on version 11.34 and the MySQL conflict is preventing you from reaching anything newer.

The command you gave rpm -e mysql-5.0.45-7.el5.i386 should suffice for removing the rogue RPM. Once that succeeds you should be able to reach a newer version of cPanel & WHM by executing /scripts/upcp.
 

elflaco

Member
Nov 6, 2006
12
0
151
check_cpanel_rpms will only exist on systems using cPanel & WHM version 11.36 and newer. My guess is you are still on version 11.34 and the MySQL conflict is preventing you from reaching anything newer.

The command you gave rpm -e mysql-5.0.45-7.el5.i386 should suffice for removing the rogue RPM. Once that succeeds you should be able to reach a newer version of cPanel & WHM by executing /scripts/upcp.
That appears to be the case. Thank you for the confirmation of the command (I just wanted to make sure that it did not affect the currently installed MySQL), will remove the RPM later today and report back.