Mongodb – Windows could not start mongodb service on local computer. For more info., review the System Event Log

databasemongodb

I am using Windows 32-bit machine and tried to start MongoDB service from Windows > services as shown below.

enter image description here

However, I am unable to start the MongoDB service from it and throws the following error.

enter image description here

When I try using cmd prompt, I am getting the following error:

Network Failed to connect to 127.0.0.1:27017, reason: errno:10061 No
connection could be made because the target machine actively refused
it.

Error: Couldn't connect to server 127.0.0.1:27017 <127.0.0.1>,
connection attempt failed.

enter image description here

Best Answer

I had same an issue.

Try to remove mongod.lock file from your Mongo data directory.

For example mine is "C:\Program Files\MongoDB\Data\mongod.lock" and after deleting file start the MongoDB service and it's work like charm.

Related Topic