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

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

Due to the OS version/OS bit(32bit/64bit) mismatch of mongodb versions may cause this error.

 

Just run the below comment, then the issue will be resolved mostly.

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

It will start the mongod engine without any issue now. You can keep this terminal and open one more terminal or command prompt and run the mongo command to start working with mongodb 🙂
I have pasted the screenshot below to understand better,

the default storage engine 'wiredtiger' is not available

 

 

When I ran this command I got the error,

mongod –dbpath c:\mongodb\data\db

 

Error I got,

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

 

 

My Mongodb folder structure for your reference,

the default storage engine 'wiredtiger' is not available

 

Here data is the folder created by me to store the mongodb data’s. db is the folder I created inside the data folder. All the other files and bin folder came in the mongodb zip download itself.

 

 

Leave a Reply