Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Random "error 16550: not authorized for query on db_name.collection_name" #252

@iabdulin

Description

@iabdulin

Sorry, I can't reproduce this myself, but I receive a lot of exception notification emails from my server (NewRelicPinger pings my website every couple minutes).

Moped 1.5.1 (also tried 1.4.5)
mongoid 3.1.6
mongodb 2.4.8

Maybe it's related to #247, but I am not sure (I don't use any replica sets).

See https://github.com/mongodb/mongo/blob/master/docs/errors.md
for details about this error.
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:370:in `block in query'


Backtrace:

vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:370:in block in query' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:573:in[]'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:573:in block (3 levels) in flush' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:572:inmap'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:572:in block (2 levels) in flush' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:138:inensure_connected'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:568:in block in flush' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:583:inlogging'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:567:in flush' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:556:inprocess'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/node.rb:358:in query' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/session/context.rb:44:inblock in query'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/session/context.rb:105:in block in with_node' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/cluster.rb:250:inwith_secondary'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/session/context.rb:104:in with_node' vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/session/context.rb:43:inquery'
vendor/bundle/ruby/2.1.0/bundler/gems/moped-675440c65f44/lib/moped/query.rb:115:in first' vendor/bundle/ruby/2.1.0/gems/mongoid-3.1.6/lib/mongoid/contextual/mongo.rb:278:inblock in last'
vendor/bundle/ruby/2.1.0/gems/mongoid-3.1.6/lib/mongoid/contextual/mongo.rb:527:in with_inverse_sorting' vendor/bundle/ruby/2.1.0/gems/mongoid-3.1.6/lib/mongoid/contextual/mongo.rb:277:inlast'
vendor/bundle/ruby/2.1.0/gems/mongoid-3.1.6/lib/mongoid/contextual.rb:19:in last' vendor/bundle/ruby/2.1.0/gems/mongoid-3.1.6/lib/mongoid/finders.rb:127:inlast'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions