{"action":"closed","issue":{"url":"https://api.github.com/repos/miguelespada/diinner/issues/57","repository_url":"https://api.github.com/repos/miguelespada/diinner","labels_url":"https://api.github.com/repos/miguelespada/diinner/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/miguelespada/diinner/issues/57/comments","events_url":"https://api.github.com/repos/miguelespada/diinner/issues/57/events","html_url":"https://github.com/miguelespada/diinner/issues/57","id":113919193,"number":57,"title":"Moped::Errors::ConnectionFailure: Could not connect to a primary node for replica set #<Moped::Cluster:70315337032720 @seeds=[<Moped::Node resolved_address=\"10.193.15.116:32540\">]>","user":{"login":"miguelespada","id":2543988,"avatar_url":"https://avatars.githubusercontent.com/u/2543988?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelespada","html_url":"https://github.com/miguelespada","followers_url":"https://api.github.com/users/miguelespada/followers","following_url":"https://api.github.com/users/miguelespada/following{/other_user}","gists_url":"https://api.github.com/users/miguelespada/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelespada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelespada/subscriptions","organizations_url":"https://api.github.com/users/miguelespada/orgs","repos_url":"https://api.github.com/users/miguelespada/repos","events_url":"https://api.github.com/users/miguelespada/events{/privacy}","received_events_url":"https://api.github.com/users/miguelespada/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miguelespada/diinner/labels/airbrake","name":"airbrake","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-28T20:50:49Z","updated_at":"2016-02-06T16:07:23Z","closed_at":"2016-02-06T16:07:23Z","body":"Check full details on Airbrake: [#1541502726945168795](https://herokuapp35743745herokucom.airbrake.io/projects/116173/groups/1541502726945168795)\n\nBacktrace:\n```\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/cluster.rb:254:in with_primary\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/primary.rb:55:in block in with_node\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/selectable.rb:65:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/selectable.rb:65:in with_retry\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/selectable.rb:71:in rescue in with_retry\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/selectable.rb:64:in with_retry\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/read_preference/primary.rb:54:in with_node\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/moped-2.0.3/lib/moped/query.rb:127:in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/query_cache.rb:191:in block in first_with_cache\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/query_cache.rb:135:in with_cache\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/query_cache.rb:190:in first_with_cache\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual/mongo.rb:199:in block (2 levels) in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual/mongo.rb:535:in with_sorting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual/mongo.rb:198:in block in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual/mongo.rb:447:in try_cache\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual/mongo.rb:197:in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-4.0.1/lib/mongoid/contextual.rb:20:in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/mongoid.rb:28:in find_first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/models/authenticatable.rb:252:in find_first_by_auth_conditions\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/models/authenticatable.rb:248:in find_for_authentication\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/models/database_authenticatable.rb:159:in find_for_database_authentication\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/lib/devise/strategies/database_authenticatable.rb:8:in authenticate!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/strategies/base.rb:53:in _run!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:354:in block in _run_strategies_for\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:349:in each\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:349:in _run_strategies_for\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:319:in _perform_authentication\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:127:in authenticate!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/devise-3.4.1/app/controllers/devise/sessions_controller.rb:16:in create\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:4:in send_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:189:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:10:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:20:in block in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in block in halting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in block in halting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in block in halting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in block in halting_and_conditional\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in block in halting_and_conditional\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in block in halting_and_conditional\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in block in halting_and_conditional\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in run_callbacks\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:19:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rescue.rb:29:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:31:in block in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in block in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:30:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/params_wrapper.rb:250:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:136:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/rendering.rb:30:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:196:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rack_delegation.rb:13:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:232:in block in action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:50:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/mapper.rb:45:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in each\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in call!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in catch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/params_parser.rb:27:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/flash.rb:254:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in context\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/cookies.rb:562:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:29:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:82:in run_callbacks\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:27:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/remote_ip.rb:76:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/show_exceptions.rb:30:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:38:in call_app\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in block in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:26:in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/request_id.rb:21:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/static.rb:84:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-cors-0.4.0/lib/rack/cors.rb:80:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:514:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:144:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in block in pre_process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in catch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in pre_process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in receive_data\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in run_machine\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in run\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:162:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in run\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/server.rb:69:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:81:in block in server\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in tap\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in server\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:40:in run_command!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands.rb:17:in <top (required)>\nbin/rails:8:in require\nbin/rails:8:in <main>\n```"}}