I can't add a second member to a replica set

I am puzzled by a little problem while setting up a mongodb replica set.

I have already run this:


I have therefore one member in my replica set.

Then to add one more member I want to run:


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:; 
                     the following nodes did not respond affirmatively:
                     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?

Your primary is not able to communicate with the node you are trying to add
Is the node up and running.Can you connect to it
Could be some firewall or network issues
Does mongodb.log show more details?

Thanks for the reply. Yes all nodes are up and running.

I just solve the issue.

I was using this for the server certificates:

extendedKeyUsage = serverAuth

I changed it to:

extendedKeyUsage = serverAuth, clientAuth

Now it works. I guess this was needed for all the servers to communicate with each other.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.