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

"there are no users authenticated (13)"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.6.2
    • Component/s: None
    • None
    • Environment:
      MongoDB 3.4 and MongoDB 3.6

      Last Thursday, we upgraded from the v2.5.3 driver (though we were targeting what was HEAD at the time https://github.com/mongodb/mongo-ruby-driver/commit/1c53888c791f3e50c84c273117b9132ca3511489). We now went to v2.6.2. Since then, we've had thousands of unhandled exception errors with "there are no users authenticated (13)" (often during times of load on the mongo database) that have only been fully fixed by an application restart. Various stack traces are below. Due to this issue, we are rolling back the driver.

      We have checked our mongoD and mongoS logs and cannot find anything abnormal with them. As such I believe this is a driver issue.

      An example from a read

      Mongo::Error::OperationFailure: there are no users authenticated (13)
        from mongo/operation/result.rb:267:in `raise_operation_failure'
        from mongo/operation/result.rb:263:in `validate!'
        from mongo/operation/find/op_msg.rb:48:in `execute'
        from mongo/operation/find.rb:43:in `execute'
        from mongo/collection/view/iterable.rb:82:in `send_initial_query'
        from mongo/collection/view/iterable.rb:42:in `block in each'
        from mongo/retryable.rb:in `read_with_retry'
        from mongo/collection/view/iterable.rb:40:in `each' 

      An example from a write

      Mongo::Error::OperationFailure: there are no users authenticated (13)
        from mongo/operation/result.rb:267:in `raise_operation_failure'
        from mongo/operation/result.rb:263:in `validate!'
        from mongo/operation/shared/write.rb:42:in `execute'
        from mongo/collection/view/writable.rb:307:in `block (2 levels) in update_one'
        from mongo/retryable.rb:in `legacy_write_with_retry'
        from mongo/retryable.rb:in `write_with_retry'
        from mongo/collection/view/writable.rb:295:in `block in update_one'
        from mongo/cluster.rb:524:in `with_session'
        from mongo/client.rb:550:in `with_session'
        from mongo/collection/view.rb:204:in `with_session'
        from mongo/collection/view/writable.rb:294:in `update_one'
        from mongoid/query_cache.rb:182:in `update_one_with_clear_cache' 

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            jonhyman Jon Hyman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: