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

can't start with --shardsvr because the option --replSet is ignored yet required

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      I'm trying to start docker images as -shardsvr, but it returns the known error message "BadValue: Cannot start a shardsvr as a standalone server. Please use the option --replset to start the node as a replica set." despite using the option -replSet literally in the same command.

      So for some weird reason the check fails to properly recognize an existing --replSet option.

      This happens using the most recent docker images for MongoDB Community and Enterprise (5.0.5).

      Starting them as a replica set alone (without --shardsvr) works fine without errors, and gives me a properly working replica set.

      Attachments

        Activity

          People

            edwin.zhou@mongodb.com Edwin Zhou
            fabian.molini2@gmail.com Fabian Molini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: