-
Notifications
You must be signed in to change notification settings - Fork 10
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 failure #1
Comments
Thanks for opening this issue, I'll try to get an update in place soon. In the meantime, check the comments http://imperialwicket.com/colosimo-chicago-boss-postgresql-and-bcrypt for some discussion and a few links regarding this issue. |
Yeah I looked at all of that and the google groups discussion.. still trying to figure out what all of it means.. |
From the colosimo directory, does this happen for you: Terminal:
After ChicagoBoss startup output:
Or do you see an error here? |
Yeah, I do:
However, if I run
Then, running the
Talk about verbose!... |
So wherever bcrypt is installed, it's not starting for ChicagoBoss. Also, you'll need to start both crypto and bcrypt:
Then those errors should go away. A more fundamental test is just executing 'erl' to bring up the prompt, and trying the same thing. That will tell you if it's a user/environment error, or just a module loading issue for Erlang generically. I'm also interested in whether or not you installed erlang from a package, or built it from source; and what OS (and architecture) you are using. I know there are a couple of oddities in the Ubuntu Erlang packages, and I'm wondering if they load modules/libs differently than a local ./configure && make && make install would handle them. I'll echo my earlier guess that it's a problem with universal packages and libs stored for 32 or 64 bit specifically. |
Hmmm I installed erlang R15B02 with kerl onto Linux Mint 13:
I tried putting Also tried putting it in the
Clearly I need to do lots more reading about this before randomly trying things, hoping they'll work. : ) |
Is crypto.beam in the same relative location as bcrypt.beam on your system? [EDIT - 'bcrypt.beam' not 'erlang-bcrypt.beam'] |
It wasn't, because I moved it into the |
This is my super-basic cobbling together of internet information solution: #2 It probably sucks. : ) |
Thanks for figuring this out. I need to figure out how/where to merge this - as it's definitely an environment-specific update. |
Meaning you don't have to start bcrypt like this? Does your bcrypt return something besides a tuple from |
No, I don't start bcrypt at all, it's installed with the rest of my core modules so that whenever I issue 'erl [args]', it loads. I can call ./init.sh or ./init-dev.sh and the project cloned from master runs, registers, and logs in. But, this is on Debian 32bit, and with a locally built Erlang installation (I've also tested on Amazon Linux, 64bit - again with locally built Erlang). There are a lot of good reasons for installing bcrypt as a dependency to your project, but in my mind, bcrypt is handy to have at the core level for Erlang. I'm pretty new to Erlang too, and I agree that much of this confusion has to do with loading modules in Erlang generally and the best way to transition this to a CB project. |
Nice little intro... but I ran into some problems:
After installing CB, cloning this repo, setting up the db, installing bcrypt (it seems to start in my erl REPL) and making a boss.config file, it still doesn't work.... Here's what I get from the CB log when I try to register a user:
Any clues? I'll gladly update the readme with precise instructions once we get this working. : )
The text was updated successfully, but these errors were encountered: