Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED System Update - yum error

Discussion in 'General Discussion' started by peterk, Mar 22, 2019.

  1. peterk

    peterk Registered

    Joined:
    Mar 22, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello,

    I have problem with system update, i got error:

    System update process has started.

    “yum” reported error code “1” when it ended: w/ yum -y
    Often errors like this can be resolved by running `yum makecache`

    System update process has finished.


    I do "yum makecache" with no errors, but the issue still exists.
    Anyone have any tips how to fix the problem?


    - Peter.
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @peterk

    Does the issue persist if you remove the cache first?

    Code:
    rm -rf /var/cache/yum
    
    yum makecache
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. peterk

    peterk Registered

    Joined:
    Mar 22, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hi,

    Unfortunately, this does not solve the problem.

    I do 'yum update' and i see these errors:

    Code:
    Resolving Dependencies
    --> Running transaction check
    ---> Package wp-cli.noarch 0:1.5.1-2.2.2.cpanel will be updated
    ---> Package wp-cli.noarch 0:2.1.0-1.el6 will be an update
    --> Processing Dependency: php for package: wp-cli-2.1.0-1.el6.noarch
    --> Processing Dependency: php-cli for package: wp-cli-2.1.0-1.el6.noarch
    --> Processing Dependency: php-common for package: wp-cli-2.1.0-1.el6.noarch
    --> Processing Dependency: php-json for package: wp-cli-2.1.0-1.el6.noarch
    --> Finished Dependency Resolution
    Error: Package: wp-cli-2.1.0-1.el6.noarch (epel)
               Requires: php-common
    Error: Package: wp-cli-2.1.0-1.el6.noarch (epel)
               Requires: php
    Error: Package: wp-cli-2.1.0-1.el6.noarch (epel)
               Requires: php-cli
    Error: Package: wp-cli-2.1.0-1.el6.noarch (epel)
               Requires: php-json
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    
     
  4. rfc001

    rfc001 Member

    Joined:
    Jan 13, 2018
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    76
    Location:
    Indiana
    cPanel Access Level:
    Root Administrator
    I'm having the same error and doing a rm -rf on /var/cache/yum then yum makecache doesn't fix as well.

    In my case, all I did was mistakenly run System Update while it was already running (I mistakenly navigated away, and wasn't sure if it was done, so ran it again). Due to this simple mistake, it's now in a permanent funk. A simple lock file would have prevented it from running while it was already running. It shouldn't be so dang hard to get back in a good state. Please repro my scenario (navigate away from System Update from within cPanel while it's running then navigate back and run again) and advise. Thanks!
     
    #4 rfc001, Mar 26, 2019
    Last edited: Mar 26, 2019
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @peterk

    It looks like it wasn't about to get the dependencies - can you show me which versions of these you have installed. You can do something like the following:

    Code:
    rpm -qa |egrep 'php-common|php-cli|php-json'

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. peterk

    peterk Registered

    Joined:
    Mar 22, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hi @cPanelLauren

    Yes, this is output of command:

    Code:
    ea-php-cli-1.0.0-7.7.1.cpanel.x86_64
    ea-php-cli-lsphp-1.0.0-7.7.1.cpanel.x86_64
    ea-php72-php-common-7.2.16-1.1.1.cpanel.x86_64
    ea-php72-php-cli-7.2.16-1.1.1.cpanel.x86_64
    ea-php56-php-cli-5.6.40-2.2.11.cpanel.x86_64
    ea-php56-php-common-5.6.40-2.2.11.cpanel.x86_64
    
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @peterk


    I believe the issue in this instance is that the version of wp-cli you have is from the epel repository not the cPanel addons repository. It's then wanting dependencies also from the epel repo but you have the cPanel dependencies installed.

    For example the info on mine version of wp-cli:

    Code:
    # yum info wp-cli
    Loaded plugins: fastestmirror, universal-hooks
    Loading mirror speeds from cached hostfile
     * EA4: 208.74.123.61
     * EA4-experimental: 208.74.123.61
     * cpanel-addons-production-feed: 208.74.123.61
     * cpanel-plugins: 208.74.123.61
     * base: repos.dfw.quadranet.com
     * centosplus: centos.mirror.lstn.net
     * epel: mirror.compevo.com
     * extras: mirror.fileplanet.com
     * updates: mirror.dal10.us.leaseweb.net
    Installed Packages
    Name        : wp-cli
    Arch        : noarch
    Version     : 1.5.1
    Release     : 2.2.2.cpanel
    Size        : 4.4 M
    Repo        : installed
    From repo   : cpanel-addons-production-feed
    Summary     : wp-cli 1.5.1 for WordPress
    URL         : https://cpanel.com
    License     : MIT
    Description : WP-CLI is a set of command-line tools for managing WordPress
                : installations. You can update plugins, set up multi-site
                : installs, create posts and much more.
    What should be done to resolve this is remove the version from epel and install the version we provide in the cPanel addons repo.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. peterk

    peterk Registered

    Joined:
    Mar 22, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello @cPanelLauren

    You have right!
    For some reason, yum started using the 'epel' repository, maybe I used a mirror with a small retention and it caused problems, I write about it below.

    Anyway here's what I did - maybe it will help someone:

    - remove wp-cli
    Code:
    yum remove wp-cli
    - disable fastestmirror plugin for yum - Edit file:
    Code:
    /etc/yum/pluginconf.d/fastestmirror.conf
    
    Change:
    Code:
    From:
    enabled=1
    
    To:
    enabled=0
    - After that execute:
    Code:
    yum clean all
    After that EA4 (yum update) has 65 updates... That's why I think it's the fault of a low mirror retention. Although when using the fastestmirror plugin there were no updates...

    - remove epel repo
    Code:
    yum remove epel-release
    - Now yum info show correct repo (cpanel-addons-production-feed)
    Code:
    yum info wp-cli
    - Install wp-cli
    Code:
    yum install wp-cli
    - Go to: WHM > Home > cPanel > Install cPAddons Site Software

    Check WordPress and Force Refresh of All cPAddons Site Software Sources

    And click Update cPAddon Config

    That all, everything now works ok.

    - Peter.
     
    cPanelLauren likes this.
  9. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @peterk

    Perfect! Thanks for providing the step by step as well!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. vapetrov

    vapetrov Member

    Joined:
    May 24, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    301
    This is not problem solving!
    Epel is common used repository. You can not just to say "remove it"!

    You have to give unique names for your packages. For example cpanel-wp-cli
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    We've never supported the use of anything but the CentOS repos if you want to use additional/3rd party repositories you do so at your own risk.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice