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

users.create function fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Works as Designed
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi,

      We are getting an issue in user creation call of ruby-driver. To be exact, the issue occurs in this particular line -https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/cluster.rb#L557

      Error thrown:

       ERROR: undefined method `>' for #<BSON::Timestamp:0x0056358f8ded78>

      Stack Trace:

      I, 2018-12-12T10:47:12.370150 #41282 INFO – : Creating user 'edc211203fe3972393af5124309822ea' for db '1e853e2e46f31c2c'
       I, 2018-12-12T10:47:12.397143 #41282 INFO – : Backtrace:
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/cluster.rb:506:in `block in update_cluster_time'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/cluster.rb:503:in `synchronize'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/cluster.rb:503:in `update_cluster_time'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/auth/scram.rb:78:in `login'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:261:in `block in authenticate!'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server.rb:267:in `handle_auth_failure!'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:260:in `authenticate!'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:100:in `connect!'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connectable.rb:84:in `ensure_connected'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:282:in `write'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:229:in `deliver'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:144:in `block in dispatch'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/monitoring/publishable.rb:48:in `publish_command'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection.rb:143:in `dispatch'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/operation/shared/executable.rb:34:in `block in dispatch_message'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server/connection_pool.rb:110:in `with_connection'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/server.rb:251:in `with_connection'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/operation/shared/executable.rb:33:in `dispatch_message'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/operation/create_user/op_msg.rb:30:in `execute'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/operation/create_user.rb:41:in `execute'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/auth/user/view.rb:51:in `block in create'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/cluster.rb:524:in `with_session'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/client.rb:519:in `with_session'
       /var/vcap/data/packages/broker-agent/cbebbe969a0dc40a3684cd0d2bf8798b3f3adde3/vendor/bundle/ruby/2.3.0/gems/mongo-2.6.0/lib/mongo/auth/user/view.rb:46:in `create'
        

       

        Attachments

          Activity

            People

            Assignee:
            oleg.pudeyev Oleg Pudeyev
            Reporter:
            ologn Ponraj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: