Hello,
I had a nicely working system running Mandriva 2011 (32-bit), until there was a power failure during an update (urpmi) - yes, what a time for a power failure. On reboot, the rpm database was corrupted and since then I've tried various methods to make things "work", but no luck yet.
Here's what I tried:
--> backup the existing /var/lib/rpm directory, delete the db files, and use rpm -vv --rebuilddb
--> use db51_recover -ev to recover the database
--> a combination of the above two methods
So, none of the methods worked. I still get messages like:
Code:
==> rpmdbe_event_notify(0x9696090, PANIC(0), 0xbf872bac) app_private (nil)
rpmdb: PANIC: fatal region error detected; run recovery
==> rpmdbe_event_notify(0x9696090, PANIC(0), 0xbf872c4c) app_private (nil)
error: db3close:db3.c:1629: db->close(-30973): DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
==> rpmdbe_event_notify(0x9696090, PANIC(0), 0xbf872c4c) app_private (nil)
error: db3close:db3.c:1629: db->close(-30973): DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
rpmdb: File handles still open at environment close
rpmdb: Open file handle: /var/lib/rpm/Packages
rpmdb: Open file handle: /var/lib/rpm/Name
rpmdb: Open file handle: /var/lib/rpm/Nvra
rpmdb: Open file handle: /var/lib/rpm/Basenames
rpmdb: Open file handle: /var/lib/rpm/Sha1header
rpmdb: Open file handle: /var/lib/rpm/Triggername
rpmdb: Open file handle: /var/lib/rpm/Seqno
rpmdb: Open file handle: /var/lib/rpm/Filepaths
rpmdb: Open file handle: /var/lib/rpm/Packagecolor
rpmdb: Open file handle: /var/lib/rpm/Pubkeys
rpmdb: Open file handle: /var/lib/rpm/Filedigests
rpmdb: Open file handle: /var/lib/rpm/Sigmd5
rpmdb: Open file handle: /var/lib/rpm/Installtid
rpmdb: Open file handle: /var/lib/rpm/Dirnames
rpmdb: Open file handle: /var/lib/rpm/Obsoletename
rpmdb: Open file handle: /var/lib/rpm/Requirename
rpmdb: Open file handle: /var/lib/rpm/Providename
rpmdb: Open file handle: /var/lib/rpm/Group
rpmdb: Open file handle: /var/lib/rpm/Os
rpmdb: Open file handle: /var/lib/rpm/Arch
rpmdb: Open file handle: /var/lib/rpm/Release
rpmdb: Open file handle: /var/lib/rpm/Version
rpmdb: Open file handle: /var/lib/rpm/./log/log.0000000233
rpmdb: PANIC: fatal region error detected; run recovery
==> rpmdbe_event_notify(0x9696090, PANIC(0), 0xbf872c4c) app_private (nil)
error: db_fini:db3.c:583: dbenv->close(-30973): DB_RUNRECOVERY: Fatal error, run database recovery
This happens when I use urpmi and rpm to install packages.
I've also gone through some of the rpm docs. Some of the methods include using db_verify or rpm --initdb, but these don't exist in the current release of mandriva.
There must be some way to progress on this issue, short of reinstalling the system. At that point I would probably ask if there is a way to install the whole list of packages that I currently have installed after a quick reinstall of mandriva. It could be something tiny that I overlooked...
Thank you for reading this post. I would appreciate any suggestions or alternatives that could help. Hey, the worst case is to reinstall the distro, so I'd be okay with trying out a few things before that.
Regards,
Alex