Upgrade Centos 6 to Centos 7 work, but cpanel not upgrade

speckados

Well-Known Member
Hi.

Today I've upgraded a cpanel-DNS-Only from Centos 6 to Centos 7 on fly.

Not problems on ssystem.

System is now Centos7

But cpanel show CENTOS 6.10 DNSONLY kvm [bkmx] v86.0.20

Tha is a problem because I need run /scripts/upcp --force for update and upcp go to repos of Centos 6 instead repos Centos 7.


[2020-05-17 16:08:53 +0200] Detected cron=0 (--force passed on command line)
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (2874) at Sun May 17 16:08:53 2020
[2020-05-17 16:08:53 +0200] Detected cron=0 (--force passed on command line)
[2020-05-17 16:08:53 +0200] 1% complete
[2020-05-17 16:08:53 +0200] Running Standardized hooks
[2020-05-17 16:08:53 +0200] 2% complete
[2020-05-17 16:08:53 +0200] mtime on upcp is 1585170693 (Wed Mar 25 22:11:33 2020)
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (2876) at Sun May 17 16:08:54 2020
[2020-05-17 16:08:54 +0200] Running version '11.86.0.20' of updatenow.
[2020-05-17 16:08:54 +0200] Detected version '11.86.0.20' from version file.
[2020-05-17 16:08:54 +0200] --force passed on command line. Upgrade will disregard update config settings.
[2020-05-17 16:08:54 +0200] Target version set to '11.86.0.20'
[2020-05-17 16:08:54 +0200] Checking license
[2020-05-17 16:08:55 +0200] License file check complete
[2020-05-17 16:08:55 +0200] Checking that the RPM DB is OK...
[2020-05-17 16:08:55 +0200] glibc-2.17-307.el7.1.x86_64
[2020-05-17 16:08:55 +0200] OK: RPM DB is responding to queries
[2020-05-17 16:08:55 +0200] Testing if rpm_is_working RPM is installed
[2020-05-17 16:08:55 +0200] package rpm_is_working is not installed
[2020-05-17 16:08:55 +0200] Testing if it's possible to install a simple RPM
[2020-05-17 16:08:55 +0200] Preparing... ########################################
[2020-05-17 16:08:55 +0200] Updating / installing...
[2020-05-17 16:08:55 +0200] rpm_is_working-1.0-0 ########################################
[2020-05-17 16:08:55 +0200] DNSONLY detected.
[2020-05-17 16:08:55 +0200] Ensuring required distro packages are installed.
[2020-05-17 16:08:55 +0200] Staging 11.86.0.20 cpanelsync files prior to updating /usr/local/cpanel
[2020-05-17 16:08:55 +0200] Staging cpanel changes
[2020-05-17 16:08:55 +0200] checkyum version 22.3 (excludes: bind-chroot kernel ruby)
[2020-05-17 16:08:55 +0200] Retrieving and staging /cpanelsync/11.86.0.20/binaries/linux-c6-x86_64/.cpanelsync.bz2
[2020-05-17 16:08:55 +0200] Using mirror '91.197.228.252' for host 'httpupdate.cpanel.net'.
[2020-05-17 16:08:55 +0200] Successfully verified signature for cpanel (key types: release).
[2020-05-17 16:08:55 +0200] Retrieving and staging /cpanelsync/11.86.0.20/cpanel/.cpanelsync.bz2
[2020-05-17 16:08:56 +0200] Successfully verified signature for cpanel (key types: release).
[2020-05-17 16:08:56 +0200] Maximum sync children set to 16 based on 7297M available memory.
[2020-05-17 16:08:56 +0200] Staging files for binaries/linux-c6-x86_64
[2020-05-17 16:08:56 +0200] checkyum version 22.3 (excludes: bind-chroot kernel)
[2020-05-17 16:08:56 +0200] Starting yum execution “--assumeyes --config /etc/yum.conf install db4 db4-devel”.
[2020-05-17 16:08:56 +0200] Loaded plugins: fastestmirror, universal-hooks
[2020-05-17 16:08:57 +0200] Loading mirror speeds from cached hostfile
[2020-05-17 16:08:57 +0200] * EA4: 91.197.228.252
[2020-05-17 16:08:57 +0200] * cpanel-addons-production-feed: 91.197.228.252
[2020-05-17 16:08:57 +0200] * cpanel-plugins: 91.197.228.252
[2020-05-17 16:08:57 +0200] * base: ftp.pasteur.fr
[2020-05-17 16:08:57 +0200] * extras: ftp.pasteur.fr
[2020-05-17 16:08:57 +0200] * updates: centos.crazyfrogs.org
[2020-05-17 16:08:59 +0200] No package db4 available.
[2020-05-17 16:08:59 +0200] No package db4-devel available.
[2020-05-17 16:08:59 +0200] W Error: Nothing to do
[2020-05-17 16:09:00 +0200] Completed yum execution “--assumeyes --config /etc/yum.conf install db4 db4-devel”: in 3.457 second
(s).
[2020-05-17 16:09:00 +0200] E (XID 4bteeg) “/usr/bin/yum” reported error code “1” when it ended:
[2020-05-17 16:09:00 +0200] checkyum version 22.3 (excludes: bind-chroot ruby)
[2020-05-17 16:09:00 +0200] E Sysup: Needed system RPMs were not installed: db4, db4-devel
=> Log closed Sun May 17 16:09:00 2020
=> Log closed Sun May 17 16:09:01 2020
[2020-05-17 16:09:01 +0200] Staging files for cpanel
[2020-05-17 16:09:02 +0200] Child: 1: Stage File: /var/tmp/2876._USR_LOCAL_CPANEL_SCRIPTS_UPDATENOW__.0893e691.tmp
[2020-05-17 16:09:02 +0200] Child 2955 created to stage files.
[2020-05-17 16:09:02 +0200] Retrieving and staging /cpanelsync/11.86.0.20/cpanel/upgrade_in_progress.txt.xz
[2020-05-17 16:09:02 +0200] Using mirror '91.197.228.252' for host 'httpupdate.cpanel.net'.
=> Log closed Sun May 17 16:09:03 2020
[2020-05-17 16:09:03 +0200] Sync child 2955 exited cleanly.
[2020-05-17 16:09:03 +0200] Mark target 'mailman' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'analog' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'awstats' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'roundcube' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'clamav' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'composer' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'proftpd' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'pure-ftpd' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'webalizer' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Mark target 'horde' as 'uninstalled'.
[2020-05-17 16:09:03 +0200] Maximum sync children set to 16 based on 7295M available memory.
[2020-05-17 16:09:03 +0200] Staging new RPMS
[2020-05-17 16:09:03 +0200] Maximum sync children set to 16 based on 7294M available memory.
[2020-05-17 16:09:03 +0200] Downloading http://httpupdate.cpanel.net/RPM/11.86/centos/6/x86_64/rpm.sha512
[2020-05-17 16:09:03 +0200] Successfully verified signature for cpanel (key types: release).
=> Log closed Sun May 17 16:09:03 2020
[2020-05-17 16:09:04 +0200] Maximum sync children set to 16 based on 7295M available memory.
[2020-05-17 16:09:04 +0200] dovecot-2.3.8-2.cp1186.x86_64.rpm already downloaded
[2020-05-17 16:09:04 +0200] cpanel-pdns-4.1.10-13.cp1186.x86_64.rpm already downloaded
[2020-05-17 16:09:04 +0200] Acquiring lock for Cpanel::RPM::Versions::File
[2020-05-17 16:09:04 +0200] Lock Acquired for Cpanel::RPM::Versions::File
[2020-05-17 16:09:04 +0200] All files Staged
[2020-05-17 16:09:04 +0200] E Blocker found: Cannot upgrade to 11.86.0.20 until needed system RPMs are installed.
[2020-05-17 16:09:04 +0200] Removing staged files and directories for binaries/linux-c6-x86_64, cpanel
[2020-05-17 16:09:04 +0200] E The install encountered a fatal error: Cannot upgrade to 11.86.0.20 until needed system RPMs are in
stalled.
=> Log closed Sun May 17 16:09:04 2020


Any idea?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,290
2,236
363
cPanel Access Level
Root Administrator
In order to take care of this, you'd want to run the following command on the machine:

Code:
yum update
That will attempt to update the operating system packages on the machine, and also let you know if there are errors with the RPM or update system.