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

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

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.3, 2.6.2
    • Component/s: Auth
    • 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

      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.

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

              Created:
              Updated:
              Resolved: