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

mongos --reinstall option does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-rc0
    • Fix Version/s: 2.7.5
    • Component/s: Sharding
    • Environment:
      Windows 7. 2008+ build from 7/9/2012
    • Operating System:
      ALL
    • Sprint:
      Server 2.7.5

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: