I cannot run the mongoDB server

Asked

Viewed 189 times

-1

I’m new to mongoDB, so I don’t know how to fix this.

OS: Windows 7

follow the command:

C:\Users\Rodrigo>mongod

and the error obtained:

2018-03-21T16:09:27.837-0300 I CONTROL [main] 2018-03-21T16:09:27.841-0300 W CONTROL [main] 32-bit Servers don’t have Journal ing enabled by default. Please use --Journal if you want Durability. 2018-03-21T16:09:27.844-0300 I CONTROL [main] 2018-03-21T16:09:27.861-0300 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files 2018-03-21T16:09:27.874-0300 I CONTROL [initandlisten] Mongodb Starting : pid=2 232 port=27017 dbpath=C: data db 32-bit host=Rodrigo-PC 2018-03-21T16:09:27.876-0300 I CONTROL [initandlisten] targetMinOS: Windows Vis ta/Windows Server 2008 2018-03-21T16:09:27.880-0300 I CONTROL [initandlisten] db version v3.2.19-22-ge 7960bb2b6 2018-03-21T16:09:27.884-0300 I CONTROL [initandlisten] git version: e7960bb2b64 f154cbe5d0de04e2f0ed373fc92d0 2018-03-21T16:09:27.886-0300 I CONTROL [initandlisten] allocator: tcmalloc 2018-03-21T16:09:27.888-0300 I CONTROL [initandlisten] modules: None 2018-03-21T16:09:27.890-0300 I CONTROL [initandlisten] build Environment: 2018-03-21T16:09:27.891-0300 I CONTROL [initandlisten] distarch: i386 2018-03-21T16:09:27.894-0300 I CONTROL [initandlisten] target_arch: i386 2018-03-21T16:09:27.897-0300 I CONTROL [initandlisten] options: {} 2018-03-21T16:09:27.902-0300 I STORAGE [initandlisten] Exception in initAndList en: 28663 Cannot start server. The default Storage engine 'wiredTiger' is not av ailable with this build of mongod. Please specify a Different Storage engine Exp licitly, e.g. --storageEngine=mmapv1. , terminating 2018-03-21T16:09:27.906-0300 I CONTROL [initandlisten] dbexit: rc: 100

  • You have the folder C: data db ? is running as administrator?

1 answer

1


If you already have everything you need (including the C: data db folder) then the problem is probably a conflict of versions of your system with mongodb. I believe your OS is 32-bit, so you need to change your storage engine to the mechanisms that are suitable for the 32-bit system, like mmapv1.

Run the command below inside the folder where your mondodb is installed:

mongod --storageEngine=mmapv1 --dbpath [caminho_da_pasta_db]  //<-- geralmente o caminho padrão é c:\data\db

Similar question in stackoverflow : https://stackoverflow.com/questions/34243731/mongodb-cannot-start-server-the-default-storage-engine-wiredtiger-is-not-avai

Browser other questions tagged

You are not signed in. Login or sign up in order to post.