[Resolved] exception in initandlisten mongodb

[Resolved] exception in initandlisten mongodb:

 

Ensure you have done all the below steps,

  1. Extracted and kept the files something like mongodb (I consider that you kept in c drive)
  2. You may be created the folder for data/db as well in the mongodb (thay looks like this, c:\mongodb\data\db)
  3. After the above things you would have opened the terminal and tried running the below command,

mongod –dbpath c:\mongodb\data\db

4. You would have got the error something like this,

C:\mongodb\bin>mongod –dbpath c:\mongodb\data\db
2016-12-21T02:06:15.540+0530 I CONTROL [main]
2016-12-21T02:06:15.541+0530 W CONTROL [main] 32-bit servers don’t have journaling enabled by default. Please use –journal if you want durability.
2016-12-21T02:06:15.541+0530 I CONTROL [main]
2016-12-21T02:06:15.547+0530 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
2016-12-21T02:06:15.551+0530 I CONTROL [initandlisten] MongoDB starting : pid=7528 port=27017 dbpath=c:\mongodb\data\db 32-bit host=Naveen-PC
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] db version v3.2.11-36-g1ab8780
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] git version: 1ab87806b9ad157bb205403f2c7e0226988af64f
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] allocator: tcmalloc
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] modules: none
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] build environment:
2016-12-21T02:06:15.552+0530 I CONTROL [initandlisten] distarch: i386
2016-12-21T02:06:15.553+0530 I CONTROL [initandlisten] target_arch: i386
2016-12-21T02:06:15.553+0530 I CONTROL [initandlisten] options: { storage: { dbPath: “c:\mongodb\data\db” } }
2016-12-21T02:06:15.554+0530 I STORAGE [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine ‘wiredTiger’ is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. –storageEngine=mmapv1., terminating

You can resolve the above issue by running the below command,

mongod –storageEngine=mmapv1 –dbpath c:\mongodb\data\db

 

 

This will resolve your issue. If still facing the issue, just check the below link once to get some more details, which may also help you to fix this issue as well.

[Resolved] the default storage engine ‘wiredtiger’ is not available

 

Leave a Reply