Why can’t mongo receive responses from other nodes when creating replicaSet?

  mongodb, question

My mongodb version is 3.0.5, and the system is Ubuntu14.04, which runs on Aliyun.
I set up replicaSet on three nodes and return when rs.add joins other nodes on the initial primary node

{
 "ok" : 0,
 "errmsg" : "Quorum check failed because not enough voting nodes responded;   required 2 but only the following 1 voting nodes responded: xx.xxx.xxx.xx:xxxxx;  the following nodes did not respond affirmatively: yy.yyy.yyy.yy:yyyyy failed with Received heartbeat from member with the same member ID as ourself: 0  , zz.zzz.zzz.zzz:zzzzz failed with Received heartbeat from member with the same member ID as ourself: 0",
 "code" : 74
 }

The network between the nodes can certainly be connected, mongod of the other two nodes is also running, and the replSet entry in the configuration file is the same, so why can’t you receive a response?

Just now I also encountered this problem and reported this mistake.
{

"ok" : 0,
 "errmsg" : "Quorum check failed because not enough voting nodes responded;   required 2 but only the following 1 voting nodes responded: xx.xxx.xxx.xx:xxxxx;  the following nodes did not respond affirmatively: yy.yyy.yyy.yy:yyyyy failed with Received heartbeat from member with the same member ID as ourself: 0  , zz.zzz.zzz.zzz:zzzzz failed with Received heartbeat from member with the same member ID as ourself: 0",
 "code" : 74

}

The reason for my problem is that the keyfile files in the two instances are different.

The solution is to replace one keyfile with the other