System Update - yum error
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.
-
Hi @peterk Does the issue persist if you remove the cache first? rm -rf /var/cache/yum yum makecache0 -
Hi, Unfortunately, this does not solve the problem. I do 'yum update' and i see these errors: 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 --nodigest0 -
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! 0 -
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: rpm -qa |egrep 'php-common|php-cli|php-json'
Thanks!0 -
Hi @cPanelLauren Yes, this is output of command: 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_640 -
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: # 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.0 -
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 yum remove wp-cli
- disable fastestmirror plugin for yum - Edit file:/etc/yum/pluginconf.d/fastestmirror.conf
Change:From: enabled=1 To: enabled=0
- After that execute: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 repoyum remove epel-release
- Now yum info show correct repo (cpanel-addons-production-feed)yum info wp-cli
- Install wp-cliyum 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.0 -
Hi @peterk Perfect! Thanks for providing the step by step as well! 0 -
Hi @peterk Perfect! Thanks for providing the step by step as well!
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-cli0 -
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. 0
Please sign in to leave a comment.
Comments
10 comments