-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.2, 3.6.3
-
Component/s: Admin
-
Labels:None
When ever i enable authanticate on a replication set of mongo db
i get this error in the log Error in heartbeat
response status: Unauthorized: not authorized on admin to execute command { replSetHeartbeat: "speech-set", configVersion: 1, hbv: 1, from: "spch-db3.wsldevops.com:27017", fromId: 2, term: 17, $replData: 1, $clusterTime: { clusterTime: Timestamp(1522069631, 1), signature: { hash: BinData(0, F45D0A73BE248B15A7DFCF05196EAFB2D585687F), keyId: 6529473634321301505 } }, $db: "admin" } 2018-03-26T13:08:28.746+0000 I ACCESS [conn14] Unauthorized: not authorized on admin to execute command { replSetHeartbeat: "speech-set", configVersion: 1, hbv: 1, from: "spch-db2.wsldevops.com:27017", fromId: 1, term: 17, $replData: 1, $clusterTime: { clusterTime: Timestamp(1522069631, 1), signature: { hash: BinData(0, F45D0A73BE248B15A7DFCF05196EAFB2D585687F), keyId: 6529473634321301505 } }, $db: "admin" }
and the when i connect to mongo using a user as root it logs in as other and cant check status on other replications db.ismaster() is false and secondary false
storage engine wiredTiger
Please help