Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34743

How to recover from "WiredTiger.wt, WT_CURSOR.next: read checksum error" ?

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 3.4.3
    • None
    • WiredTiger
    • ALL

    Description

      Hi,

      Today I faced the problem that many already reported. The server crashed and the database is corrupted. I can't bring it up to normal.

      I've tried to start mongod with --repair ... nothing...

      How can I recover from this? I can see from many posts that you guys generate the repaired files and then we can start mongod. But really, how can we recover from this problem wtihout opening a ticket or depending on someone to fix the checksum at the WiredTiger file?

      I am attaching the files for analysis... BTW, I utilise --directoryperdb at my mongod instance.

      – LOGS

      2018-04-29T18:37:03.912-0300 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=493M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
      2018-04-29T18:37:04.330-0300 E STORAGE  [initandlisten] WiredTiger error (0) [1525037824:330136][1126:0x7f34f3033cc0], file:WiredTiger.wt, WT_CURSOR.next: read checksum error for 16384B block at offset 643072: block header checksum of 4091829093 doesn't match expected checksum of 2132028001
      2018-04-29T18:37:04.330-0300 E STORAGE  [initandlisten] WiredTiger error (0) [1525037824:330189][1126:0x7f34f3033cc0], file:WiredTiger.wt, WT_CURSOR.next: WiredTiger.wt: encountered an illegal file format or internal value
      2018-04-29T18:37:04.330-0300 E STORAGE  [initandlisten] WiredTiger error (-31804) [1525037824:330199][1126:0x7f34f3033cc0], file:WiredTiger.wt, WT_CURSOR.next: the process must exit and restart: WT_PANIC: WiredTiger library panic
      2018-04-29T18:37:04.330-0300 I -        [initandlisten] Fatal Assertion 28558 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 361
      

      Attachments

        1. repair_attempt.tar.gz
          43 kB
        2. sizeStorer.wt
          84 kB
        3. storage.bson
          0.1 kB
        4. WiredTiger
          0.0 kB
        5. WiredTiger.turtle
          1 kB
        6. WiredTiger.turtle
          1 kB
        7. WiredTiger.turtle
          1 kB
        8. WiredTiger.wt
          796 kB
        9. WiredTigerLAS.wt
          4 kB

        Activity

          People

            kelsey.schubert@mongodb.com Kelsey T Schubert
            daniel.froz Daniel Froz Costa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: