[SERVER-28505] Not able to add a node to repica set Created: 27/Mar/17 Updated: 27/Oct/23 Resolved: 11/Apr/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alok Rawat | Assignee: | Mark Agarunov |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
When I am trying to add a node to the cluster we are getting the below error. -
mongo version— 3.0.8
|
| Comments |
| Comment by Ramon Fernandez Marina [ 09/Aug/18 ] | |||||||||||
|
dbapower, can you please elaborate on what you're trying to do? If you think you've found a bug, please open a new SERVER ticket, otherwise please post your question on the mongodb-user group group. Thanks, | |||||||||||
| Comment by He Lei [ 09/Aug/18 ] | |||||||||||
|
Hi mark.agarunov,the local database system.replset collection can not be update or delete,i found the information on the doc: https://docs.mongodb.com/manual/reference/built-in-roles/index.html the system.replset collection only have these privileges.
so,is the https://jira.mongodb.org/browse/DOCS-4798 is not correct? | |||||||||||
| Comment by Mark Agarunov [ 11/Apr/17 ] | |||||||||||
|
Hello aloksinghrawat@gmail.com, To execute operations on the local database, a you must explicitly grant a permission of readWrite on the local database. This intentional and is due to a separation of privileges. The root role is a super-set of permissions affecting user data specifically, not system data, therefore the permissions must be explicitly granted to perform operations on local. Please note that 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. A question like this involving more discussion would be best posted on the mongodb-user group. Thanks, | |||||||||||
| Comment by Alok Rawat [ 29/Mar/17 ] | |||||||||||
|
Hi Thomas, Would you suggest to assign __system role to a user on local DB and then execute this delete ? Regards, | |||||||||||
| Comment by Alok Rawat [ 28/Mar/17 ] | |||||||||||
|
Thanks Thomas, In an another replica set we encountered the same issue where authentication is also enabled. i am getting authentication fail even by the user which has 'root' role allocated - goibiboCMS1:PRIMARY> db.system.replset.remove({_id:ObjectId("5873b330d5237e47e518f1ce")}) , limit: 0.0 } ], ordered: true }" Regards, | |||||||||||
| Comment by Kelsey Schubert [ 28/Mar/17 ] | |||||||||||
|
I'm glad you were able to resolve the issue. From your responses, I do not see anything to indicate a bug in the MongoDB server. However, if you encounter this behavior again and can provide steps to reproduce we will gladly continue to investigate. Kind regards, | |||||||||||
| Comment by Alok Rawat [ 28/Mar/17 ] | |||||||||||
|
db.system.replset.remove({_id:ObjectId("58cfb609db8dece90d1819b2")}) Worked for me. able to add node after remove these un wanted entries. Regards, | |||||||||||
| Comment by Alok Rawat [ 27/Mar/17 ] | |||||||||||
|
Hello Thomas, Here is output-
Seems there is some unexpected data in the collection. i tried to remove these IDs but could not do so. Thanks, | |||||||||||
| Comment by Kelsey Schubert [ 27/Mar/17 ] | |||||||||||
|
Would you please provide the output of db.getSiblingDB("local").system.replset.find()? Thank you, |