Hi. Still having trouble. Here is my rs.isMaster()–MongoDB Enterprise m103-example:PRIMARY> rs.isMaster()
{
“hosts” : [
“192.168.103.100:27001”,
“192.168.103.100:27002”,
“192.168.103.100:27003”
],
“setName” : “m103-example”,
“setVersion” : 3,
“ismaster” : true,
“secondary” : false,
“primary” : “192.168.103.100:27001”,
“me” : “192.168.103.100:27001”,
“electionId” : ObjectId(“7fffffff0000000000000006”),
“lastWrite” : {
“opTime” : {
“ts” : Timestamp(1572295515, 1),
“t” : NumberLong(6)
},
“lastWriteDate” : ISODate(“2019-10-28T20:45:15Z”),
“majorityOpTime” : {
“ts” : Timestamp(1572295515, 1),
“t” : NumberLong(6)
},
“majorityWriteDate” : ISODate(“2019-10-28T20:45:15Z”)
},
“maxBsonObjectSize” : 16777216,
“maxMessageSizeBytes” : 48000000,
“maxWriteBatchSize” : 100000,
“localTime” : ISODate(“2019-10-28T20:45:19.693Z”),
“logicalSessionTimeoutMinutes” : 30,
“minWireVersion” : 0,
“maxWireVersion” : 6,
“readOnly” : false,
“ok” : 1,
“operationTime” : Timestamp(1572295515, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1572295515, 1),
“signature” : {
“hash” : BinData(0,“xS0Ngbodthf+Yi3wVgPoDGcWxLk=”),
“keyId” : NumberLong(“6750782355507511297”)
}
}
}
And my rs.status() MongoDB Enterprise m103-example:PRIMARY> rs.status()
{
“set” : “m103-example”,
“date” : ISODate(“2019-10-28T20:49:08.084Z”),
“myState” : 1,
“term” : NumberLong(6),
“syncingTo” : “”,
“syncSourceHost” : “”,
“syncSourceId” : -1,
“heartbeatIntervalMillis” : NumberLong(2000),
“optimes” : {
“lastCommittedOpTime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“readConcernMajorityOpTime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“appliedOpTime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“durableOpTime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
}
},
“members” : [
{
“_id” : 0,
“name” : “192.168.103.100:27001”,
“health” : 1,
“state” : 1,
“stateStr” : “PRIMARY”,
“uptime” : 688,
“optime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“optimeDate” : ISODate(“2019-10-28T20:49:05Z”),
“syncingTo” : “”,
“syncSourceHost” : “”,
“syncSourceId” : -1,
“infoMessage” : “”,
“electionTime” : Timestamp(1572295103, 1),
“electionDate” : ISODate(“2019-10-28T20:38:23Z”),
“configVersion” : 3,
“self” : true,
“lastHeartbeatMessage” : “”
},
{
“_id” : 1,
“name” : “192.168.103.100:27002”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 651,
“optime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“optimeDurable” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“optimeDate” : ISODate(“2019-10-28T20:49:05Z”),
“optimeDurableDate” : ISODate(“2019-10-28T20:49:05Z”),
“lastHeartbeat” : ISODate(“2019-10-28T20:49:06.705Z”),
“lastHeartbeatRecv” : ISODate(“2019-10-28T20:49:07.564Z”),
“pingMs” : NumberLong(0),
“lastHeartbeatMessage” : “”,
“syncingTo” : “192.168.103.100:27001”,
“syncSourceHost” : “192.168.103.100:27001”,
“syncSourceId” : 0,
“infoMessage” : “”,
“configVersion” : 3
},
{
“_id” : 2,
“name” : “192.168.103.100:27003”,
“health” : 1,
“state” : 2,
“stateStr” : “SECONDARY”,
“uptime” : 614,
“optime” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“optimeDurable” : {
“ts” : Timestamp(1572295745, 1),
“t” : NumberLong(6)
},
“optimeDate” : ISODate(“2019-10-28T20:49:05Z”),
“optimeDurableDate” : ISODate(“2019-10-28T20:49:05Z”),
“lastHeartbeat” : ISODate(“2019-10-28T20:49:06.831Z”),
“lastHeartbeatRecv” : ISODate(“2019-10-28T20:49:07.785Z”),
“pingMs” : NumberLong(0),
“lastHeartbeatMessage” : “”,
“syncingTo” : “192.168.103.100:27002”,
“syncSourceHost” : “192.168.103.100:27002”,
“syncSourceId” : 1,
“infoMessage” : “”,
“configVersion” : 3
}
],
“ok” : 1,
“operationTime” : Timestamp(1572295745, 1),
“$clusterTime” : {
“clusterTime” : Timestamp(1572295745, 1),
“signature” : {
“hash” : BinData(0,“PWWtmcg3gY6ArWNKIGdJHEMg/4Y=”),
“keyId” : NumberLong(“6750782355507511297”)
}
}
}
and my db.getUsers() [ ]
It appears that I don’t have the repl set name correct and I may not have set up the admin user correctly. Tried fixing but still no luck.
Not sure what to do next.