Can not add nodes to replica set

I am using rs.add to add the second node to

m103-repl:PRIMARY> rs.add("localhost:27002")
        "operationTime" : Timestamp(1617048277, 1),
        "ok" : 0,
        "errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: localhost:27001; the following nodes did not respond affirmatively: localhost:27002 failed with Error connecting to localhost:27002 ( :: caused by :: Connection refused",
        "code" : 74,
        "codeName" : "NodeNotFound",
        "$clusterTime" : {
                "clusterTime" : Timestamp(1617048277, 1),
                "signature" : {
                        "hash" : BinData(0,"VU3GKNWtyslxzfeI3JobQOeCEc8="),
                        "keyId" : NumberLong("6945156924463644673")
m103-repl:PRIMARY> ^C

Please help

Now its working, I started the other mongod process for the other 2 host.

Hi, @Bernardo_Godinez,

Welcome back to the MongoDB Community forum.

I’m glad that things are working fine on your side.

If you still have any questions, feel free to reach out.

Happy Learning.

1 Like