Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5115

Service install with just a config file results in a service that cannot be started

    • Server Development Platform
    • Fully Compatible
    • Windows

      Create a simple config file

      install = true
      dbpath = c:\data\db
      logpath = c:\data\db\mongod.log
      logappend = true
      port = 29000
      

      If you run

      c:\mongo\mongod.exe --config c:\data\mongod.conf
      

      this will result in a windows service that is created but cannot be started from either the services panel or the command line using net start MongoDB.
      When starting from the command line you get

      The service is not responding to the control function.
      More help is available by typing NET HELPMSG 2186.
      

      When starting from the services panel you get

      Windows could not start the Mongo DB service on Local Computer
      Error 1053: The service did not respond to the start or control request in a timely fashion
      

      The image path from the registry is

      "c:\mongo\mongod.exe" --config  "C:\data\mongos.conf"  
      

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: