Validator won validate first lab

vagrant@m103:/var/mongodb/config$ mongo --username m103-admin --password m103-pass --authenticationDatabase admin --port 27001 MongoDB shell version v3.6.10 connecting to: mongodb://127.0.0.1:27001/?authSource=admin&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("45d47361-87c4-4461-b73e-3e638c12c510") } MongoDB server version: 3.6.10 Server has startup warnings: 2019-02-26T11:56:04.953+0000 I STORAGE [initandlisten] 2019-02-26T11:56:04.953+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2019-02-26T11:56:04.953+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2019-02-26T11:56:06.357+0000 I CONTROL [initandlisten] MongoDB Enterprise M103:PRIMARY> rs.status() { "set" : "M103", "date" : ISODate("2019-02-26T11:56:33.362Z"), "myState" : 1, "term" : NumberLong(9), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "heartbeatIntervalMillis" : NumberLong(2000), "optimes" : { "lastCommittedOpTime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "readConcernMajorityOpTime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "appliedOpTime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "durableOpTime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) } }, "members" : [ { "_id" : 0, "name" : "192.168.103.100:27001", "health" : 1, "state" : 1, "stateStr" : "PRIMARY", "uptime" : 29, "optime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "optimeDate" : ISODate("2019-02-26T11:56:28Z"), "syncingTo" : "", "syncSourceHost" : "", "syncSourceId" : -1, "infoMessage" : "could not find member to sync from", "electionTime" : Timestamp(1551182176, 1), "electionDate" : ISODate("2019-02-26T11:56:16Z"), "configVersion" : 3, "self" : true, "lastHeartbeatMessage" : "" }, { "_id" : 1, "name" : "192.168.103.100:27002", "health" : 1, "state" : 2, "stateStr" : "SECONDARY", "uptime" : 25, "optime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "optimeDurable" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "optimeDate" : ISODate("2019-02-26T11:56:28Z"), "optimeDurableDate" : ISODate("2019-02-26T11:56:28Z"), "lastHeartbeat" : ISODate("2019-02-26T11:56:32.765Z"), "lastHeartbeatRecv" : ISODate("2019-02-26T11:56:32.915Z"), "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" : 23, "optime" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "optimeDurable" : { "ts" : Timestamp(1551182188, 1), "t" : NumberLong(9) }, "optimeDate" : ISODate("2019-02-26T11:56:28Z"), "optimeDurableDate" : ISODate("2019-02-26T11:56:28Z"), "lastHeartbeat" : ISODate("2019-02-26T11:56:32.765Z"), "lastHeartbeatRecv" : ISODate("2019-02-26T11:56:31.501Z"), "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(1551182188, 1), "$clusterTime" : { "clusterTime" : Timestamp(1551182188, 1), "signature" : { "hash" : BinData(0,"Er9K6ny9mX0oLQNKQB9Xx72UTlU="), "keyId" : NumberLong("6662079319361191938") } } } MongoDB Enterprise M103:PRIMARY> use admin switched to db admin MongoDB Enterprise M103:PRIMARY> show collections system.keys system.users system.version MongoDB Enterprise M103:PRIMARY> db.system.users.find().pretty() { "_id" : "admin.m103-admin", "user" : "m103-admin", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "rfknWzjM5fCsQbgBuTVWhQ==", "storedKey" : "jev7IeHbq2mVsEfjMfoozOCyy6A=", "serverKey" : "t5URvEDgvHNrAiRYD0h8d2E6vzo=" } }, "roles" : [ { "role" : "root", "db" : "admin" } ] } MongoDB Enterprise M103:PRIMARY> exit

Hi @Steliyan_29239,

Please elaborate your query.

Kanika

Hi, well I am able to create the rs, I can see the primary and the two secondaries, but the validator keeps saying it cant access the rs and to check the port and the admin credentials. As you can see from my log up there this is not the case …

Hi @Steliyan_29239,

Thanks for elaborating the issue here. The members’ configuration seems perfect.

One thing to check here:

  • The replica set needed to be “m103-repl” which is “M103” in your case.

    "set" : "m103-repl" 
    

Kanika