Local MongoDB Server fails to start - "WiredTiger.wt is corrupted: WT_TRY_SALVAGE: database corruption detected"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Incomplete
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.2.0, 4.4.0
    • Component/s: None
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      I cannot seem to get my local mongodb server running - I run the mongod command in my command prompt and get the following error:

       

      {"t":{"$date":"2020-09-09T19:16:15.558+05:30"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
      {"t":{"$date":"2020-09-09T19:16:15.937+05:30"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
      {"t":{"$date":"2020-09-09T19:16:15.938+05:30"},"s":"I",  "c":"NETWORK",  "id":4648602, "ctx":"main","msg":"Implicit TCP FastOpen in use."}
      {"t":{"$date":"2020-09-09T19:16:15.940+05:30"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":28352,"port":27017,"dbPath":"C:/data/db","architecture":"64-bit","host":"Vivo"}}
      {"t":{"$date":"2020-09-09T19:16:15.940+05:30"},"s":"I",  "c":"CONTROL",  "id":23398,   "ctx":"initandlisten","msg":"Target operating system minimum version","attr":{"targetMinOS":"Windows 7/Windows Server 2008 R2"}}
      {"t":{"$date":"2020-09-09T19:16:15.940+05:30"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.0","gitVersion":"563487e100c4215e2dce98d0af2a6a5a2d67c5cf","modules":[],"allocator":"tcmalloc","environment":{"distmod":"windows","distarch":"x86_64","target_arch":"x86_64"}}}}
      {"t":{"$date":"2020-09-09T19:16:15.941+05:30"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Microsoft Windows 10","version":"10.0 (build 18363)"}}}
      {"t":{"$date":"2020-09-09T19:16:15.942+05:30"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"repair":true,"storage":{"dbPath":"C:\\data\\db"}}}}
      {"t":{"$date":"2020-09-09T19:16:15.945+05:30"},"s":"I",  "c":"STORAGE",  "id":22270,   "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"C:/data/db","storageEngine":"wiredTiger"}}
      {"t":{"$date":"2020-09-09T19:16:15.945+05:30"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=7605M,session_max=33000,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,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
      {"t":{"$date":"2020-09-09T19:16:15.965+05:30"},"s":"E",  "c":"STORAGE",  "id":22435,   "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":-31809,"message":"[1599659175:965805][28352:140715294088784], file:WiredTiger.wt, connection: __desc_read, 379: WiredTiger.wt is corrupted: WT_TRY_SALVAGE: database corruption detected"}}
      {"t":{"$date":"2020-09-09T19:16:15.968+05:30"},"s":"W",  "c":"STORAGE",  "id":22347,   "ctx":"initandlisten","msg":"Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade."}
      {"t":{"$date":"2020-09-09T19:16:15.968+05:30"},"s":"W",  "c":"STORAGE",  "id":22348,   "ctx":"initandlisten","msg":"WiredTiger metadata corruption detected"}
      {"t":{"$date":"2020-09-09T19:16:15.972+05:30"},"s":"W",  "c":"STORAGE",  "id":22349,   "ctx":"initandlisten","msg":"Attempting to salvage WiredTiger metadata"}
      {"t":{"$date":"2020-09-09T19:16:15.980+05:30"},"s":"E",  "c":"STORAGE",  "id":22435,   "ctx":"initandlisten","msg":"WiredTiger error","attr":{"error":-31809,"message":"[1599659175:980070][28352:140715294088784], file:WiredTiger.wt, WT_SESSION.salvage: __desc_read, 379: WiredTiger.wt is corrupted: WT_TRY_SALVAGE: database corruption detected"}}
      {"t":{"$date":"2020-09-09T19:16:15.981+05:30"},"s":"F",  "c":"STORAGE",  "id":50947,   "ctx":"initandlisten","msg":"Failed to salvage WiredTiger metadata","attr":{"details":"-31809: WT_TRY_SALVAGE: database corruption detected"}}
      {"t":{"$date":"2020-09-09T19:16:15.982+05:30"},"s":"F",  "c":"-",        "id":23091,   "ctx":"initandlisten","msg":"Fatal assertion","attr":{"msgid":50947,"file":"src\\mongo\\db\\storage\\wiredtiger\\wiredtiger_kv_engine.cpp","line":1115}}
      {"t":{"$date":"2020-09-09T19:16:15.983+05:30"},"s":"F",  "c":"-",        "id":23092,   "ctx":"initandlisten","msg":"\n\n***aborting after fassert() failure\n\n"}
      

      The only change I did recently was to upgrade to MongoDB Compass from the Community edition of Compass. But I never accessed my local data with that, just my remote database on MongoDB Atlas.

      I have tried running mongod with the --repair command and the --dbpath command, but it still fails with the same error.

      What can I do to solve this issue?

            Assignee:
            Dmitry Agranat
            Reporter:
            Umar Ghouse
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: