Can't start MongoDB: The service is not responding to the control function.

788 views
Skip to first unread message

paolo 1283

unread,
Apr 30, 2018, 2:12:20 AM4/30/18
to mongodb-user
Hi i just installed MongoDB Enterprise and followed every detail of the installation instructions here: https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-windows/

I am using Windows 10, i installed MongoDB on c:\mongodb then i created 3 more directories inside it, config\mongod.cfg for the config file, data\db and data\log\mongod.log so my directories default directories

c:\mongodb\bin\
c:\mongodb\data\db
c:\mongodb\data\log\mongod.log
c:\mongodb\config\mongod.cfg

then i run this: "C:\mongodb\bin\mongod.exe" --config "C:\mongodb\config\mongod.cfg" --install which didn't prompt any problem but
when i run "net start MongoDB" i just had this error: The service is not responding to the control function.  More help is available by typing NET HELPMSG 2186.

Then i checked the log file and this is what i got:

2018-04-29T07:37:03.542-0700 I CONTROL  [main] Trying to install Windows service 'MongoDB'
2018-04-29T07:37:03.552-0700 I CONTROL  [main] There is already a service named 'MongoDB', sleeping and retrying


I previously uninstalled an older version of  MongoDB Enterprise and even deleted the folder c:\mongodb but i didn't stop any service or used this net stop MongoDB, so after uninstall i just restarted my computer then install a new one,


How do i resolve this? thanks

Wan Bachtiar

unread,
May 3, 2018, 10:20:27 PM5/3/18
to mongodb-user

How do i resolve this?

Hi Paolo,

Based on the error message that you’ve posted, you need to uninstall the previous installed Windows Service first.
As part of the tutorials:

The last step for each of the above shows how to remove a MongoDB service when needed. Perhaps you can try to execute the command ?

If you have further question about uninstalling a deleted executable service, I would suggest to post on forum:
Microsoft: Support Windows 10 to reach wider audience with Windows expertise.

 installed MongoDB Enterprise

Worth mentioning that MongoDB Enterprise edition is a commercially supported product. If you or your company already has a commercial subscription, I would suggest to open a case in MongoDB Commercial Support Portal instead on this mailing list. If you are evaluating MongoDB Enterprise, send me a private message with your details and I can request a MongoDB Account Executive to reach out to you.

Alternatively, you can also use MongoDB Community version, see also Install MongoDB on Windows

Regards,
Wan.

Reply all
Reply to author
Forward
0 new messages