From 36fd6bf8a1d32d9c4c82b9174d70573f1d0d0ed1 Mon Sep 17 00:00:00 2001 From: ebner Date: Wed, 13 Nov 2024 12:56:45 +0100 Subject: [PATCH] add rpm troubleshooting info --- _toc.yml | 1 + admin-guide/troubleshooting/rpm.md | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 admin-guide/troubleshooting/rpm.md diff --git a/_toc.yml b/_toc.yml index 9e8e4339..2e85fd1d 100644 --- a/_toc.yml +++ b/_toc.yml @@ -125,6 +125,7 @@ chapters: - file: admin-guide/troubleshooting/processes - file: admin-guide/troubleshooting/pcie_bus_error - file: admin-guide/troubleshooting/puppet + - file: admin-guide/troubleshooting/rpm - file: admin-guide/virtual_machines - file: admin-guide/container - file: admin-guide/certificates diff --git a/admin-guide/troubleshooting/rpm.md b/admin-guide/troubleshooting/rpm.md new file mode 100644 index 00000000..c2472453 --- /dev/null +++ b/admin-guide/troubleshooting/rpm.md @@ -0,0 +1,22 @@ +# RPM + +## Fix Broken RPM Database +### Error +```bash +error: rpmdb: BDB0113 Thread/process 27704/139786043250496 failed: BDB1507 Thread died in Berkeley DB library +error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery +error: cannot open Packages index using db5 - (-30973) +error: cannot open Packages database in /var/lib/rpm +CRITICAL:yum.main: + +Error: rpmdb open failed +``` + +## Fix +1. Rebuild RPM Database: + ``` + rpm --rebuilddb + ``` +2. re-run puppet + +Reference: https://stackoverflow.com/questions/53112493/how-do-i-recover-a-corrupted-dnf-database \ No newline at end of file