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

mongod --install uses wrong image path depending on current working directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.6.5, 1.8.1
    • Fix Version/s: 2.0.7, 2.1.0
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      Windows Server 2008 x64
    • Operating System:
      Windows

      Description

      In our deployment I add the <mongodb install folder>\bin folder to the System PATH environment variable to save having to change to the MongoDB folder everytime I need to use commandline tools like mongo and mongodump. When I run "mongod --install..." from a working directory anywhere but the bin folder, the installer defaults to configuring the image path of the service in the registry to "C:\windows\system32\mongod.exe" and therefore the service won't start. It's easy to fix afterwards in the registry, or to run the installer from the bin directory but the documentation doesn't make this issue clear.

      Shouldn't mongod be able to find the path it is installed to and use that for the service configuration.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tad Tad Marshall
              Reporter:
              milhouse Steven Hirschorn
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: