FreeUKGen / MyopicVicar

MyopicVicar (short-sighted clergyman!) is an open-source genealogy record database and search engine. It powers the FreeREG database of parish registers, the FreeCEN database of census records, the next version of FreeBMD database of Civil Registration indexes and other Genealogical applications.
47 stars 16 forks source link

[production][image_server_images#index] message: Calling Document.find with nil is invalid. summary: Document.find expects the param... #2525

Closed lemon-ukgen closed 2 years ago

lemon-ukgen commented 2 years ago

See this exception on Errbit

message: Calling Document.find with nil is invalid. summary: Document.find expects the parameters to be 1 or more ids, and will return a single document if 1 id is provided, otherwise an array of documents if multiple ids are provided. resolution: Most likely this is caused by passing parameters directly through to the find, and the parameter either is not present or the key from which it is accessed is incorrect. #

Summary

URL

https://www.freereg.org.uk/image_server_images/5a9eb9e2f493fdbfcb90cbb8/index?locale=en"

Where

image_server_images#index

Occured

Dec 29 10:17pm

Similar

0

Params

{
  "action" => "index",
  "controller" => "image_server_images",
  "id" => "5a9eb9e2f493fdbfcb90cbb8",
  "locale" => "en"
}

Session

{
  "_csrf_token" => "as20kob/W04HozU40f9PbkeJEkYQKu8ySzRXxihTY34=",
  "assignment_filter_list" => "",
  "church_name" => "The Parish Church",
  "county" => "Angus (Forfarshire)",
  "devise" => 6742,
  "first_name" => "Reg",
  "flash" => {
    "discard" => [],
    "flashes" => {
      "notice" => "No members in this syndicate"
    }
  },
  "host" => "www.freereg.org.uk",
  "image_server_group_id" => "5a9eb9e2f493fdbfcb90cbb8",
  "manager" => true,
  "message" => "load",
  "my_own" => true,
  "place_name" => "Arbroath",
  "register_id" => {
    "$oid" => "5a966c3ef493fd7927dff97c"
  },
  "role" => "country_coordinator",
  "session_id" => "e7118db2400b60dc416affdcb70133a6",
  "site_stats" => {
    "created_at" => "2021-12-29T06:33:19.893Z",
    "n_records" => 53724172,
    "n_records_added" => 7972,
    "n_records_added_baptisms" => 4630,
    "n_records_added_burials" => 2853,
    "n_records_added_marriages" => 489,
    "n_records_baptisms" => 26325758,
    "n_records_burials" => 19242580,
    "n_records_marriages" => 8155834,
    "n_searches" => 15462,
    "updated_at" => "2021-12-29T06:33:19.893Z"
  },
  "source_id" => {
    "$oid" => "5a9eb9d3f493fdbfcb90b31a"
  },
  "stats_view" => false,
  "user_id" => {
    "$oid" => "5462b414e937907d7000035d"
  },
  "userid" => "REGScotland",
  "userid_detail_id" => "5462b414e937907d7000035d",
  "warden.user.authentication_devise_user.key" => [[6742], "DRJiYe8y5XWAEixxQ_Pb"]
}

Backtrace

149:  /GEM_ROOT/gems/mongoid-7.1.5/lib/mongoid/criteria/findable.rb -> **raise_invalid**
42:  /GEM_ROOT/gems/mongoid-7.1.5/lib/mongoid/criteria/findable.rb -> **find**
99:  /GEM_ROOT/gems/mongoid-7.1.5/lib/mongoid/findable.rb -> **find**
35:  app/controllers/image_server_images_controller.rb -> **display_info**
95:  app/controllers/image_server_images_controller.rb -> **index**
4:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/basic_implicit_render.rb -> **send_action**
186:  /GEM_ROOT/gems/actionpack-5.1.7/lib/abstract_controller/base.rb -> **process_action**
30:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/rendering.rb -> **process_action**
20:  /GEM_ROOT/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb -> **block in process_action**
131:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/callbacks.rb -> **run_callbacks**
19:  /GEM_ROOT/gems/actionpack-5.1.7/lib/abstract_controller/callbacks.rb -> **process_action**
20:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/rescue.rb -> **process_action**
32:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb -> **block in process_action**
166:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/notifications.rb -> **block in instrument**
21:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/notifications/instrumenter.rb -> **instrument**
166:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/notifications.rb -> **instrument**
30:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/instrumentation.rb -> **process_action**
252:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal/params_wrapper.rb -> **process_action**
22:  /GEM_ROOT/gems/activerecord-5.1.7/lib/active_record/railties/controller_runtime.rb -> **process_action**
22:  /GEM_ROOT/gems/mongoid-7.1.5/lib/mongoid/railties/controller_runtime.rb -> **process_action**
124:  /GEM_ROOT/gems/actionpack-5.1.7/lib/abstract_controller/base.rb -> **process**
30:  /GEM_ROOT/gems/actionview-5.1.7/lib/action_view/rendering.rb -> **process**
189:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal.rb -> **dispatch**
253:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_controller/metal.rb -> **dispatch**
49:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb -> **dispatch**
31:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb -> **serve**
50:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb -> **block in serve**
33:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb -> **each**
33:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/journey/router.rb -> **serve**
844:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/routing/route_set.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
14:  /GEM_ROOT/gems/dragonfly-1.2.1/lib/dragonfly/middleware.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
14:  /GEM_ROOT/gems/dragonfly-1.2.1/lib/dragonfly/middleware.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
30:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/rack/agent_hooks.rb -> **traced_call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
33:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/rack/browser_monitoring.rb -> **traced_call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
25:  /GEM_ROOT/gems/mobvious-0.3.2/lib/mobvious/manager.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
36:  /GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb -> **block in call**
34:  /GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb -> **catch**
34:  /GEM_ROOT/gems/warden-1.2.9/lib/warden/manager.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
27:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/etag.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
27:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/conditional_get.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
12:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/head.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
266:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/session/abstract/id.rb -> **context**
260:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/session/abstract/id.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
613:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/cookies.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
26:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/callbacks.rb -> **block in call**
97:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/callbacks.rb -> **run_callbacks**
24:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/callbacks.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
34:  /GEM_ROOT/gems/airbrake-11.0.1/lib/airbrake/rack/middleware.rb -> **call!**
23:  /GEM_ROOT/gems/airbrake-11.0.1/lib/airbrake/rack/middleware.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
59:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/debug_exceptions.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
31:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/show_exceptions.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
36:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/rack/logger.rb -> **call_app**
24:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/rack/logger.rb -> **block in call**
69:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb -> **block in tagged**
26:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb -> **tagged**
69:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/tagged_logging.rb -> **tagged**
24:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/rack/logger.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
79:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/remote_ip.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
19:  /GEM_ROOT/gems/request_store-1.5.0/lib/request_store/middleware.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
25:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/request_id.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
24:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/method_override.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
22:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/runtime.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
27:  /GEM_ROOT/gems/activesupport-5.1.7/lib/active_support/cache/strategy/local_cache_middleware.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
9:  /GEM_ROOT/gems/dragonfly-1.2.1/lib/dragonfly/cookie_monster.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
12:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/executor.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
125:  /GEM_ROOT/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
110:  /GEM_ROOT/gems/rack-2.2.3/lib/rack/sendfile.rb -> **call**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
522:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/engine.rb -> **call**
185:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/railtie.rb -> **public_send**
185:  /GEM_ROOT/gems/railties-5.1.7/lib/rails/railtie.rb -> **method_missing**
101:  /GEM_ROOT/gems/newrelic_rpm-6.14.0/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**
107:  /usr/local/lib/ruby/gems/2.6/gems/passenger-6.0.11/src/ruby_supportlib/phusion_passenger/rack/thread_handler_extension.rb -> **process_request**
149:  /usr/local/lib/ruby/gems/2.6/gems/passenger-6.0.11/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb -> **accept_and_process_next_request**
110:  /usr/local/lib/ruby/gems/2.6/gems/passenger-6.0.11/src/ruby_supportlib/phusion_passenger/request_handler/thread_handler.rb -> **main_loop**
416:  /usr/local/lib/ruby/gems/2.6/gems/passenger-6.0.11/src/ruby_supportlib/phusion_passenger/request_handler.rb -> **block (3 levels) in start_threads**
113:  /usr/local/lib/ruby/gems/2.6/gems/passenger-6.0.11/src/ruby_supportlib/phusion_passenger/utils.rb -> **block in create_thread_and_abort_on_exception**

Environment

Key Value
program_name Passenger RubyApp: /home/apache/hosts/freereg2/production (production)
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
lemon-ukgen commented 2 years ago

[ just testing errbit / gh integration working again ]