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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • 2.5.3, 2.6.2
    • None
    • Auth
    • None
    • 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

              oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
              feber Febrian Setianto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: