HI,
Due to different errors,i did mongo package uninstallation and installed it again.And while initiate replicaset by passing all host name am getting below error.
rs.initiate({
… _id : “rs0”,
… members: [
… { _id : 0, host: “abc0a:27019” },
… { _id : 1, host: “abc1a:27019” },
… { _id : 2, host: “abc2a:27019” }
… ]
… })
{
“operationTime” : Timestamp(0, 0),
“ok” : 0,
“errmsg” : "replSetInitiate quorum check failed because not all proposed set members responded affirmatively: abc1a:27019 failed with Error connecting to abc1a:27019 (XX.XX.X.XX:27019) :: caused by :: Connection refused, abc2a:27019 failed with Error connecting to abc2a:27019 (XX.XX.X.XX:27019) :: caused by :: Connection refused,
“code” : 74,
“codeName” : “NodeNotFound”,
“$clusterTime” : {
“clusterTime” : Timestamp(0, 0),
“signature” : {
“hash” : BinData(0,“AAAAAAAAAAAAAAAAAAAAAAAAAAA=”),
“keyId” : NumberLong(0)
}
}
}