Details
-
Bug
-
Resolution: Gone away
-
Major - P3
-
None
-
3.6.0-rc5
-
None
-
ALL
-
v3.6
-
Sharding 2017-12-04
Description
I'm using the following configuration file to try to start up a config server to set up a sharded cluster:
net:
|
bindIp: 0.0.0.0
|
port: 27017
|
ssl:
|
mode: disabled
|
processManagement:
|
fork: "true"
|
replication:
|
replSetName: test
|
sharding:
|
clusterRole: configsvr
|
storage:
|
dbPath: data
|
engine: wiredTiger
|
wiredTiger:
|
collectionConfig:
|
blockCompressor: zlib
|
systemLog:
|
destination: file
|
path: mongod.log
|
When I run with it I get:
$ mongod -f conf
|
InvalidOptions: Cannot start a configsvr as a standalone server. Please start this node as a replica set using --replSet.
|
try 'mongod --help' for more information
|
The reason is this commit from SERVER-32051, which requires --replSet to be passed in the command line but does not take into account a replication.replSetName entry in the config file.
Attachments
Issue Links
- is related to
-
SERVER-32051 Require shard servers and config servers to be replica sets
-
- Closed
-