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

mongos --reinstall option does not work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.5
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Sharding
    • Environment:
      Windows 7. 2008+ build from 7/9/2012
    • ALL
    • Server 2.7.5

      Install mongos as a service using mongos.exe --install --logpath<> --configdb <>
      Now create a config file mongos.conf
      configdb = localhost:30000
      logpath = c:\data\mongos.log
      serviceDisplayName = Modified Service Name
      serviceDescription = Modified Service Description

      try to reinstall service with mongos.exe --reinstall --config mongos.conf

      This fails with

      Tue Jul 10 23:50:31 warning: running with 1 config server should be done only for testing purposes and is not recommended for production
      Tue Jul 10 23:50:31 Trying to remove Windows service 'MongoS'
      Tue Jul 10 23:50:31 Service 'MongoS' removed
      Tue Jul 10 23:50:31 Trying to install Windows service 'MongoS'
      Tue Jul 10 23:50:31 Error creating service: The name is already in use as either a service name or a service display name. (1078)

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: