Root user can't delete minOpTimeRecovery from admin.system.version

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

       

            Assignee:
            Danny Hatcher (Inactive)
            Reporter:
            Fushan Chen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: