swapmyvote / swapmyvote

https://www.swapmyvote.uk
18 stars 16 forks source link

[Airbrake] [Production] ERROR: relation "users" does not exist LINE 1: SELECT "users".* FROM "users" WHERE "users"."email" = $1 OR... ^ : SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" A... #855

Closed aspiers closed 6 days ago

aspiers commented 6 days ago

Airbrake error: #6137 Airbrake project: swapmyvote

Error type: ActiveRecord::StatementInvalid PG::UndefinedTable Error message: ERROR: relation "users" does not exist LINE 1: SELECT "users".* FROM "users" WHERE "users"."email" = $1 OR... ^ : SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2 Where: sessions#create Occurred at: Jun 24, 2024 14:07:13 UTC First seen at: Jun 24, 2024 14:07:13 UTC Occurrences: 0 (0 since last deploy on <no information>) Severity: error

URL: https://www.swapmyvote.uk/users/sign_in File: /GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb

Backtrace:

/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in prepare
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in block in prepare_statement
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in synchronize
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in prepare_statement
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:617:in exec_cache
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:600:in execute_and_clear
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:81:in exec_query
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:482:in select_prepared
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:68:in select_all
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:104:in block in select_all
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:127:in block in cache_sql
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:113:in synchronize
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:113:in cache_sql
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:104:in select_all
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/querying.rb:41:in find_by_sql
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:560:in block in exec_queries
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:584:in skip_query_cache_if_necessary
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:547:in exec_queries
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:422:in load
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:200:in records
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation.rb:195:in to_ary
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation/finder_methods.rb:532:in find_nth_with_limit
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation/finder_methods.rb:517:in find_nth
/GEM_ROOT/gems/activerecord-5.2.6/lib/active_record/relation/finder_methods.rb:125:in first
/GEM_ROOT/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/active_record.rb:22:in find_first
/GEM_ROOT/gems/devise-4.8.0/lib/devise/models/authenticatable.rb:280:in find_first_by_auth_conditions
/GEM_ROOT/gems/devise-4.8.0/lib/devise/models/authenticatable.rb:276:in find_for_authentication
/GEM_ROOT/gems/devise-4.8.0/lib/devise/models/database_authenticatable.rb:236:in find_for_database_authentication
/GEM_ROOT/gems/devise-4.8.0/lib/devise/strategies/database_authenticatable.rb:10:in authenticate!
/GEM_ROOT/gems/warden-1.2.9/lib/warden/strategies/base.rb:55:in _run!
/GEM_ROOT/gems/warden-1.2.9/lib/warden/proxy.rb:372:in block in _run_strategies_for
/GEM_ROOT/gems/warden-1.2.9/lib/warden/proxy.rb:365:in each
/GEM_ROOT/gems/warden-1.2.9/lib/warden/proxy.rb:365:in _run_strategies_for
/GEM_ROOT/gems/warden-1.2.9/lib/warden/proxy.rb:335:in _perform_authentication
/GEM_ROOT/gems/warden-1.2.9/lib/warden/proxy.rb:133:in authenticate!
/GEM_ROOT/gems/devise-4.8.0/app/controllers/devise/sessions_controller.rb:19:in create
/PROJECT_ROOT/app/controllers/users/sessions_controller.rb:28:in create
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/abstract_controller/base.rb:194:in process_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/rendering.rb:30:in process_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:42:in block in process_action
/GEM_ROOT/gems/activesupport-5.2.6/lib/active_support/callbacks.rb:132:in run_callbacks
/GEM_ROOT/gems/actionpack-5.2.6/lib/abstract_controller/callbacks.rb:41:in process_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/rescue.rb:22:in process_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:34:in block in process_action
/GEM_ROOT/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:in block in instrument
/GEM_ROOT/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in instrument
/GEM_ROOT/gems/activesupport-5.2.6/lib/active_support/notifications.rb:168:in instrument
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/instrumentation.rb:32:in process_action
/GEM_ROOT/gems/actionpack-5.2.6/lib/action_controller/metal/params_wrapper.rb:256:in process_action
...
Caused by PG::UndefinedTable: ERROR:  relation "users" does not exist
LINE 1: SELECT  "users".* FROM "users" WHERE "users"."email" = $1 OR...
                               ^

Visit Airbrake error to view the full backtrace.

aspiers commented 6 days ago

Caused during transition to new code after resetting db.