Skip to content

Instantly share code, notes, and snippets.

@zishe
Created April 5, 2014 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zishe/9987755 to your computer and use it in GitHub Desktop.
Save zishe/9987755 to your computer and use it in GitHub Desktop.
Mongoid Error log
MOPED: 127.0.0.1:27017 QUERY database=rails_api_development collection=users selector={"_id"=>{"$oid"=>BSON::ObjectId('533c3958616c641142010000')}} flags=[] limit=0 skip=0 batch_size=nil fields=nil runtime: 1.0680ms
Completed 500 Internal Server Error in 15ms
Moped::Errors::QueryFailure - The operation: #<Moped::Protocol::Query
@length=89
@request_id=2
@response_to=0
@op_code=2004
@flags=[]
@full_collection_name="rails_api_development.users"
@skip=0
@limit=0
@selector={"_id"=>{"$oid"=>BSON::ObjectId('533c3958616c641142010000')}}
@fields=nil>
failed with error 10068: "invalid operator: $oid"
See https://github.com/mongodb/mongo/blob/master/docs/errors.md
for details about this error.:
moped (2.0.0.rc1) lib/moped/operation/read.rb:50:in `block in execute'
moped (2.0.0.rc1) lib/moped/node.rb:594:in `block (2 levels) in flush'
moped (2.0.0.rc1) lib/moped/node.rb:593:in `block in flush'
moped (2.0.0.rc1) lib/moped/node.rb:617:in `block in logging'
activesupport (4.1.0.rc2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.0.rc2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.0.rc2) lib/active_support/notifications.rb:159:in `instrument'
moped (2.0.0.rc1) lib/moped/instrumentable.rb:31:in `instrument'
moped (2.0.0.rc1) lib/moped/node.rb:616:in `logging'
moped (2.0.0.rc1) lib/moped/node.rb:587:in `flush'
moped (2.0.0.rc1) lib/moped/node.rb:391:in `process'
moped (2.0.0.rc1) lib/moped/operation/read.rb:48:in `execute'
moped (2.0.0.rc1) lib/moped/node.rb:648:in `read'
moped (2.0.0.rc1) lib/moped/node.rb:411:in `query'
moped (2.0.0.rc1) lib/moped/cursor.rb:137:in `block in load_docs'
moped (2.0.0.rc1) lib/moped/cluster.rb:243:in `block in with_primary'
moped (2.0.0.rc1) lib/moped/node.rb:204:in `block in ensure_primary'
moped (2.0.0.rc1) lib/moped/executable.rb:25:in `execute'
moped (2.0.0.rc1) lib/moped/node.rb:203:in `ensure_primary'
moped (2.0.0.rc1) lib/moped/cluster.rb:242:in `with_primary'
moped (2.0.0.rc1) lib/moped/read_preference/primary.rb:55:in `block in with_node'
moped (2.0.0.rc1) lib/moped/read_preference/selectable.rb:65:in `with_retry'
moped (2.0.0.rc1) lib/moped/read_preference/primary.rb:54:in `with_node'
moped (2.0.0.rc1) lib/moped/cursor.rb:136:in `load_docs'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/query_cache.rb:229:in `block in load_docs'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/query_cache.rb:135:in `with_cache'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/query_cache.rb:229:in `load_docs'
moped (2.0.0.rc1) lib/moped/cursor.rb:27:in `each'
moped (2.0.0.rc1) lib/moped/query.rb:77:in `each'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/contextual/mongo.rb:122:in `each'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/contextual.rb:20:in `each'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/criteria/findable.rb:107:in `from_database'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/criteria/findable.rb:75:in `multiple_from_db'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/criteria/findable.rb:19:in `execute_or_raise'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/criteria/findable.rb:40:in `find'
() Users/alder/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/bundler/gems/mongoid-026e32109178/lib/mongoid/findable.rb:90:in `find'
() Users/alder/Projects/pro_book_reader/rails-api/app/controllers/application_controller.rb:7:in `current_user'
() Users/alder/Projects/pro_book_reader/rails-api/app/controllers/application_controller.rb:21:in `authenticate_user!'
activesupport (4.1.0.rc2) lib/active_support/callbacks.rb:424:in `block in make_lambda'
activesupport (4.1.0.rc2) lib/active_support/callbacks.rb:160:in `block in halting'
activesupport (4.1.0.rc2) lib/active_support/callbacks.rb:86:in `run_callbacks'
actionpack (4.1.0.rc2) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (4.1.0.rc2) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.1.0.rc2) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.1.0.rc2) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.1.0.rc2) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.1.0.rc2) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.1.0.rc2) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.1.0.rc2) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
actionpack (4.1.0.rc2) lib/abstract_controller/base.rb:136:in `process'
actionview (4.1.0.rc2) lib/action_view/rendering.rb:30:in `process'
actionpack (4.1.0.rc2) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.1.0.rc2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.1.0.rc2) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.1.0.rc2) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.1.0.rc2) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.1.0.rc2) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/routing/route_set.rb:676:in `call'
rack (1.5.2) lib/rack/etag.rb:23:in `call'
rack (1.5.2) lib/rack/conditionalget.rb:35:in `call'
rack (1.5.2) lib/rack/head.rb:11:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/flash.rb:254:in `call'
rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.1.0.rc2) lib/active_support/callbacks.rb:82:in `run_callbacks'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
better_errors (1.1.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
better_errors (1.1.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
better_errors (1.1.0) lib/better_errors/middleware.rb:56:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.0.rc2) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.0.rc2) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.0.rc2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.0.rc2) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.0.rc2) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.0.rc2) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.0.rc2) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.0.rc2) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.1.0.rc2) lib/rails/engine.rb:515:in `call'
railties (4.1.0.rc2) lib/rails/application.rb:142:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
puma (2.8.1) lib/puma/server.rb:490:in `handle_request'
puma (2.8.1) lib/puma/server.rb:361:in `process_client'
puma (2.8.1) lib/puma/server.rb:254:in `block in run'
puma (2.8.1) lib/puma/thread_pool.rb:92:in `block in spawn_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment