|
| 1 | +************* |
| 2 | +Common Errors |
| 3 | +************* |
| 4 | + |
| 5 | +.. default-domain:: mongodb |
| 6 | + |
| 7 | +.. contents:: On this page |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 2 |
| 11 | + :class: singlecol |
| 12 | + |
| 13 | +Mongoid/Moped Authentication Error: failed with error 13 |
| 14 | +======================================================== |
| 15 | + |
| 16 | +If you are encountering the following error: |
| 17 | + |
| 18 | +.. code-block:: ruby |
| 19 | + |
| 20 | + Moped::Errors::OperationFailure: The operation: #<Moped::Protocol::Command |
| 21 | + @length=83 |
| 22 | + @request_id=5 |
| 23 | + @response_to=0 |
| 24 | + @op_code=2004 |
| 25 | + @flags=[] |
| 26 | + @full_collection_name="mongose_development.$cmd" |
| 27 | + @skip=0 |
| 28 | + @limit=-1 |
| 29 | + @selector={:getlasterror=>1, :w=>1} |
| 30 | + @fields=nil> |
| 31 | + failed with error 13: "not authorized for insert on mongose_development.people" |
| 32 | + |
| 33 | + See https://github.com/mongodb/mongo/blob/master/docs/errors.md |
| 34 | + for details about this error. |
| 35 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/operation/read.rb:50:in `block in execute' |
| 36 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/node.rb:594:in `[]' |
| 37 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/node.rb:594:in `block (2 levels) in flush' |
| 38 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/node.rb:593:in `map' |
| 39 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/node.rb:593:in `block in flush' |
| 40 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/moped-10abbf3eac37/lib/moped/node.rb:617:in `block in logging' |
| 41 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument' |
| 42 | + from /.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrumen |
| 43 | + |
| 44 | +This error is caused by Moped, a Ruby driver that is no longer in use by |
| 45 | +Mongoid. Upgrading to Mongoid 5+ should fix this issue. |
| 46 | + |
| 47 | +You can find more information about this issue here: |
| 48 | +`MONGOID-4067 <https://jira.mongodb.org/browse/MONGOID-4067>`_. |
| 49 | + |
0 commit comments