1

When I try to start my MongoDB service I keep getting the following message:

Windows could not start the MongoDB service on Local Computer
Error: 1067: The process terminated unexpectedly

MongoDB version: 2.6

5
  • Try running mongod.exe from elevated command line and see if you get more details.
    – Alex S
    Feb 1 '19 at 21:39
  • 1
    Check if you have enough space on your hard drive. MongoDB usually requires 3-5GB of free space. Feb 1 '19 at 21:43
  • The docker image for Mongo is very easy to use, have you thought about using this rather than installing mongo?
    – Gravypower
    Feb 1 '19 at 21:55
  • 1
    Check the log files in Mongo directory. Usually provide a good idea. The windows logs provide zero idea.
    – Chris Auer
    Feb 2 '19 at 0:42
  • Thanks @MarekMusielak and Chris, that's what I found on my logs: "ERROR: Insufficient free space for journal files". Marek, please convert your comment into an answer and I'll gladly accept it :) Feb 2 '19 at 11:29
2

I had same issue and the reason was that I didn't have enough free space on the hard drive.

MongoDB usually requires 3-5GB of free space.

If there is not enough space, the service will not start and you will see message:

Windows could not start the MongoDB service on Local Computer

Error: 1067: The process terminated unexpectedly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.