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.

Unable to update cPanel to the latest release

Discussion in 'General Discussion' started by dave_83, Nov 10, 2016.

Tags:
  1. dave_83

    dave_83 Member

    Joined:
    Nov 10, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Los Angeles, CA
    cPanel Access Level:
    Root Administrator
    Hello, I found some unauthorized entries under mysql remote access and I'm looking to upgrade WHM. When I try doing so, I get this error at 17%:

    Code:
    Running `/usr/local/cpanel/scripts/updatenow --upcp --log=/var/cpanel/updatelogs/update.1478799788.log` failed, exited with code 1 (signal = 0)
    A couple FATAL errors show:
    Code:
    [20161110.095242] W Exit Code: 254
    [20161110.095242] ***** FATAL: Test install failed:     package cpanel-perl-514-5.14.4-4.cp1146.x86_64 is already installed
    Code:
    [20161110.095242]   The Administrator will be notified to review this output when this script completes
    [20161110.095242] ***** FATAL: Error testing if the RPMs will install: Test install failed:     package cpanel-perl-514-5.14.4-4.cp1146.x86_64 is already installed
    I have tried via the CLI, and I have tried forcing the update, nothing is working.
     
    #1 dave_83, Nov 10, 2016
    Last edited by a moderator: Nov 10, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Please post the output from the following command so we can better understand your server enviorment:

    Code:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
    Thank you.
     
  3. dave_83

    dave_83 Member

    Joined:
    Nov 10, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Los Angeles, CA
    cPanel Access Level:
    Root Administrator
    Here

    Code:
    /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf /usr/local/cpanel/version
    /etc/redhat-release:CentOS release 6.8 (Final)
    /usr/local/cpanel/version:11.46.1.3
    /var/cpanel/envtype:virtuozzo
    CPANEL=release
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Try running the following command to ensure there are no duplicate RPMs:

    Code:
    /scripts/autorepair fix_duplicate_cpanel_rpms 
    Thank you.
     
  5. dave_83

    dave_83 Member

    Joined:
    Nov 10, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Los Angeles, CA
    cPanel Access Level:
    Root Administrator
    Hi, I ran that, and it did find some duplicates. But that didn't solve the problem, now I have a different error:

    Code:
    [20161110.144553]   All files Staged
    [20161110.144553]   Testing if the newly downloaded RPMS can be installed without conflict
    [20161110.144553]   Testing RPM transaction
    [20161110.144553]   error: Failed dependencies:
    [20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
    [20161110.144553] W Exit Code: 254
    [20161110.144553] ***** FATAL: Test install failed: error: Failed dependencies:
    [20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
    [20161110.144553]   The Administrator will be notified to review this output when this script completes
    [20161110.144553] ***** FATAL: Error testing if the RPMs will install: Test install failed: error: Failed dependencies:
    [20161110.144553]     sendmail = 8.14.4-9.el6_8.1 is needed by (installed) sendmail-cf-8.14.4-9.el6_8.1.noarch
    [20161110.144553]   see http://go.cpanel.net/rpmcheckfailed for more information
    [20161110.144553]   The Administrator will be notified to review this output when this script completes
    [20161110.144553] E Detected events which require user notification during updatenow. Will send iContact the log
     
  6. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This isn't a package that's installed with cPanel by default. Are you using it for any specific purpose? If not, you can remove the sendmail-cf package on your system with a command such as:

    Code:
    rpm -e --nodeps sendmail-cf-8.14.4-9.el6_8.1.noarch
    Otherwise, try temporarily adding the following entry to the "exclude=" line in your /etc/yum.conf file:

    sendmail-cf*

    This should address the YUM error, which you can then proceed to investigate further after the cPanel update completes.

    Thank you.
     
  8. dave_83

    dave_83 Member

    Joined:
    Nov 10, 2016
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Los Angeles, CA
    cPanel Access Level:
    Root Administrator
    Excellent, thank you! Problem solved.
     
    cPanelMichael likes this.
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page