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

Getting issue "ACCESS [conn298810] Unauthorized: not authorized on admin to execute command { endSessions: [ { id: UUID("acb7b7b0-5cfd-48d9-ae40-25e20d1ead63") } ], $db: "admin" }"

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

      I am using mongo-3.6.17 version and enabled the auth in that. With the auth, I am getting the below message contentiously in on the logs

      ACCESS [conn298810] Unauthorized: not authorized on admin to execute command { endSessions: [

      { id: UUID("acb7b7b0-5cfd-48d9-ae40-25e20d1ead63") }

      ], $db: "admin" }

      When I verified the mongo documentation, I have not seen any specific role to execute the endSession command. But in my user roles, I gave almost all high priority roles like dbAdmin, dbOwner ...etc but still getting the same issue. Is there any way to avoid this issue ?

        1. jira_logs_1.txt
          58 kB
        2. jira_logs.txt
          6 kB

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            sivag9@gmail.com Sambasivarao Gajula
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: