Mongo error on I control hotfix

后端 未结 17 2003
陌清茗
陌清茗 2020-12-23 11:45

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-o         


        
相关标签:
17条回答
  • 2020-12-23 12:22

    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!

    0 讨论(0)
  • 2020-12-23 12:24

    I just deleted mongod.lock in my db directory, and now it works fine.

    0 讨论(0)
  • 2020-12-23 12:25

    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.

    0 讨论(0)
  • 2020-12-23 12:25

    Well, that is a common problem when you shut down your machine and mongodb server is running, it is pretty clear that MongoDb has created a lock in your db folder.

    Just go to c:\data\db and remove MONGOD.LOCK

    Run Mongo and it will work again.

    0 讨论(0)
  • 2020-12-23 12:26

    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".

    0 讨论(0)
  • 2020-12-23 12:27

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

    c:\data\db

    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.

    0 讨论(0)
提交回复
热议问题