Error on adding an arbiter

All we need is an easy explanation of the problem, so here it is.

Adding 5th node getting an error

"Our replica set configuration is invalid or does not include us

Presently all 4 nodes are healthy.

node arb1 arb2
rs1 m1,m2,m2 a1

when I try to add a2 both the arbiters will go unhealhty immediately whereas my arbiter is healhty on itself but not healthy in replica set.

node arb1 arb2
rs1 m1,m2,m2 a1 a2

Error for arbiter in replica set –

a1 – "lastHeartbeatMessage" : "Our replica set configuration is invalid or does not include us"

a2 – "lastHeartbeatMessage" : "Couldn't get a connection within the time limit"

where,

m- data nodes

a- arbiters

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

Replica set should have ONLY one arbiter and ONLY when there is an even number of data-bearing nodes.

Your replica set has already an odd number of data-bearing nodes (m1, m2, and m3), so there should not be any arbiters.

Those error messages means:

a1 - rs.conf() don't have that a1 node in the list of that replica sets' config, it may have wrong IP or port-number
a2 - there is firewall (or similar) what prevents connection with other RS nodes.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply