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

Issue with devise and bcrypt on a macbook m1 rails install #41843

Closed
elviajero971 opened this issue Apr 5, 2021 · 3 comments
Closed

Issue with devise and bcrypt on a macbook m1 rails install #41843

elviajero971 opened this issue Apr 5, 2021 · 3 comments

Comments

@elviajero971
Copy link

Hello there, I'm having some issues on a new mac m1 and my install of rails

System configuration

OS: macOS Big Sur Version 11.2.1 (20D74)

zsh: 5.8 (x86_64-apple-darwin20.0)

postgres: 13.2

Rails version: Rails 6.1.3

Ruby version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]

Brew version: Homebrew 3.0.9

What I can do:

I have successfully:

  • create a rails app with rails new myApp -d postgresql
  • add gem devise to the Gemfile
  • run bundle install
  • create devise User and all CRUD views
  • run db:create, db:migrate
  • launch the server with rails s
  • access all the pages of login, sign up, etc...

Expected behavior

I'm expecting to be able to create an account and connect to it.

Actual behavior

When I try to create an account I'm running into an error about the gem bcrypt that seems to run on the wrong architecture...

Screenshot 2021-04-05 at 21 33 17

I've tried to reinstall everything but i still got the same error.

Anyone have an idea about the issue ?

Thanks by advance and have a good day to you all.

@louim
Copy link
Contributor

louim commented Apr 5, 2021

Hi @elviajero971. This looks like an issue with Bcrypt specifically. There is an issue open in the Bcrypt repository here: bcrypt-ruby/bcrypt-ruby#239. One user report success by running gem uninstall bcrypt and then bundle install. Discussion should probably continue in the Bcrypt repository.

@elviajero971
Copy link
Author

Hi @elviajero971. This looks like an issue with Bcrypt specifically. There is an issue open in the Bcrypt repository here: bcrypt-ruby/bcrypt-ruby#239. One user report success by running gem uninstall bcrypt and then bundle install. Discussion should probably continue in the Bcrypt repository.

I just tried it and I still got the same issues even after uninstalling bcrypt, running bundle install and restarting the server.

I'm moving the issue to bcrypt repo, thanks :)

@elviajero971
Copy link
Author

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

No branches or pull requests

2 participants