Unable to update cPanel version? Fix the issue now

While running upcp if you come across the below error:

20150311.000907] Testing if rpm_is_working RPM is installed
[20150311.000907] package rpm_is_working is not installed
[20150311.000907] Testing if it's possible to install a simple RPM
[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

Solution
=========

I have corrected the RPM issue on the server. One of the configuration files that cPanel needs to determine what architecture your system is running had become corrupt:

[WARN] * /var/cpanel/sysinfo.config: contains 'rpm_dist_ver=unknown'.

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

[[email protected] ~]# /scripts/gensysinfo

/var/cpanel/sysinfo.config updated.

[[email protected] ~]# cat /var/cpanel/sysinfo.config

# This file is deprecated will not be available much longer, so please do not attempt to use it.

arch=x86_64
dist=centos
dist_ver=7
release=7.9
rpm_arch=x86_64
rpm_dist=centos
rpm_dist_ver=7

Upcp command will work like a charm now. 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...