HomeDefectsLIN9-8683
Fixed

LIN9-8683 : Corrupted RPMDB on the rootfs

Created: Jun 26, 2019    Updated: Mar 23, 2020
Resolved Date: Aug 11, 2019
Found In Version: 9.0.0.21
Fix Version: 9.0.0.22
Severity: Critical
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

An issue  when tried to verify the rpm database. Apparently is due to a mismatch between the db included in the image and the db-native used to create the rpm files. 

[https://github.com/openembedded/openembedded-core/commit/e5a40391dfa12c44f31bdb7550df1275edda3864]

 

 root@intel-x86-64:/var/lib# rpm qa

rpmdb: BDB2531 Unacceptable log file /var/lib/rpm/./log/log.0000000004: unsupported log version 21

rpmdb: BDB2527 Invalid log file: log.0000000004: Invalid argument rpmdb: BDB0061 PANIC: Invalid argument ==> rpmdbe_event_notify(0x65ccd0, PANIC(0), 0x7ffc4bac3cec) app_private (nil) rpmdb: BDB1546 unable to join the environment error: db_init:../../rpm-5.4.15/rpmdb/db3.c:1181: dbenv>open(30973): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery Re-opening dbenv with DB_RECOVER ... rpmdb: BDB2531 Unacceptable log file /var/lib/rpm/./log/log.0000000004: unsupported log version 21 rpmdb: BDB2527 Invalid log file: log.0000000004: Invalid argument rpmdb: BDB0061 PANIC: Invalid argument ==> rpmdbe_event_notify(0x65ccd0, PANIC(0), 0x7ffc4bac3cec) app_private (nil) rpmdb: BDB1546 unable to join the environment error: db_init:../../rpm-5.4.15/rpmdb/db3.c:1181: dbenv>open(-30973): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery recovery failed. Exiting ...

Workaround

NA

Steps to Reproduce

# clone latest lx9 
 # ./wrlinux-9/setup.sh  --dl-layers --distros wrlinux --machines intel-x86-64 --templates feature/initramfs,feature/kdump,feature/kexec,feature/kernel-debug,feature/kernel-tune --layers wr-kernel --kernel standard
 # Add the following in local.conf : PREFERRED_VERSION_db="5.3.28" \ PREFERRED_VERSION_nativesdk-db="5.3.28"  \   PREFERRED_VERSION_db-native = "5.3.28"
 # bitbake wrlinux-image-glibc-std