Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1684

Mongo::Auth::Unauthorized: User ... is not authorized to access ...

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.5.3, 2.6.2
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Environment:
      Mongoid: 5.1.6, 5.2.0
      MongoDB: 3.2.21, 3.6.9
      Ruby: 2.3.0
      Rails: 4.2.7.1

      Description

      Dear All,

      We keep getting the following error when upgrading mongo gem from 2.4.3 to 2.5.3 and 2.6.2.
      Rolling back the driver to 2.4.3 worked without problem.

      Mongo::Auth::Unauthorized: User ... is not authorized to access ...

      The errors seem to occur intermittently.

      We are using Mongoid with the following options:

      • database
      • hosts
      • options
        • user:
        • password:
        • auth_mech:
        • read:
          • mode:
        • replica_set:
        • connect: :replicaset

      The supported mechanisms in our MongoDB are "MONGODB-CR", "MONGODB-X509", and "SCRAM-SHA-1"

      Any help would be greatly appreciated.
      Thank you.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.pudeyev Oleg Pudeyev
              Reporter:
              feber Febrian Setianto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: