Join the community today
Register Now

error: rpmdb: BDB0113 Thread/process failed: BDB1507 Thread died in Berkeley DB

Discussion in 'System Administration' started by adamus007p, Sep 14, 2020.

  1. adamus007p

    adamus007p Member

    252
    15
    18
    Feb 8, 2019
    Ratings:
    +26
    Local Time:
    2:29 PM
    Hello, may someone advise what to do?


    Code (Text):
    centmin
    /usr/local/src/centminmod /usr/local/src/centminmod
    
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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 database in /var/lib/rpm
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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 database in /var/lib/rpm
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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 database in /var/lib/rpm
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    
    real    0m0.400s
    user    0m0.131s
    sys     0m0.074s
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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.cli:Yum Error: Error: rpmdb open failed
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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 database in /var/lib/rpm
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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 database in /var/lib/rpm
    error: rpmdb: BDB0113 Thread/process 15677/140092878641216 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
    




    Code (Text):
    free -mlt
                  total        used        free      shared  buff/cache   available
    Mem:          15884        3664         998        1221       11221       10668
    Low:          15884       14886         998
    High:             0           0           0
    Swap:          8064         102        7962
    Total:        23949        3766        8961
    



    Code (Text):
    cminfo sar-mem
    
    ------------------------------------------------------------------
     Memory Usage Daily Last 7 days (8 CPU Threads):
    ------------------------------------------------------------------
    
    Sep 13 2020 Memory
    Memory      min:
    kbmemfree:  908184.0    kbmemused:  14725868.0  %memused:  90.5       kbbuffers:  419096.0   kbcached:  6751132.0
    kbcommit:   8900096.0   %commit:    36.3        kbactive:  6063072.0  kbinact:    2537216.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  1110569.7   kbmemused:  15155010.3  %memused:  93.2       kbbuffers:  425215.7   kbcached:  6854360.8
    kbcommit:   11065820.4  %commit:    45.1        kbactive:  6469368.7  kbinact:    3012736.2  kbdirty:   121.4
    Memory      max:
    kbmemfree:  1539712.0   kbmemused:  15357396.0  %memused:  94.4       kbbuffers:  431176.0   kbcached:  6960124.0
    kbcommit:   11833536.0  %commit:    48.2        kbactive:  7087652.0  kbinact:    3077852.0  kbdirty:   4216.0
    Memory      95%:
    kbmemfree:  1496403.2   kbmemused:  15298894.0  %memused:  94.1       kbbuffers:  428986.0   kbcached:  6922810.4
    kbcommit:   11667765.6  %commit:    47.6        kbactive:  6906566.8  kbinact:    3073434.4  kbdirty:   288.8
    
    Sep 12 2020 Memory
    Memory      min:
    kbmemfree:  169664.0    kbmemused:  14988680.0  %memused:  92.2       kbbuffers:  386972.0   kbcached:  6270004.0
    kbcommit:   10127792.0  %commit:    41.3        kbactive:  5455152.0  kbinact:    2559380.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  420740.5    kbmemused:  15844839.5  %memused:  97.4       kbbuffers:  564466.9   kbcached:  6630500.9
    kbcommit:   10928731.9  %commit:    44.6        kbactive:  6258552.6  kbinact:    3109643.3  kbdirty:   644.1
    Memory      max:
    kbmemfree:  1276900.0   kbmemused:  16095916.0  %memused:  99.0       kbbuffers:  733888.0   kbcached:  7486672.0
    kbcommit:   11671996.0  %commit:    47.6        kbactive:  7326512.0  kbinact:    3535768.0  kbdirty:   104204.0
    Memory      95%:
    kbmemfree:  1026192.8   kbmemused:  16014456.4  %memused:  98.5       kbbuffers:  627620.0   kbcached:  7066147.2
    kbcommit:   11533117.6  %commit:    47.0        kbactive:  7203981.6  kbinact:    3327846.0  kbdirty:   1424.4
    
    Sep 11 2020 Memory
    Memory      min:
    kbmemfree:  172256.0    kbmemused:  14780644.0  %memused:  90.9       kbbuffers:  746864.0   kbcached:  6178532.0
    kbcommit:   10321148.0  %commit:    42.1        kbactive:  5168424.0  kbinact:    3018924.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  335403.0    kbmemused:  15930177.0  %memused:  97.9       kbbuffers:  851610.4   kbcached:  6522886.5
    kbcommit:   10969919.7  %commit:    44.7        kbactive:  6334125.2  kbinact:    3666096.0  kbdirty:   142.5
    Memory      max:
    kbmemfree:  1484936.0   kbmemused:  16093324.0  %memused:  98.9       kbbuffers:  1130948.0  kbcached:  6734548.0
    kbcommit:   11420680.0  %commit:    46.6        kbactive:  6949900.0  kbinact:    4201744.0  kbdirty:   1752.0
    Memory      95%:
    kbmemfree:  568270.4    kbmemused:  16020584.0  %memused:  98.5       kbbuffers:  955590.0   kbcached:  6681294.2
    kbcommit:   11191140.2  %commit:    45.6        kbactive:  6644676.4  kbinact:    4127227.8  kbdirty:   1094.4
    
    Sep 10 2020 Memory
    Memory      min:
    kbmemfree:  157156.0    kbmemused:  15392640.0  %memused:  94.6       kbbuffers:  184184.0   kbcached:  5960172.0
    kbcommit:   10450280.0  %commit:    42.6        kbactive:  5897504.0  kbinact:    3435640.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  349659.8    kbmemused:  15915920.2  %memused:  97.9       kbbuffers:  1223181.0  kbcached:  7079145.3
    kbcommit:   10736906.7  %commit:    43.8        kbactive:  6515451.5  kbinact:    4724685.8  kbdirty:   167.3
    Memory      max:
    kbmemfree:  872940.0    kbmemused:  16108424.0  %memused:  99.0       kbbuffers:  1547788.0  kbcached:  9677496.0
    kbcommit:   11255792.0  %commit:    45.9        kbactive:  7009896.0  kbinact:    6680720.0  kbdirty:   8240.0
    Memory      95%:
    kbmemfree:  578795.2    kbmemused:  16016298.4  %memused:  98.5       kbbuffers:  1545194.8  kbcached:  9499158.0
    kbcommit:   11130710.8  %commit:    45.4        kbactive:  6933950.0  kbinact:    6086292.0  kbdirty:   316.4
    
    Sep 09 2020 Memory
    Memory      min:
    kbmemfree:  192468.0    kbmemused:  14741580.0  %memused:  90.6       kbbuffers:  97528.0    kbcached:  7015248.0
    kbcommit:   10445024.0  %commit:    42.6        kbactive:  5361716.0  kbinact:    4152100.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  516923.3    kbmemused:  15748656.7  %memused:  96.8       kbbuffers:  190280.0   kbcached:  7896214.7
    kbcommit:   10741572.4  %commit:    43.8        kbactive:  6029871.1  kbinact:    4988416.6  kbdirty:   886.1
    Memory      max:
    kbmemfree:  1524000.0   kbmemused:  16073112.0  %memused:  98.8       kbbuffers:  327128.0   kbcached:  9765600.0
    kbcommit:   10986736.0  %commit:    44.8        kbactive:  6425316.0  kbinact:    7122700.0  kbdirty:   57816.0
    Memory      95%:
    kbmemfree:  1370748.8   kbmemused:  16007799.2  %memused:  98.4       kbbuffers:  311362.8   kbcached:  9426817.6
    kbcommit:   10923550.0  %commit:    44.5        kbactive:  6267096.0  kbinact:    6740560.8  kbdirty:   1421.2
    
    Sep 08 2020 Memory
    Memory      min:
    kbmemfree:  173624.0    kbmemused:  15477008.0  %memused:  95.2       kbbuffers:  322544.0   kbcached:  6555756.0
    kbcommit:   10463140.0  %commit:    42.7        kbactive:  5808980.0  kbinact:    3339076.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  355593.3    kbmemused:  15909986.7  %memused:  97.8       kbbuffers:  480255.7   kbcached:  7224460.0
    kbcommit:   10597946.5  %commit:    43.2        kbactive:  6414098.3  kbinact:    4206767.9  kbdirty:   100.0
    Memory      max:
    kbmemfree:  788572.0    kbmemused:  16091956.0  %memused:  98.9       kbbuffers:  527920.0   kbcached:  8065912.0
    kbcommit:   10833120.0  %commit:    44.2        kbactive:  6803100.0  kbinact:    5215832.0  kbdirty:   4272.0
    Memory      95%:
    kbmemfree:  623483.2    kbmemused:  16002504.4  %memused:  98.4       kbbuffers:  526164.4   kbcached:  7952023.6
    kbcommit:   10728058.4  %commit:    43.7        kbactive:  6736065.2  kbinact:    5091233.2  kbdirty:   92.0
    
    Sep 07 2020 Memory
    Memory      min:
    kbmemfree:  156868.0    kbmemused:  15320216.0  %memused:  94.2       kbbuffers:  454156.0   kbcached:  6091412.0
    kbcommit:   10442612.0  %commit:    42.6        kbactive:  5810612.0  kbinact:    4137096.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  371681.7    kbmemused:  15893898.3  %memused:  97.7       kbbuffers:  992453.5   kbcached:  6935949.5
    kbcommit:   10610205.5  %commit:    43.3        kbactive:  6114551.0  kbinact:    4720616.7  kbdirty:   219.0
    Memory      max:
    kbmemfree:  945364.0    kbmemused:  16108712.0  %memused:  99.0       kbbuffers:  1421296.0  kbcached:  8136784.0
    kbcommit:   10771036.0  %commit:    43.9        kbactive:  6517284.0  kbinact:    5478056.0  kbdirty:   12476.0
    Memory      95%:
    kbmemfree:  790163.2    kbmemused:  16010323.6  %memused:  98.4       kbbuffers:  1413664.4  kbcached:  7961090.4
    kbcommit:   10739735.6  %commit:    43.8        kbactive:  6293298.0  kbinact:    5222806.0  kbdirty:   106.8
    
    Sep 06 2020 Memory
    Memory      min:
    kbmemfree:  157996.0    kbmemused:  15467420.0  %memused:  95.1       kbbuffers:  186756.0   kbcached:  7465176.0
    kbcommit:   10429396.0  %commit:    42.5        kbactive:  6158056.0  kbinact:    4824236.0  kbdirty:   0.0
    Memory      avg:
    kbmemfree:  393696.1    kbmemused:  15871883.9  %memused:  97.6       kbbuffers:  823086.1   kbcached:  8137449.0
    kbcommit:   10633170.6  %commit:    43.4        kbactive:  6568208.0  kbinact:    5301873.4  kbdirty:   186.3
    Memory      max:
    kbmemfree:  798160.0    kbmemused:  16107584.0  %memused:  99.0       kbbuffers:  1365456.0  kbcached:  9767720.0
    kbcommit:   10813524.0  %commit:    44.1        kbactive:  7181180.0  kbinact:    6004764.0  kbdirty:   16344.0
    Memory      95%:
    kbmemfree:  670891.6    kbmemused:  16001749.6  %memused:  98.4       kbbuffers:  1328458.8  kbcached:  9533548.0
    kbcommit:   10760413.6  %commit:    43.9        kbactive:  6942344.0  kbinact:    5605292.0  kbdirty:   168.4
    
     
    Last edited: Sep 14, 2020
  2. adamus007p

    adamus007p Member

    252
    15
    18
    Feb 8, 2019
    Ratings:
    +26
    Local Time:
    2:29 PM
    Sysadmin - RPMDB Lots of errors

    Shall I follow?
    Code (Text):
    DT=$(date +"%d%m%y-%H%M%S")
    mkdir -p /home/backup_rpmdb_$DT
    cp -avr /var/lib/rpm/ /home/backup_rpmdb_$DT/
    rm -f /var/lib/rpm/__db*
    db_verify /var/lib/rpm/Packages
    rpm --rebuilddb
    yum clean all



    I have cmupdate via cron:

    Code (Text):
    0 */6 * * * /usr/bin/cmupdate 2>/dev/null
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,280
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,934
    Local Time:
    10:29 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yes try that