[SERVER-16085] Windows service: net stop MongoDB gives an error even after stopping the service Created: 11/Nov/14  Updated: 31/Jul/15  Resolved: 18/Nov/14

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 2.6.5
Fix Version/s: 2.8.0-rc1

Type: Bug Priority: Minor - P4
Reporter: Jalpa Trivedi (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-6771 Windows Service: 'net stop mongodb' g... Closed
is duplicated by SERVER-17295 On Windows, service recovery actions ... Closed
is duplicated by SERVER-17189 Error while stopping MongoDB windows ... Closed
Operating System: Windows
Steps To Reproduce:
  • on 64 bit Windows system, download and install MongoDB community edition ZIP installer
  • follow the instructions from http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb to configure MongoDB as a Windows service
  • run net start MongoDB, and ensure that it started successfully
  • run net stop MongoDB
  • Notice that you get the following error:
    C:\>net stop MongoDB
    System error 109 has occurred.
    The pipe has been ended.
  • But the service is actually stopped. You can run net start MongoDB and it will start the service for you.
Participants:

 Description   

On Windows 64 bit machine, Community edition ZIP installer, service stop command "net stop MongoDB" from http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb does stop the service but gives system error.



 Comments   
Comment by Githook User [ 18/Nov/14 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-16085: Windows service: net stop MongoDB gives an error even after stopping the service
Branch: master
https://github.com/mongodb/mongo/commit/cf00df557a4ba4e313458838766c649edcba3258

Generated at Thu Feb 08 03:39:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.