SOLVED System Update - yum error

peterk

Member
Mar 22, 2019
15
2
3
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.
 

peterk

Member
Mar 22, 2019
15
2
3
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
 

rfc001

Member
Jan 13, 2018
17
0
76
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!
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
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!
 

peterk

Member
Mar 22, 2019
15
2
3
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
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
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.
 

peterk

Member
Mar 22, 2019
15
2
3
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.
 
  • Like
Reactions: cPanelLauren