If rpm or yum processes hangs

Occasionally, the RPM database on a CloudLinux machine can become corrupted. It can happen when an RPM transaction is interrupted at a critical time. Symptoms of this problem include one of the following programs not responding or freezing:

  • up2date
  • The CLN alert notification tool (applet in the Gnome or KDE panel)
  • rhn_check
  • rpm

This problem can also cause a system to stop checking in with CLN.
To fix this problem, run the following commands as root:

1. Kill all RPM and yum processes (rhn_check, yum, rpm, rhn-applet):

In the list of processes, the first number on each line is the PID. For all PIDs listed except for the one associated with grep:

Repeat the above steps for each of the programs listed.

 

2. Remove any RPM lock files (/var/lib/rpm/__db*):

 

3. Rebuild the rpm database:

 

If the above steps do not work, please contact technical support for more assistance.

Leave a Reply

Your email address will not be published. Required fields are marked *