Con't connect between replica

“Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: 192.168.103.100:27001; the following nodes did not respond affirmatively: m103.mongodb.university:27002 failed with Connection refused”

this has been fixed. please ignore. thanks

1 Like

How do you fix that, I have the same problem.

Ok, I found the solution. You need to add replicas using the IP 192.168.103.100 instead of the host name m103.mongodb.university.

3 Likes

Weeeelll :smiley: Funnily enough, that will be part of another exercise :wink:

I got this similar error from PRIMARY. After hours of experimentation - noticed I had in error ran ‘rs.initiate()’ on SECONDARY as well.

This figured out when I ran ‘mongo --port 27002’ it resulted into -
MongoDB Enterprise m103-repl:PRIMARY>

The solution is :a) Stop mongod and mongo session of port 27002
b) Modify the ‘mongod-repl-2.cfg’ by commenting out #replication entries
c) Delete /var/mongodb/db/3 folder
d) Start mongod and mongo session on port 27002
e) exit
f) recreate /var/mongodb/db/3 folder and then uncomment ‘replication’ entry.
g) connect to PRIMARY and attempt rs.add(“192.168.103.100:27002”) and tada… it worked!!!

Thanks for the tip !!