HI Team,
I have started to build mongoDB replica setup. One Primary and two standby DB servers. Primary server and Standby server all configuration completed. I tried to add two standby node in primary but getting the below error. I tested ping primary and both standby, ping also fine. Kindly check and provide your valuable update.
pass-prod:PRIMARY> rs.add( { host: “mongodb1.localdomain.net:27017” } )
{
“operationTime” : Timestamp(1712481013, 1),
“ok” : 0,
“errmsg” : “Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: mongodb.local.com:27017; the following nodes did not respond affirmatively: mongodb1.localdomain.net:27017 failed with Error connecting to mongodb1.localdomain.net:27017 :: caused by :: Could not find address for mongodb1.localdomain.net:27017: SocketException: Host not found (authoritative)”,
“code” : 74,
“codeName” : “NodeNotFound”,
“$clusterTime” : {
“clusterTime” : Timestamp(1712481013, 1),
“signature” : {
“hash” : BinData(0,“ogShPI9if2uT5ZYfKoDdOeZr+CI=”),
“keyId” : NumberLong(“7354806202166935557”)
}
}
}
pass-prod:PRIMARY> rs.add( { host: “mongo2.localdomain.com:27017” } )
{
“operationTime” : Timestamp(1712481023, 1),
“ok” : 0,
“errmsg” : “Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: mongodb.local.com:27017; the following nodes did not respond affirmatively: mongo2.localdomain.com:27017 failed with Error connecting to mongo2.localdomain.com:27017 (64.91.248.15:27017) :: caused by :: Connection refused”,
“code” : 74,
“codeName” : “NodeNotFound”,
“$clusterTime” : {
“clusterTime” : Timestamp(1712481023, 1),
“signature” : {
“hash” : BinData(0,“imCyPsKx4Qzg/Jbru/a7hpdT0+o=”),
“keyId” : NumberLong(“7354806202166935557”)
}
}
}