fjordllc / bootcamp

プログラマー向けEラーニングシステム
https://bootcamp.fjord.jp
MIT License
286 stars 71 forks source link

ActionView::Template::Error: PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. #8128

Open komagata opened 1 month ago

komagata commented 1 month ago

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1749



PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.

  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb", line 672, in exec_params
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb", line 672, in block (2 levels) in exec_no_cache
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/dependencies/interlock.rb", line 48, in block in permit_concurrent_loads
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/share_lock.rb", line 187, in yield_shares
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/dependencies/interlock.rb", line 47, in permit_concurrent_loads
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb", line 671, in block in exec_no_cache
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract_adapter.rb", line 696, in block (2 levels) in log
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 26, in block (2 levels) in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in block in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in synchronize
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract_adapter.rb", line 695, in block in log
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract_adapter.rb", line 687, in log
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb", line 670, in exec_no_cache
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql_adapter.rb", line 649, in execute_and_clear
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/postgresql/database_statements.rb", line 53, in exec_query
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/database_statements.rb", line 532, in select
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/database_statements.rb", line 69, in select_all
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/query_cache.rb", line 101, in block in select_all
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/query_cache.rb", line 118, in block in cache_sql
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 26, in block (2 levels) in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in block in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in synchronize
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/query_cache.rb", line 109, in cache_sql
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/query_cache.rb", line 101, in select_all
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/querying.rb", line 47, in find_by_sql
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation.rb", line 843, in block in exec_queries
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation.rb", line 861, in skip_query_cache_if_necessary
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation.rb", line 828, in exec_queries
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation.rb", line 631, in load
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader/association.rb", line 118, in records_for
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader/association.rb", line 45, in load_records
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader/association.rb", line 27, in records_by_owner
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader/association.rb", line 17, in run
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 151, in block in preloaders_for_reflection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 150, in each
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 150, in map
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 150, in preloaders_for_reflection
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 119, in block (2 levels) in preloaders_for_hash
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 118, in each
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 118, in flat_map
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 118, in block in preloaders_for_hash
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 117, in each
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb", line 117, in flat_map
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/associations/preloader.rb",