[SERVER-34128]  Error in heartbeat Created: 26/Mar/18  Updated: 24/Apr/18  Resolved: 06/Apr/18

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 3.6.2, 3.6.3
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Rafi Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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



 Comments   
Comment by Ramon Fernandez Marina [ 06/Apr/18 ]

Apologies for the delay rafim@ecb.co.il. The error you're seeing usually occurs when an unauthorized host tries to authorize itself as a cluster member. Please take a look at the documentation for authentication.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 04:35:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.