FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Location
    00000000-0009FFFF
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rpmdb: PANIC: fatal region error detected; run recovery

    I began running this to remove amanda from my system

    # yum remove amanda
    Code:
    ....
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size
    =============================================================================
    Removing:
     amanda                  i386       2.5.0p2-4        installed         390 k
    Removing for dependencies:
     amanda-client           i386       2.5.0p2-4        installed         270 k
     amanda-server           i386       2.5.0p2-4        installed         1.1 M
    
    Transaction Summary
    =============================================================================
    Install      0 Package(s)
    Update       0 Package(s)
    Remove       3 Package(s)
    
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Removing  : amanda-server                ######################### [1/3]
    rpmdb: page 730: illegal page type or format
    rpmdb: PANIC: Invalid argument
    error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-30977) setting "o▒n+���c=-�
                                             @m
    " records from Filemd5s index
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-30977) setting ";b.#C+��.�՘�
                                              @m
    " records from Filemd5s index
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery
    error: error(-30977) setting "$�>�И�
                                        @m
    After pages and pages of errors like that, I have a few more pages error looks like this:

    Code:
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
    rpmdb: PANIC: fatal region error detected; run recovery

    So I thought I will try run:
    # rpm --rebuilddb
    or
    # rpm -initdb

    But both return:
    Code:
    rpmdb: PANIC: fatal region error detected; run recovery
    error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
    error: cannot open Packages index using db3 -  (-30977)

    Any thoughts? Is my rpm db completely broken now? what shall I do to fix it?

  2. #2
    Join Date
    Nov 2006
    Location
    Ann Arbor, MI
    Age
    38
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:
    rm /var/lib/rpm/__db*
    rpm --rebuilddb
    yum clean all
    It will delete the db first then rebuild it.

  3. #3
    Join Date
    Feb 2006
    Location
    00000000-0009FFFF
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wesamel
    It will delete the db first then rebuild it.
    Done that, but then if I do:

    # yum update

    I keep gettin the following error:
    Code:
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    primary.xml.gz            100% |=========================| 1.5 MB    00:00
    http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
    Trying other mirror.
    Error: failure: repodata/primary.xml.gz from extras: [Errno 256] No more mirrors to try.

  4. #4
    Join Date
    Feb 2006
    Location
    00000000-0009FFFF
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After reading several other posts in the forum, they seems suggest a reboot will fix their problem. So I try:

    # reboot
    # yum update
    Code:
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    primary.xml.gz            100% |=========================| 1.5 MB    00:00
    http://www.mirrorservice.org/sites/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
    Trying other mirror.
    Error: failure: repodata/primary.xml.gz from extras: [Errno 256] No more mirrors to try.
    Got exactally the same problem, but then i try again:

    # yum update
    Code:
    Loading "installonlyn" plugin
    Setting up Update Process
    Setting up repositories
    core                      100% |=========================| 1.1 kB    00:00
    updates                   100% |=========================| 1.2 kB    00:00
    extras                    100% |=========================| 1.1 kB    00:00
    Reading repository metadata in from local files
    ################################################## 4656/4656
    Seems to have fixed it the second time.

    Maybe yum clean up its mistakes after reboot when I ran it the first time, but not when i do yum clean all before rebooting?

  5. #5
    Join Date
    Nov 2006
    Location
    Ann Arbor, MI
    Age
    38
    Posts
    115
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm really not sure what happened, but as long as it's working fine now then it doesn't really matter.

  6. #6
    Join Date
    Aug 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rpmdb: PANIC: fatal region error detected; run recovery

    Hey @wesamel -- just popped on to say those 3 commands fixed my corrupt rpm database and broken yum perfectly, thanks

  7. #7
    Join Date
    Jul 2011
    Location
    Birmingham, UK
    Age
    44
    Posts
    2,759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: rpmdb: PANIC: fatal region error detected; run recovery

    Ancient thread closed.

Similar Threads

  1. Replies: 7
    Last Post: 9th April 2009, 07:50 PM
  2. rpmdb fatal error during FC6 install
    By davideg in forum EOL (End Of Life) Versions
    Replies: 1
    Last Post: 23rd March 2007, 04:03 AM
  3. Replies: 1
    Last Post: 6th January 2007, 02:29 PM
  4. rpmdb: PANIC error, please tell me what it means
    By natbrazil in forum Using Fedora
    Replies: 5
    Last Post: 19th March 2005, 09:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •