bcrypt:start(), error when starting

56 views
Skip to first unread message

Mert Öztürk

unread,
Nov 20, 2015, 6:37:47 AM11/20/15
to ChicagoBoss
Hello,

I ve added my CB app, bcrypt from:  "https://github.com/opscode/erlang-bcrypt.git" and compile without any errors.
When i try bcrypt:start() i get the following error;

(myapp@User)1> bcrypt:start().
{error,
    {{shutdown,
         {failed_to_start_child,bcrypt_nif_worker,
             {undef,
                 [{bcrypt_nif,create_ctx,[],[]},
                  {bcrypt_nif_worker,init,1,
                      [{file,"src/bcrypt_nif_worker.erl"},{line,31}]},
                  {gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},
                  {proc_lib,init_p_do_apply,3,
                      [{file,"proc_lib.erl"},{line,237}]}]}}},
     {bcrypt_app,start,[normal,[]]}}}
(myapp@User)2> 13:30:38.995 [error] The on_load function for module bcrypt_nif returned {error,{load_failed,"Failed to load NIF library ./deps/bcrypt/priv/bcrypt_nif: 'Belirtilen modül bulunamadý.'"}}
13:30:38.995 [error] CRASH REPORT Process <0.306.0> with 0 neighbours exited with reason: call to undefined function bcrypt_nif:create_ctx() in gen_server:init_it/6 line 330
13:30:38.995 [error] Supervisor bcrypt_sup had child bcrypt_nif_worker started with bcrypt_nif_worker:start_link() at undefined exit with reason call to undefined function bcrypt_nif:create_ctx() in context start_error
13:30:38.996 [error] CRASH REPORT Process <0.303.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,bcrypt_nif_worker,{undef,[{bcrypt_nif,create_ctx,[],[]},{bcrypt_nif_worker,init,1,[{file,"src/bcrypt_nif_worker.erl"},{line,31}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}}},{bcrypt_app,start,[normal,[]]}} in application_master:init/4 line 133
13:30:38.996 [info] Application bcrypt exited with reason: {{shutdown,{failed_to_start_child,bcrypt_nif_worker,{undef,[{bcrypt_nif,create_ctx,[],[]},{bcrypt_nif_worker,init,1,[{file,"src/bcrypt_nif_worker.erl"},{line,31}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,306}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,237}]}]}}},{bcrypt_app,start,[normal,[]]}}

I have bcrypt_nif.so and bcrypt in priv and all beam files shows bcrypt compiled well.
But i can not get it working. Anyone else faced this issue before?

Thanks
Mert

Dmitry Polyanovsky

unread,
Nov 30, 2015, 3:36:00 AM11/30/15
to ChicagoBoss
Try to ask on erlang mailing list
Reply all
Reply to author
Forward
0 new messages