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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Edwin Zhou
            Reporter:
            Fabian Molini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: