MAPC / massbuilds

Crowdsourcing authoritative info on recent & ongoing developments in Massachusetts.
https://www.massbuilds.com/
2 stars 2 forks source link

When Attempting to Login Devise Throws a 500 Error #305

Closed mzagaja closed 3 years ago

mzagaja commented 3 years ago

Describe the bug Upgrading devise seems to be causing issues with the login via the sessions controller.

Steps to reproduce Walk us through how you revealed the bug.

  1. Go to staging.massbuilds.com
  2. Try to login with an existing user.
  3. Receive 500 error and feel the sads.

Expected behavior We were hoping to login

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

I, [2020-11-11T15:26:17.623025 #10170]  INFO -- : [3bd37789-f5c8-4eab-954f-4274c4f6bfdb] Completed 500 Internal Server Error in 316ms (ActiveRecord: 9.7ms)
F, [2020-11-11T15:26:17.624212 #10170] FATAL -- : [3bd37789-f5c8-4eab-954f-4274c4f6bfdb]
F, [2020-11-11T15:26:17.624576 #10170] FATAL -- : [3bd37789-f5c8-4eab-954f-4274c4f6bfdb] NoMethodError (undefined method `to_sym' for nil:NilClass):
F, [2020-11-11T15:26:17.624893 #10170] FATAL -- : [3bd37789-f5c8-4eab-954f-4274c4f6bfdb]
F, [2020-11-11T15:26:17.625207 #10170] FATAL -- : [3bd37789-f5c8-4eab-954f-4274c4f6bfdb] app/controllers/sessions_controller.rb:21:in `create'
mzagaja commented 3 years ago

We seem to have surmounted this with a fresh database dump from prod to staging.