Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCrypt::Errors::InvalidHash (invalid hash): #348

Open
jobard-fcnet opened this issue Jan 13, 2021 · 5 comments
Open

BCrypt::Errors::InvalidHash (invalid hash): #348

jobard-fcnet opened this issue Jan 13, 2021 · 5 comments

Comments

@jobard-fcnet
Copy link

Hello,

When I submit the step 2, the application crashes with this error:

`I, [2021-01-13T12:12:45.845817 #1709364] INFO -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxxxxxxxxxx", "user"=>{"name"=>"xxxxxx", "email_address"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Next Step"}

D, [2021-01-13T12:12:45.847546 #1709364] DEBUG -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] ESC[1mESC[36mSite Load (0.4ms)ESC[0m ESC[1mESC[34mSELECT sites.* FROM sites ORDER BY sites.id ASC LIMIT 1ESC[0m

D, [2021-01-13T12:12:45.848277 #1709364] DEBUG -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] ESC[1mESC[36mUser Load (0.2ms)ESC[0m ESC[1mESC[34mSELECT users.* FROM users ORDER BY users.id ASC LIMIT 1ESC[0m

I, [2021-01-13T12:12:45.926254 #1709364] INFO -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] Completed 500 Internal Server Error in 80ms (ActiveRecord: 0.6ms)

F, [2021-01-13T12:12:45.927040 #1709364] FATAL -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f]

F, [2021-01-13T12:12:45.927078 #1709364] FATAL -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] BCrypt::Errors::InvalidHash (invalid hash):

F, [2021-01-13T12:12:45.927103 #1709364] FATAL -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f]

F, [2021-01-13T12:12:45.927132 #1709364] FATAL -- : [dc7baf9b-0795-499a-af81-0a24d2d21c2f] app/controllers/setup_controller.rb:17:in step2'

Does anyone know how to fix this ?

Best,

@blarosen95
Copy link

blarosen95 commented Feb 15, 2021

I am experiencing the same issue with the same error.
ETA: My error appears to have one more part at the end: [db170d3a-9c0d-46ef-bf45-e86e5f5b484f] app/controllers/application_controller.rb:20:in `set_time_zone'

@blarosen95
Copy link

I've worked around my copy of this issue by utilizing a docker container. I believe the issue might not fall into the scope of Adam Cooke's responsibilities here as it's either a Ruby package or OS concern from my end.

@cbldev
Copy link

cbldev commented Nov 2, 2021

I faced the same problem today. It's because of the bcrypt gem dependency version. You can update it.

@SharpworksMZ
Copy link

Hi. I have this exact problem on a new Debian 11 (bullseye) VM. Using mariadb Ver 15.1 Distrib 10.5.15

I'm not overly familiar with Ruby / Gem. What is the process for updating the bcrypt dependency?

@SharpworksMZ
Copy link

Apologies, I've just seen your note. I had to edit the Gemfile.lock and specify the correct installed version. I also then had to update bundler too once I had removed the old version (I seemed to have two versions of bcrypt installed side-by-side).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants