I am puzzled by a little problem while setting up a mongodb replica set.
I have already run this:
rs.initiate()
I have therefore one member in my replica set.
Then to add one more member I want to run:
rs.add(‘192.168.1.2:22331’)
But here is the message I get:
{
"operationTime" : Timestamp(1611808548, 1),
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded;
required 2 but only the following 1 voting nodes responded: 192.168.1.2:22330;
the following nodes did not respond affirmatively: 192.168.1.2:22331
failed with stream truncated",
"code" : 74,
"codeName" : "NodeNotFound",
"$clusterTime" : {
"clusterTime" : Timestamp(1611808548, 1),
"signature" : {
"hash" : BinData(0,"PPsSmtIsQGW/nLZkWYh0J3jENLs="),
"keyId" : NumberLong("6922656793390743556")
}
}
}
I am obviously missing something.
The message sounds weird. How could there be more than one voting member when there is only one member?