hi,
I am setting up mongodb replica set cluster with 3 nodes. I have mongo v 4.4.17 installed on all three nodes. The cluster is initialized with no error but while adding secondary node using rs.add(“SECONDNODE:27017”) it shows following error:
{
"operationTime" : Timestamp(1667896491, 1),
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: FIRSTNODE:27017; the following nodes did not respond affirmatively: SECONDNODE:27017 failed with Error connecting to SECONDNODE:27017 :: caused by :: Could not find address for SECONDNODE:27017: SocketException: Host not found (authoritative)",
"code" : 74,
"codeName" : "NodeNotFound",
"$clusterTime" : {
"clusterTime" : Timestamp(1667896491, 1),
"signature" : {
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
"keyId" : NumberLong(0)
}
}
}
I can telnet and ping both servers form each server. On adding second node with ip address, the second node doesn’t acknowlede replication.