Monday 4 May 2015

Update cPanel Failed : /scripts/upcp

Update cPanel Failed : /scripts/upcp
=====================================
[20150311.000907] Preparing... ##################################################
[20150311.000907] rpm_is_working ##################################################
[20150311.000907] Switching to version '11.42.1.31' of updatenow to perform sync.
=> Log closed Wed Mar 11 00:09:07 2015
[20150311.000907] 17% complete
=======

Fix
====

By looking into the error log, you can get the solution >> The RPM is corrupt in the server
===========
=============
[WARN] * /var/cpanel/sysinfo.config: contains 'rpm_dist_ver=unknown'.

Corrected this by running /scripts/gensysinfo, which populates the file with this info:
=============

Run the below comds

#/scripts/gensysinfo
/var/cpanel/sysinfo.config updated.

# cat /var/cpanel/sysinfo.config
# This values in this file are calculated and updated if necessary nightly. If you wish to override
# these values, populate lock= with a comma delimited list of keys you don't want updated.
# This will allow you to change those values to suit your needs.
#
# Example: if you set lock like this, then rpm_dist and rpm_arch will not be updated nightly:
# lock=rpm_dist,rpm_arch
#
ises=2
lock=
release=6.5
rpm_arch=x86_64
rpm_dist=centos
rpm_dist_ver=6
=======================

Now try /scripts/upcp  >> it will work

No comments:

Post a Comment