{"action":"closed","issue":{"url":"https://api.github.com/repos/errbit/errbit/issues/878","labels_url":"https://api.github.com/repos/errbit/errbit/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/errbit/errbit/issues/878/comments","events_url":"https://api.github.com/repos/errbit/errbit/issues/878/events","html_url":"https://github.com/errbit/errbit/issues/878","id":73255512,"number":878,"title":"Can't view errors or edit apps after Errbit upgrade","user":{"login":"organicweb","id":91369,"avatar_url":"https://avatars.githubusercontent.com/u/91369?v=3","gravatar_id":"","url":"https://api.github.com/users/organicweb","html_url":"https://github.com/organicweb","followers_url":"https://api.github.com/users/organicweb/followers","following_url":"https://api.github.com/users/organicweb/following{/other_user}","gists_url":"https://api.github.com/users/organicweb/gists{/gist_id}","starred_url":"https://api.github.com/users/organicweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/organicweb/subscriptions","organizations_url":"https://api.github.com/users/organicweb/orgs","repos_url":"https://api.github.com/users/organicweb/repos","events_url":"https://api.github.com/users/organicweb/events{/privacy}","received_events_url":"https://api.github.com/users/organicweb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-05T09:10:51Z","updated_at":"2015-09-04T00:26:40Z","closed_at":"2015-09-04T00:26:39Z","body":"Here's the errors I received via email : \r\nERROR MESSAGE:\r\nMoped::Errors::OperationFailure: The operation: #<Moped::Protocol::Command @length=81 @request_id=88 @response_to=0 @op_code=2004 @flags=[] @full_collection_name=\"errbit_production.$cmd\" @skip=0 @limit=-1 @selector={:getlasterror=>1, :w=>1} @fields=nil> failed with error \"Invalid modifier specified $unset\"\r\n\r\nWHERE:\r\napps#edit\r\n\r\napp/controllers/apps_controller.rb:111\r\napp/controllers/apps_controller.rb:78\r\n\r\nURL:\r\nhttp://errbit.ledez.net/apps/50b71893ba9f111c02000002/edit\r\n\r\nBROWSER:\r\n100.0%\tFirefox 37.0 (OS X 10.7)\r\n\r\nFULL BACKTRACE:\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/operation/read.rb:50\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:594\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:594\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:593\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:593\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:617\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications/instrumenter.rb:20\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/instrumentable.rb:31\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:616\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:587\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:358\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/operation/write.rb:47\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:665\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:502\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/query.rb:427\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/cluster.rb:249\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:204\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/executable.rb:25\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/node.rb:203\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/cluster.rb:248\r\n[GEM_ROOT]/gems/moped-2.0.4/lib/moped/query.rb:426\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/query_cache.rb:117\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/deletable.rb:65\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/deletable.rb:25\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/deletable.rb:115\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/deletable.rb:23\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/destroyable.rb:24\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:82\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/interceptable.rb:138\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/persistable/destroyable.rb:24\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/relations/embedded/one.rb:43\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/relations/accessors.rb:231\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/relations/accessors.rb:140\r\n[GEM_ROOT]/gems/mongoid-4.0.2/lib/mongoid/relations/accessors.rb:229\r\napp/controllers/apps_controller.rb:111\r\napp/controllers/apps_controller.rb:78\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/implicit_render.rb:4\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/abstract_controller/base.rb:189\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/rendering.rb:10\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/abstract_controller/callbacks.rb:20\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:113\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:113\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:552\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:86\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/abstract_controller/callbacks.rb:19\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/rescue.rb:29\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:32\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications/instrumenter.rb:20\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:30\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/params_wrapper.rb:250\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/abstract_controller/base.rb:136\r\n[GEM_ROOT]/gems/actionview-4.1.10/lib/action_view/rendering.rb:30\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal.rb:196\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal/rack_delegation.rb:13\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_controller/metal.rb:232\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:82\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:82\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:50\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:73\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:59\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/journey/router.rb:59\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/routing/route_set.rb:692\r\n[GEM_ROOT]/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186\r\n[GEM_ROOT]/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164\r\n[GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb:35\r\n[GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb:34\r\n[GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb:34\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/etag.rb:23\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/conditionalget.rb:25\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/head.rb:11\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/params_parser.rb:27\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/flash.rb:254\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/cookies.rb:562\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/callbacks.rb:29\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:82\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/callbacks.rb:27\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/remote_ip.rb:76\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/debug_exceptions.rb:17\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/show_exceptions.rb:30\r\n[GEM_ROOT]/gems/railties-4.1.10/lib/rails/rack/logger.rb:38\r\n[GEM_ROOT]/gems/railties-4.1.10/lib/rails/rack/logger.rb:20\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:68\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:26\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/tagged_logging.rb:68\r\n[GEM_ROOT]/gems/railties-4.1.10/lib/rails/rack/logger.rb:20\r\n[GEM_ROOT]/gems/request_store-1.1.0/lib/request_store/middleware.rb:8\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/request_id.rb:21\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/methodoverride.rb:21\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/runtime.rb:17\r\n[GEM_ROOT]/gems/activesupport-4.1.10/lib/active_support/cache/strategy/local_cache_middleware.rb:26\r\n[GEM_ROOT]/gems/actionpack-4.1.10/lib/action_dispatch/middleware/static.rb:84\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/sendfile.rb:112\r\n[GEM_ROOT]/gems/railties-4.1.10/lib/rails/engine.rb:514\r\n[GEM_ROOT]/gems/railties-4.1.10/lib/rails/application.rb:144\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/deflater.rb:25\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/lint.rb:49\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/lint.rb:37\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/showexceptions.rb:24\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/commonlogger.rb:33\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/chunked.rb:43\r\n[GEM_ROOT]/gems/rack-1.5.2/lib/rack/content_length.rb:14\r\n[GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:580\r\n[GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:674\r\n[GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:529\r\n[GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb:140\r\n[GEM_ROOT]/gems/unicorn-4.9.0/bin/unicorn:126\r\n[GEM_ROOT]/bin/unicorn:23\r\n[GEM_ROOT]/bin/unicorn:23\r\n\r\nLog stack : \r\n\r\n**Edit an app** : \r\nI, [2015-05-05T11:06:49.050738 #410]  INFO -- : Started GET \"/apps/5547a42d6769745f55010000/edit\" for 88.174.118.112 at 2015-05-05 11:06:49 +0200\r\nI, [2015-05-05T11:06:49.070375 #410]  INFO -- : Processing by AppsController#edit as HTML\r\nI, [2015-05-05T11:06:49.070465 #410]  INFO -- :   Parameters: {\"id\"=>\"5547a42d6769745f55010000\"}\r\nI, [2015-05-05T11:06:49.097405 #410]  INFO -- : Completed 500 Internal Server Error in 27ms\r\nI, [2015-05-05T11:06:49.428856 #410]  INFO -- : Internal error was logged to 'Self.Errbit' app.\r\nF, [2015-05-05T11:06:49.430067 #410] FATAL -- :\r\nMoped::Errors::OperationFailure (The operation: #<Moped::Protocol::Command\r\n  @length=81\r\n  @request_id=5\r\n  @response_to=0\r\n  @op_code=2004\r\n  @flags=[]\r\n  @full_collection_name=\"errbit_production.$cmd\"\r\n  @skip=0\r\n  @limit=-1\r\n  @selector={:getlasterror=>1, :w=>1}\r\n  @fields=nil>\r\nfailed with error \"Invalid modifier specified $unset\"):\r\n  app/controllers/apps_controller.rb:111:in `plug_params'\r\n  app/controllers/apps_controller.rb:78:in `edit'\r\n\r\n**View error detail** :\r\nI, [2015-05-05T11:08:10.945125 #407]  INFO -- : Started GET \"/apps/50b8baabba9f114e8f000012/problems/524c105cba9f11017b000728\" for 88.174.118.112 at 2015-05-05 11:08:10 +0200\r\nI, [2015-05-05T11:08:10.946963 #407]  INFO -- : Processing by ProblemsController#show as HTML\r\nI, [2015-05-05T11:08:10.947018 #407]  INFO -- :   Parameters: {\"app_id\"=>\"50b8baabba9f114e8f000012\", \"id\"=>\"524c105cba9f11017b000728\"}\r\nI, [2015-05-05T11:08:10.949725 #407]  INFO -- : Completed 404 Not Found in 3ms\r\nF, [2015-05-05T11:08:11.016138 #407] FATAL -- :\r\nMongoid::Errors::DocumentNotFound (\r\nProblem:\r\n  Document(s) not found for class App with id(s) 50b8baabba9f114e8f000012.\r\nSummary:\r\n  When calling App.find with an id or array of ids, each parameter must match a document in the database or this error will be raised. The search was for the id(s): 50b8baabba9f114e8f000012 ... (1 total) and the following ids were not found: 50b8baabba9f114e8f000012.\r\nResolution:\r\n  Search for an id that is in the database or set the Mongoid.raise_not_found_error configuration option to false, which will cause a nil to be returned instead of raising this error when searching for a single id, or only the matched documents when searching for multiples.):\r\n  app/controllers/problems_controller.rb:21:in `block in <class:ProblemsController>'\r\n  app/controllers/problems_controller.rb:25:in `block in <class:ProblemsController>'\r\n  app/controllers/problems_controller.rb:53:in `show'\r\n\r\nI've tried to upgrade package for mongodb, but nothing seems to be working. Any help would be appreciated."}}