Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
None
-
ALL
-
Description
I tried to follow steps in https://docs.mongodb.com/v3.6/tutorial/restore-sharded-cluster/#d-restore-each-shard-replica-set
to restore a 3.6 sharded cluster.
I got stuck on this step, with error:
WriteCommandError({
|
"ok" : 0,
|
"errmsg" : "not authorized on admin to execute command { delete: \"system.version\", ordered: true, lsid: { id: UUID(\"2da72adc-460e-4efd-90a4-80465b219566\") }, $db: \"admin\" }",
|
"code" : 13,
|
"codeName" : "Unauthorized"
|
})
|
This happened even when I granted my root/admin user with 'readWrite' or 'restore' roles. I was able to delete this document only after I granted it with '__system' role, which is not a recommended practice.
I haven't seen any discussion about this problem in mongodb documentation or on the internet.
Is there anything I'm missing here?
Attachments
Issue Links
- is documented by
-
DOCS-12592 Restoring from Sharded Collection instructions fail with authentication
-
- Closed
-