Cpanel version change is blocked

hilario

Well-Known Member
Jan 5, 2008
50
0
56
Sao Paulo, Brazil
I am getting this failure message from cPanel:
fatal,Your RPM database appears unstable. It is not possible at the moment to install a simple RPM.
fatal,Cannot upgrade because yum is locked (/var/run/yum.pid has existed for 10+ minutes).

In WHM »Home »System Health »Process Manager I have the following processes listed:

/usr/bin/python /usr/bin/yum update (listed two times)
/usr/bin/python -tt /usr/sbin/yum-updatesd
/usr/local/cpanel/scripts/checkyum
/usr/bin/python -tt /usr/libexec/yum-updatesd-helper --check --dbus


Question:
Should I manually kill some of these processes?
Is it safe to kill all those processes?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

Check for any hanging YUM and RPM processes via:

Code:
ps aux|grep rpm
ps aux|grep yum
Kill any of these processes that are no longer active, and then rebuild the RPM database via:

Code:
mkdir /root/old_rpm_dbs/
mv /var/lib/rpm/__db* /root/old_rpm_dbs/
rpm --rebuilddb
Then, run "yum update" to see if it completes successfully.

Thank you.