Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40434

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    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

        Activity

          People

            daniel.hatcher@mongodb.com Danny Hatcher (Inactive)
            fchen Fushan Chen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: