The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Conflict with Rogue RPM - Sanity Check

Discussion in 'General Discussion' started by elflaco, Sep 6, 2013.

  1. elflaco

    elflaco Member

    Joined:
    Nov 6, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    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 :)
     
  3. elflaco

    elflaco Member

    Joined:
    Nov 6, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    And the command listed above is the correct one to do so?
     
  4. ES - George

    ES - George Well-Known Member
    PartnerNOC

    Joined:
    Jun 12, 2011
    Messages:
    142
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Run: /usr/local/cpanel/scripts/check_cpanel_rpms --fix
     
  5. elflaco

    elflaco Member

    Joined:
    Nov 6, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  8. elflaco

    elflaco Member

    Joined:
    Nov 6, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  9. elflaco

    elflaco Member

    Joined:
    Nov 6, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    And that was successful! Thank you cPanelKenneth and the rest for your replies.
     
Loading...

Share This Page