How To
Summary
Certain conditions can cause the RPM database to become corrupt. Typically this is an interrupted install/update, but there can be packaging errors, or other problems which can cause this corruption.
Objective
| SYMPTOMS |
|---|
|
rpm commands result in the following errors:
error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db4 - (-30974) error: cannot open Packages database in /opt/freeware/packages error: rpmdb: Thread/process 32244334/1 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 - (-30974) error: cannot open Packages database in /opt/freeware/packages * These errors indicate a corrupt RPM database
|
Steps
|
cd /opt/freeware
|
|
tar -chvf `date +"%d%m%Y"`.rpm.packages.tar packages
|
|
rm -f /opt/freeware/packages/__*
|
|
/usr/bin/rpm --rebuilddb
|
|
/usr/bin/rpm -qa
|
Additional Information
| SUPPORT | ||||
|---|---|---|---|---|
|
A) For all questions or issues with Toolbox packages, the support is handled by the AIX Open Source Team in the forum: https://community.ibm.com/community/user/power/communities/community-home?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9 ** Cases opened to address Toolbox problems will be canceled and users will be referred to the Open Source Forum.
B) If there is a problem with installing rpm.rte, or executing the rpm binary file, open an AIX Case (See the following C section) for assistance. Examples of rpm.rte issues supported through AIX Support: Example of an rpm.rte rpm loading issue:
C) Opening an AIX Support Case If additional assistance is required due to issues with rpm.rte file set (see preceding B section), use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: |
Related Information
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
29 August 2023
UID
ibm10843426