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
Setup script : infinite loop #1049
Comments
Time to dust off my RPi. What OS are you using? I'll download Raspbian and give it a whirl. |
I'm on raspbian. Up to date |
Thanks @adamotte! Still compiling Node.js... ⌚ Edit: Done now, only took two hours and 20 minutes Edit 2: Reproduced on RPi. |
I'm thinking it's related to bcrypt... the error comes up when attempting to hash a password prior to storage. |
Ok @julianlam do you have an alternative? |
At present, unsure whether the problem lies upstream or whether it's
|
With your trick, i found this post bcript fix for ghost on RPi, adapt to nodebb and that's work ! Do you want a pull-request? |
@adamotte ahh .. NodeBB just migrated from bcrypt to use bcryptjs @julianlam config? just like redis vs mongo? lol EDIT: RPi really? |
I didn't notice that nodebb just migrated. Maybe you could just write it on a wiki for RPi user. |
This still happens on latest code with bcrypt-nodejs, afaict
|
@adamotte I have a theory, but I can't test it, I don't have a RPi - I had this issue with the import plugin, where async call were going going sync, even with can you try the following:
find this function FROM
TO
unrelated note@Julian,looking at the bcryptjs hash function
calling hash() with a number, will call genSalt(), so you do not need to call genSalt() then hash(), ,
|
javascript is scary. Imagine we put that in and then 12 is used as the salt for everything 😀
FTW. |
ugh, yea, I keep forgetting that nconf, but to be fair, it shouldnt be, the nconf config you be normalized, so the |
Haha well after I typed that i went and checked turns out it is a |
If you'd like to try the fix outlined in the Ghost blog (the technologies Ghost and NodeBB use are very similar, after all...), you can give it a try and let us know how it goes!
Edit: Confirmed that the above steps work. |
I've opened an issue upstream. In the meantime, the workaround will have to suffice. |
@adamotte -- can you give v0.7.11 of bcryptjs a whirl? Let me know if this is still an issue. |
I confirmed that your steps work like a charm. |
Environment: Raspberry pi type B with
node: 0.10.25
npm: 1.3.24
redis-server: 2.8.6
nodebb: 0.3.2
When i run the following command:
I obtain the error:
Warning display 464 times.
Setup trace:
The text was updated successfully, but these errors were encountered: