Upgrading cPanel 11.25 to 11.56 CentOS 5

orudge

Member
Oct 31, 2004
20
5
153
United Kingdom
Hi all,

I've discovered one of our clients is running cPanel in a VPS and that it hasn't been updated since around 2010! It's currently running cPanel 11.25 on CentOS 5. We will likely end up installing a new VPS with CentOS 7 and the latest version of cPanel, but in the mean time I thought I would try to update cPanel so that it is at least current-ish (11.56) - plus we can then use the Transfer Tool to help move across the system configuration.

However, upcp fails because it's trying to install 11.58 rather than 11.56:

=> Log opened from /usr/local/cpanel/scripts/updatenow.static (11606) at Fri Sep 2 10:17:25 2016
[2016-09-02 10:17:25 +0000] Detected version '11.25.0-RELEASE_43286' from version file.
[2016-09-02 10:17:25 +0000] Running version '11.58.0.25' of updatenow.
[2016-09-02 10:17:25 +0000] Adjusting starting version to 11.28.0.0 to simplify pre 11.30 update
[2016-09-02 10:17:25 +0000] Using mirror '85.13.201.2' for host 'httpupdate.cpanel.net'.
[2016-09-02 10:17:25 +0000] Successfully verified signature for cpanel (key types: release).
[2016-09-02 10:17:25 +0000] Target version set to '11.58.0.25'
[2016-09-02 10:17:25 +0000] Target version set to '11.30.8.0'
[2016-09-02 10:17:25 +0000] Switching to version '11.30.8.0' of updatenow to perform sync.
[2016-09-02 10:17:25 +0000] ***** FATAL: Could not figure out RPM distribution version
[2016-09-02 10:17:25 +0000] The Administrator will be notified to review this output when this script completes
[2016-09-02 10:17:25 +0000] ***** FATAL: Failed to download updatenow.static from server: Could not figure out RPM distribution version; The RPM database may be corrupt.
[2016-09-02 10:17:25 +0000] The Administrator will be notified to review this output when this script completes

Is there any way of "pinning" the upcp script to 11.56 instead of 11.58, since 11.58 dropped support for CentOS 5?

Thanks,

Owen
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
"The RPM database may be corrupt."
run yum update if you get errors you may need to rebuild the database
  1. Remove RPM’s locks (if present): rm -f /var/lib/rpm/__db*
  2. Rebuild RPM’s database: rpm -vv --rebuilddb
  3. Check if it worked: yum update
 

orudge

Member
Oct 31, 2004
20
5
153
United Kingdom
I've set up a new VPS and am in the process of transferring accounts across manually - it's probably easier than trying to upgrade from 11.25 (although it'd be impressive if it could still be done!). A fresh start is likely better anyway.

Thanks though for the suggestion,

Owen
 
  • Like
Reactions: Eric

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
New I've set up a new VPS and am in the process of transferring accounts across manually - it's probably easier than trying to upgrade from 11.25 (although it'd be impressive if it could still be done!). A fresh start is likely better anyway.
Hello,

This document is a helpful resource when manually copying accounts:

How to Manually Transfer an Account Between Servers - cPanel Knowledge Base - cPanel Documentation

Let us know if you have any trouble with the migration.

Thanks!