Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongo error on I control hotfix

I have tried to start mongod.exe from my 2008 R2 server and im getting this error:

I CONTROL Hotfix kb2731284 or a later update is not installed, will zero-out files.

I didnt find any update or what is I CONTROL, someone have encounter with the problem? Thank you.

like image 738
Itsik Mauyhas Avatar asked Mar 28 '15 11:03

Itsik Mauyhas


11 Answers

Well, I just faced the same issue. I installed the fix, but saw nothing but same error. So that's how I got over it: just create a folder structure in your C catalog like this one: C:\data\db. So it worked for me perfectly. I use Windows 7 x64.

like image 85
Vadim Novozhilov Avatar answered Oct 17 '22 01:10

Vadim Novozhilov


I had to run the command in following format & it worked for me:

C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data

Ref: Original documentation link

like image 26
user1400290 Avatar answered Oct 17 '22 01:10

user1400290


In my case the problem was that I had a space in my data path: E:\Program Files\MongoDB\Data\

I ran dir /x within E:\ to get the short path for Program Files and used the short path instead: mongod.exe --dbpath E:\PROGRA~1\MongoDB\Data\

It worked. Shocking that spaces in paths are still an issue!

like image 38
Josh M. Avatar answered Oct 17 '22 00:10

Josh M.


The above error comes when mongodb not found the directory like "C:\data\db" which is by default when you install mongodb on your machine. So just go to c drive create a directory like "data\db" and now run the command "mongodb.exe".

If you want to relocate the database location to any other drive say D drive in that case create a directory like "D:\mongodb\data" and run the command like "mongodb.exe --dbpath d:\mongodb\data".

like image 23
Nikhil Shinde Avatar answered Oct 17 '22 01:10

Nikhil Shinde


I got the similar error

I CONTROL Hotfix kb2731284 or a later update is installed, will zero-out files.

Notice the message says later update is installed not later update is not installed in my case. But It was not starting the server.

Creating a different folder structure for the db Drive\<mongo-db-folder>\<yourdb>and providing it with --dbpath flag while running the mongod worked for me. The short name for Program Files PROGRA~1 didn't work for me. Maybe this has something to do with the rights managment.

like image 29
Shekhar Sahu Avatar answered Oct 17 '22 00:10

Shekhar Sahu


This known issue is in Windows 7. In Windows 8 this problem haven't appeared yet.

Firstly I would recommend to change your mongo installation path to path with folders names without gaps. For example, default mongo installation path is C:\program files\bla-bla... to avoid a wasting of time for looking for solutions of this issue, change your path to C:\mongo.. and make sure that you haven't names with gaps in your path.

After that install this hot-fix.

Another thing I suggest you to do: Create folder data\db in disc C.

You could also change your mongo work path each time you use mongo shell, but it's overwork by my modest opinion. I've done these steps and my mongo has started to work.

like image 22
Mr.B Avatar answered Oct 17 '22 00:10

Mr.B


Getting started on mongodb was not that difficult. Well I have been facing similar error on mongodb to start. I have getting error


Services

Windows could not start the MongoDB on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 100.

OK

very simple way to overcome.

Solution is the Mongodb service has not been started

to do so. Open CMD in admin mode and type NET START "Mongodb" > This will start the service.

Inspite of this if services is not getting started or mongo.exe is not starting. It is coz your mongodb has locked the file. Mongodb is shared file system and it gets locked. You need to for mongo.lock file in your created dir. Delete the file and start the service. You should be able to start now.

Cheers

like image 24
user5157405 Avatar answered Oct 17 '22 02:10

user5157405


By just creating a folder structure like below in my "C:\" drive , i resolved the issue :=>

c:\data\db

enter image description here

Sometime it works without creating the above mentioned folder structure, i.e. MONGODB itself creates the same (as it worked for me in Windows 8 laptop) but sometimes it needs to be explicitly done (as i need to for my windows 7 installed desktop)

Also you can browse through the complete installation and connection process for MONGODB.

like image 40
NIKHIL CHAURASIA Avatar answered Oct 17 '22 02:10

NIKHIL CHAURASIA


Similiar to above, but I had a typo in my mongodb.cfg file which meant that Mongo couldn't find the data directory on startup. Fixed the typo and Mongo starts. Given the previous response I suspect that the failure to start is more of an issue over finding the data directory than the Hotfix message

like image 26
user497087 Avatar answered Oct 17 '22 02:10

user497087


If you had got the below error message::

2015-05-29T05:05:54.207+0530 I CONTROL Hotfix KB2731284 or later update is not installed, will zero-out data files 2015-05-29T05:05:54.219+0530 I STORAGE [initandlisten] exception in initAndLis en: 29 Data directory D:\data\db\ not found., terminating 2015-05-29T05:05:54.219+0530 I CONTROL [initandlisten] dbexit: rc: 100

then just create a directory "D:\data\db\""

then restart the mongod

it should work fine

like image 28
anandharshan Avatar answered Oct 17 '22 01:10

anandharshan


you need to have mongod.exe running in one cmd window. then use another cmd window, write mongo and hit enter

like image 33
ronca85 Avatar answered Oct 17 '22 00:10

ronca85