MongoDB Enterprise HomeRepl:PRIMARY> rs.add( { host: "Dell-Latitude" } ){
"ok" : 0,
"errmsg" : "Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: TheWho:27017; the following nodes did
not respond affirmatively: Dell-Latitude:27017 failed with Cache Reader No keys found for HMAC that is valid for time: { ts: Timestamp(1521299700, 1) } with id:
6533307377964285953",
"code" : 74,
"codeName" : "NodeNotFound",
"operationTime" : Timestamp(1521299700, 1),
"$clusterTime" : {
"clusterTime" : Timestamp(1521299700, 1),
"signature" : {
"hash" : BinData(0,"BV2syVHOpazX3E/+6IqiDXKsY+k="),
"keyId" : NumberLong("6533307377964285953")
}
}
}
MongoDB Enterprise HomeRepl:PRIMARY> rs.status()
{
"set" : "HomeRepl",
"date" : ISODate("2018-03-17T16:07:28.843Z"),
"myState" : 1,
"term" : NumberLong(4),
"heartbeatIntervalMillis" : NumberLong(2000),
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(1521302840, 1),
"t" : NumberLong(4)
},
"readConcernMajorityOpTime" : {
"ts" : Timestamp(1521302840, 1),
"t" : NumberLong(4)
},
"appliedOpTime" : {
"ts" : Timestamp(1521302840, 1),
"t" : NumberLong(4)
},
"durableOpTime" : {
"ts" : Timestamp(1521302840, 1),
"t" : NumberLong(4)
}
},
"members" : [
{
"_id" : 0,
"name" : "TheWho:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 33634,
"optime" : {
"ts" : Timestamp(1521302840, 1),
"t" : NumberLong(4)
},
"optimeDate" : ISODate("2018-03-17T16:07:20Z"),
"electionTime" : Timestamp(1521269244, 1),
"electionDate" : ISODate("2018-03-17T06:47:24Z"),
"configVersion" : 3,
"self" : true
}
],
"ok" : 1,
"operationTime" : Timestamp(1521302840, 1),
"$clusterTime" : {
"clusterTime" : Timestamp(1521302840, 1),
"signature" : {
"hash" : BinData(0,"qOXbSOsemSr9cqkFJ5d7Jydmzh4="),
"keyId" : NumberLong("6533307377964285953")
}
}
}
MongoDB Enterprise HomeRepl:PRIMARY>
"Did not find local replica set configuration document at startup; NoMatchingDocument: Did not find replica set configuration document in local.system.replset"
Hi,
From the error message you posted:
Quorum check failed because not enough voting nodes responded; required 2 but only the following 1 voting nodes responded: TheWho:27017; the following nodes did
not respond affirmatively: Dell-Latitude:27017 failed with Cache Reader No keys found for HMAC that is valid for time: ….
I believe the cause of the error is that TheWho
cannot find Dell-Latitude
by name.
Could you try pinging Dell-Latitude
and HP-Basement
from TheWho
(and vice versa)?
If you find that all the machines cannot find each other using ping
, you might want to add all the machine’s IP addresses into the Hosts file in each machine.
Best regards
Kevin