Percona MongoDB v4.4.0-1 replication Error - Quorum check failed because not enough voting nodes responded - failed with Couldn't get a connection

Hi there,
facing the below error when adding the second node, mongo-repl-2 to the replica set

    pr-rep:PRIMARY> rs.add("mongo-repl-2:27017")
    {
            "operationTime" : Timestamp(1616521451, 1),
            "ok" : 0,
            "errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: 192.168.0.1:27017; the following nodes did not respond affirmatively: mongo-repl-2:27017 failed with Couldn't get a connection within the time limit of 1000ms",
            "code" : 74,
            "codeName" : "NodeNotFound",
            "$clusterTime" : {
                    "clusterTime" : Timestamp(1616521451, 1),
                    "signature" : {
                            "hash" : BinData(0,"KbkRsTiLaC/iTp6Ddn221lT9mmw="),
                            "keyId" : NumberLong("6942831470255800324")
                    }
            }
    }

Below are the config files of primary and secondary nodes respectively…:

> # 1.Primary node config file

> # Where and how to store data.
> storage:
>   dbPath: /var/lib/mongodb
>   journal:
>     enabled: true
> 
> # where to write logging data.
> 
> systemLog:
>   destination: file
>   logAppend: true
>   path: /var/log/mongodb/mongod.log
> 
> processManagement:
>   fork: true
>   pidFilePath: /var/run/mongod.pid
> 
> # network interfaces
> net:
>   port: 27017
>   bindIp: 127.0.0.1,192.168.0.1
> 
> # timezone
> processManagement:
>   timeZoneInfo: /usr/share/zoneinfo
> 
> # security:
> 
> security:
>  authorization: enabled
>  keyFile: /opt/mongo/mongo-keyfile
> 
> replication:
>   replSetName: pr-rep
> # 2.Secondary node config file

> 
> # Where and how to store data.
> storage:
>   dbPath: /var/lib/mongodb
>   journal:
>     enabled: true
> 
> # where to write logging data.
> 
> systemLog:
>   destination: file
>   logAppend: true
>   path: /var/log/mongodb/mongod.log
> 
> processManagement:
>   fork: true
>   pidFilePath: /var/run/mongod.pid
> 
> # network interfaces
> net:
>   port: 27017
>   bindIp: 127.0.0.1,192.168.0.2
> 
> # timezone
> processManagement:
>   timeZoneInfo: /usr/share/zoneinfo
> 
> # security:
> 
> security:
>  authorization: enabled
>  keyFile: /opt/mongo/mongo-keyfile
> 
> replication:
>   replSetName: pr-rep
1 Like

Hi there
can anyone look into this issue …?

1 Like