RE: RPM stops responding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I had the same problem a while back. Found the following on a mailing list
somewhere,
can't remember exactly. Anyway, it's worked for me when RPM "hangs".

HTH,
dhardison


<snip>

·  I can't upgrade any packages, run up2date or rpm (processes hang!). What
is wrong?

The RPM database sometimes gets stuck. One cause of this problem is when a
process working on the RP
M database is killed, which leaves lock files in place, limiting what
further processes can do to th
e database. So make sure such a process really is stuck before killing it -
if a process is using mu
ch CPU time (eg. as reported by top) it is probably still doing useful work.

To free a stuck database;

Make sure there are no processes trying to access the rpm database (such as
rpm, up2date, redhat-con
fig-packages)
Remove the rpm lock files, rm /var/lib/rpm/__db* . Rebooting will do stages
1. & 2. automatically (2
. is done in the startup scripts). In many cases these are enough to free
the stuck database. If the
re are still problems;
Take a safety copy of the database, in case things go wrong. (eg. cp -r
/var/lib/rpm /var/lib/rpm.co
py ).
Try rebuilding the database (from the Packages data file) by running
rpm --rebuilddb . If the databa
se still doesn't work, and the db4-utils package was installed;
Run cd /var/lib/rpm; db_verify Packages . This checks the underlying data
format of this file.
If there are errors, you can rebuild the Packages file from the good records
by running cp Packages
Packages.orig; db_dump Packages.orig | db_load Packages and repeat step 4.
There is a good reference
 for this procedure at http://www.rpm.org/hintskinks/repairdb/






-----Original Message-----
From: psyche-list-admin@redhat.com
[mailto:psyche-list-admin@redhat.com]On Behalf Of Brian Curtis
Sent: Tuesday, January 21, 2003 11:30 AM
To: psyche-list@redhat.com
Subject: RPM stops responding


Hello,

I just tried to rpm -e my MySQL 3.x rpms in preparation for MySQL 4
when I ran into a bit of trouble.

After trying to # rpm -e mysqlclient9-3.23.22-6 I ended up having to
kill -9 the process after 15 minutes since it seemed to stop
responding.

Now every time I try any rpm query/update/delete, the process goes into
sleep mode and has to be terminated with a kill -9.  The output of ps
does not show any "rpm" commands running, and lsof shows the following
rpm-related files in use when rpm isn't stuck in sleep mode:

/usr/lib/python2.2/site-packages/rpm404module.so
/usr/lib/librpm-4.0.4.so
/usr/lib/librpmdb-4.0.4.so
/usr/lib/librpmio-4.0.4.so

Any ides how I can get rpm responding once more?  I'd like to avoid a
reboot, if at all possible.

--
Best regards,
 Brian Curtis



--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux