Free list corrupt error; no luck with rebuilddb

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

 



Hi all

I have an old box with RPM 4.0.2 on which I was running an RPM install,
and the process hung. I had to eventually kill -9 it, and since then,
the db is corrupted (and rebuilddb hasn't helped):

=====================================
[root@modemsza rpm]# rpm --rebuilddb
error: free list corrupt (1406088)- please run
        "rpm --rebuilddb"
More information is available from http://www.rpm.org or the
rpm-list@xxxxxxxxxx mailing list
if "rpm --rebuilddb" fails to correct the problem.
=====================================


Here are the files I have:

=====================================
[root@modemsza rpm]# cd /var/lib/rpm
[root@modemsza rpm]# ls -l
total 31420
-rw-r--r--    1 root     root            0 Apr 24 17:40 Depends.idx
-rw-r--r--    1 root     root        16384 Apr 24 17:26
conflictsindex.rpm
-rw-r--r--    1 root     root     12292096 Apr 24 17:26 fileindex.rpm
-rw-r--r--    1 root     root        16384 Apr 24 17:26 groupindex.rpm
-rw-r--r--    1 root     root        28672 Apr 24 17:26 nameindex.rpm
-rw-r--r--    1 root     root     19599880 Apr 24 17:17 packages.rpm
-rw-r--r--    1 root     root        98304 Apr 24 17:26
providesindex.rpm
-rw-r--r--    1 root     root       102400 Apr 24 17:26 requiredby.rpm
-rw-r--r--    1 root     root        16384 Apr 24 17:26 triggerindex.rpm
=====================================

Now, although db_verify makes things look really bad:

=====================================
root@modemsza rpm]# db_verify -V
Sleepycat Software: Berkeley DB 3.2.9: (January 24, 2001)

[root@modemsza rpm]# db_verify fileindex.rpm 2>&1 | head
db_verify: Bad pgno: was 3523477504, should be 0
db_verify: Bad magic number: 4096
db_verify: Invalid next_pgno 201326592 on page 0

[... 487 lines of similar errors ...]

db_verify: Old-style duplicate page: 185
db_verify: Bad page number: 4095 should be 186
db_verify: Invalid next_pgno 2621462 on page 186
db_verify: DB->verify: fileindex.rpm: DB_VERIFY_BAD: Database
verification failed

Every other file in this dir fails verification roughly as follows:
[paolo@modemsza rpm]$ db_verify requiredby.rpm
db_verify: Bad pgno: was 3523477504, should be 0
db_verify: Bad magic number: 4096
db_verify: Invalid next_pgno 201326592 on page 0
db_verify: DB->verify: requiredby.rpm: DB_VERIFY_BAD: Database
verification failed
=====================================

Nonetheless, rpm -qa returns 557 packages (i.e. looks basically intact)
before dying with the "free list corrupt" error. I can also run queries
without a problem on installed packages, e.g.:

=====================================
[paolo@modemsza rpm]$ which rpm | xargs rpm -qf
rpm-4.0.2-8

[paolo@modemsza rpm]$ rpm -qa | grep ^db
db1-1.85-5
db2-2.4.14-5
db1-devel-1.85-5
db3-3.2.9-4
db3-3.1.17-7
db3-devel-3.1.17-7
[then dies with error]
=====================================

This makes me think that somehow I've ended up with an incorrect version
of Berkeley DB which makes things look worse than they are. This box was
upgraded many time over the years as you can tell from the above.

Anyway, does anyone have any good ideas where I can start?


Thanks

Paolo




_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux