Bug 132758 (IT_49604)
Summary: | RPM database confusion | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Brent Fox <bfox> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | nobody+pnasrat, peggy.proffitt, tao |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-22 12:37:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brent Fox
2004-09-16 18:45:37 UTC
After seeing this problem, the customer ran: rpm --rebuilddb which prints: rpmdb: fatal region error detected; run recovery error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index This looks similar to bug #122565, which the reported closed just after opening it since the problem disappeared after rebooting. We tried rebooting the machine, which allows 'rpm -qa' to work again, but when the 'addpkgs' script is run again, the same error happens. We tried rebooting the machine again and immediately ran 'rpm --rebuilddb' This worked, and then the 'addpkgs' script ran successfully. So the question is, can we figure out how the problem happened in the first place? The Issue Tracker ticket has a sysreport attachment if that is useful. Rebooting does rm -f /var/lib/rpm/__db* which probably would have fixed the problem without doing --rebuilddb. Could you grab a copy of the the database please cd /var/lib tar czvf /tmp/rpmdb-132758.tar.gz ./rpm so that I can attempt to reproduce the problem? A pointer (i.e. URL), rather than an attachment will be needed, as bugzilla won't handle rpmdb size attachments. Sure, I will ask the customer for a copy of the rpmdb. I hope it's still useful to you after running --rebuilddb. jbj: I've uploaded the rpmdb to the Issue Tracker ticket and ftp://people.redhat.com/bfox/.jsc-ips/rpmdb-132758.tar.gz Please let me know if you need any more information. I've downloaded the rpmdb, checked that all SHA1 digests verify, and looked for header data loss by attempting rpm -Va --nofiles. That verifies that the rpmdb is intact and useful, about all that can be done after --rebuilddb. |