500 Error When Loading Branches Page
https://sentry.gitlab.net/gitlab/gitlabcom/issues/2739674/?referrer=gitlab_plugin
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `exec_params'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `block (2 levels) in exec_no_cache'
from activesupport (6.1.3.2) lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
from activesupport (6.1.3.2) lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
from activesupport (6.1.3.2) lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql_adapter.rb:671:in `block in exec_no_cache'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract_adapter.rb:696:in `block (2 levels) in log'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract_adapter.rb:695:in `block in log'
from activesupport (6.1.3.2) lib/active_support/notifications/instrumenter.rb:24:in `instrument'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract_adapter.rb:687:in `log'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql_adapter.rb:670:in `exec_no_cache'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql_adapter.rb:649:in `execute_and_clear'
from marginalia (1.10.0) lib/marginalia.rb:95:in `execute_and_clear_with_marginalia'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `exec_query'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:532:in `select'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/database_statements.rb:69:in `select_all'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/query_cache.rb:101:in `block in select_all'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/query_cache.rb:118:in `block in cache_sql'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
from activesupport (6.1.3.2) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/query_cache.rb:109:in `cache_sql'
from activerecord (6.1.3.2) lib/active_record/connection_adapters/abstract/query_cache.rb:101:in `select_all'
from gitlab/database/load_balancing/connection_proxy.rb:95:in `block in read_using_load_balancer'
from gitlab/database/load_balancing/load_balancer.rb:41:in `read'
from gitlab/database/load_balancing/connection_proxy.rb:94:in `read_using_load_balancer'
from gitlab/database/load_balancing/connection_proxy.rb:47:in `select_all'
from activerecord (6.1.3.2) lib/active_record/querying.rb:47:in `find_by_sql'
from activerecord (6.1.3.2) lib/active_record/relation.rb:849:in `block in exec_queries'
from activerecord (6.1.3.2) lib/active_record/relation.rb:867:in `skip_query_cache_if_necessary'
from activerecord (6.1.3.2) lib/active_record/relation.rb:834:in `exec_queries'
from activerecord (6.1.3.2) lib/active_record/association_relation.rb:54:in `exec_queries'
from activerecord (6.1.3.2) lib/active_record/relation.rb:638:in `load'
from activerecord (6.1.3.2) lib/active_record/relation.rb:249:in `records'
from activerecord (6.1.3.2) lib/active_record/relation/delegation.rb:88:in `each'
from ci/pipeline.rb:383:in `each_with_object'
from ci/pipeline.rb:383:in `latest_successful_for_refs'
from gitlab/metrics/instrumentation.rb:160:in `block in latest_successful_for_refs'
from gitlab/metrics/method_call.rb:27:in `measure'
from gitlab/metrics/instrumentation.rb:160:in `latest_successful_for_refs'
from activerecord (6.1.3.2) lib/active_record/relation/delegation.rb:67:in `block in latest_successful_for_refs'
from activerecord (6.1.3.2) lib/active_record/relation.rb:406:in `block in scoping'
from activerecord (6.1.3.2) lib/active_record/relation.rb:810:in `_scoping'
from activerecord (6.1.3.2) lib/active_record/relation.rb:406:in `scoping'
from activerecord (6.1.3.2) lib/active_record/associations/collection_proxy.rb:1109:in `scoping'
from activerecord (6.1.3.2) lib/active_record/relation/delegation.rb:67:in `latest_successful_for_refs'
from projects/branches_controller.rb:28:in `block (2 levels) in index'
from actionpack (6.1.3.2) lib/action_controller/metal/mime_responds.rb:214:in `respond_to'
from projects/branches_controller.rb:19:in `index'
Edited by Nick Thomas