Troubleshooting the MongoDB Installation for had a lot of great publicity last week. JPT published a piece recently entitled Time to Enlist in the Analytics Army, which name drops and the NoSQL database that it is establishing in the industry.

If this is your first time installing, the MongoDB part can be a little tricky. I’ve put together some quick tips on getting Mongo installed. Be sure to keep the installation guide open as you do the setup and if you have trouble, try this troubleshooting guide:

My installation failed during the MongoDB .msi install

This could be a problem with the version. Not sure the version to get? Use the following script to get a read out of what you need to have:

systeminfo | findstr /B /C:”OS Name” /C:”OS Version” /C:”System Type”

Alternatively, you chose the Complete installation with all the add-ons instead of just the Server edition. will run just fine without any of the frills packed into the Community edition installation.

Creating the Windows service script returned the manual for sc.exe

The script in the installation guide was written for Command Prompt. If you used PowerShell to create the folder structure that is fine, just switch over to the command prompt for creating the service

You got “The system cannot find the file specified”.

Don’t forget to switch out your username! The example script leaves a section <your username> that you need to switch out. Additionally, check the filename that you created you might have an extra letter in there somewhere.

You got “[SC] OpenSCManager FAILED 5: Access is denied.”

Don’t forget to run CMD.EXE under Administrative privileges! This is a common mistake, the script is fine, open command prompt under higher privileges using the steps below.

  1. Type +R
  2. Enter in “cmd”
  3. Press Ctrl + Shift + Enter to run the command as an administrator.

Let me know if you encounter different issues and I can write a followup article for more quick tips.


Lucas Wood

Posted in Uncategorized.

Leave a Reply

Your email address will not be published.