Skip to content

Commit 7c36507

Browse files
authored
RUBY-2884 Add Mongoid FAQ page (#5208)
* RUBY-2884 add mongoid faqs * RUBY-2884 add tildes * RUBY-2888 update language * RUBY-2884 add issue from the move around issues * RUBY-2884 change language * RUBy-2884 change file name * RUBY-2884 move issues to driver
1 parent d4bbd40 commit 7c36507

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

source/tutorials.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Tutorials
1212
tutorials/getting-started-sinatra
1313
tutorials/getting-started-rails
1414
tutorials/documents
15+
tutorials/common-errors

source/tutorials/common-errors.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Comments
 (0)