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

Cannot start mongod with a missing wiredTiger database

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.17
    • Component/s: WiredTiger
    • None
    • ALL
    • Hide

      (In a clean, empty directory):
      mongod --dbpath . --storageEngine wiredTiger --directoryperdb
      (In another console):
      mongo
      >use tmp
      >db.tmp.insert(

      {'a':4}

      )

      Then, disconnect and stop the mongod process.

      Remove the folder "tmp" and its contents in the dbpath location.

      Restart mongod (same command as before)

      Show
      (In a clean, empty directory): mongod --dbpath . --storageEngine wiredTiger --directoryperdb (In another console): mongo >use tmp >db.tmp.insert( {'a':4} ) Then, disconnect and stop the mongod process. Remove the folder "tmp" and its contents in the dbpath location. Restart mongod (same command as before)

      I cannot restart the mongo server when a wiredtiger file is missing. Ideally, I'd like to drop/ignore this database allowing me to access any others.

      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] MongoDB starting : pid=30787 port=27018 dbpath=. 64-bit host=greg-laptop
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] db version v3.2.17
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] git version: 186656d79574f7dfe0831a7e7821292ab380f667
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] allocator: tcmalloc
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] modules: none
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] build environment:
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] distmod: ubuntu1604
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] distarch: x86_64
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] target_arch: x86_64
      2017-12-21T17:14:15.690-0800 I CONTROL [initandlisten] options: { net:

      { port: 27018 }

      , storage:

      { dbPath: ".", directoryPerDB: true, engine: "wiredTiger" }

      }
      2017-12-21T17:14:15.708-0800 W - [initandlisten] Detected unclean shutdown - ./mongod.lock is not empty.
      2017-12-21T17:14:15.708-0800 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
      2017-12-21T17:14:15.708-0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=18G,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),
      2017-12-21T17:14:16.230-0800 E STORAGE [initandlisten] WiredTiger (2) [1513905256:230271][30787:0x7fd6533e5c80], file:tmp/collection-2-8425982379140367284.wt, WT_SESSION.open_cursor: ./tmp/collection-2-8425982379140367284.wt: handle-open: open: No such file or directory
      2017-12-21T17:14:16.230-0800 E STORAGE [initandlisten] no cursor for uri: table:tmp/collection-2-8425982379140367284
      2017-12-21T17:14:16.230-0800 F - [initandlisten] Invalid access at address: 0x58
      2017-12-21T17:14:16.237-0800 F - [initandlisten] Got signal: 11 (Segmentation fault).

        1. dump.txt
          16 kB
          Greg
        2. WiredTiger.wt
          52 kB
          Greg

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            stuppie Greg
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: