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

Cannot repair mongodb instance without WiredTiger.turtle file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.10
    • Component/s: None
    • Linux

      After disk outage WiredTiger.turtle became zero-length.

       

      # mongod --repair --dbpath /var/lib/mongodb 2018-09-26T17:42:59.267+0300 I CONTROL [initandlisten] MongoDB starting : pid=5450 port=27017 dbpath=/var/lib/mongodb 64-bit host=demo 2018-09-26T17:42:59.267+0300 I CONTROL [initandlisten] db version v3.2.10 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] git version: 79d9b3ab5ce20f51c272b4411202710a082d0317 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] allocator: tcmalloc 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] modules: none 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] build environment: 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] distmod: debian71 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] distarch: x86_64 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] target_arch: x86_64 2018-09-26T17:42:59.268+0300 I CONTROL [initandlisten] options: { repair: true, storage: { dbPath: "/var/lib/mongodb" } } 2018-09-26T17:42:59.295+0300 I - [initandlisten] Detected data files in /var/lib/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2018-09-26T17:42:59.295+0300 W - [initandlisten] Detected unclean shutdown - /var/lib/mongodb/mongod.lock is not empty. 2018-09-26T17:42:59.295+0300 W STORAGE [initandlisten] Recovering data from the last clean checkpoint. 2018-09-26T17:42:59.295+0300 I STORAGE [initandlisten] Detected WT journal files. Running recovery from last checkpoint. 2018-09-26T17:42:59.295+0300 I STORAGE [initandlisten] journal to nojournal transition config: create,cache_size=1G,session_max=20000,eviction=(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-09-26T17:42:59.342+0300 I - [initandlisten] Assertion: 28718:2: No such file or directory 2018-09-26T17:42:59.362+0300 I STORAGE [initandlisten] exception in initAndListen: 28718 2: No such file or directory, terminating 2018-09-26T17:42:59.363+0300 I CONTROL [initandlisten] dbexit: rc: 100
      

      Is it possible to repair db?

            Assignee:
            nick.brewer Nick Brewer
            Reporter:
            megazoll Vyacheslav Salakhutdinov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: