<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Gregory,<div class="">You can use the riak_* components from the riak_core_ng/Kyorai fork [1] they all build with both modern erlang and rebar3 also exist as hex packages (if you are into that kind of thing).</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Heinz </div><div class=""><br class=""></div><div class="">[1] <a href="http://github.com/Kyorai/" class="">http://github.com/Kyorai/</a><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 25. May 2018, at 15:26, Grigory Fateyev <<a href="mailto:gfborn@gmail.com" class="">gfborn@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Taavi, thank you!<div class=""><br class=""></div><div class="">Your advice is very close to the reason. At least I got another error related to eleveldb.</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2018-05-25 15:42 GMT+03:00 <span dir="ltr" class=""><<a href="mailto:taavi@uninet.ee" target="_blank" class="">taavi@uninet.ee</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This log indicates, that<br class="">
<br class="">
failure is in ‘on_load_function_fail’, which tries to load ‘riak_ensemble_clock'<br class="">
- this is module trying to load NIF i.e. natively implemented function i.e. C-compiled module<br class="">
- quite likely something bad had happened and C module is not compiled correctly and is not present<br class="">
<br class="">
Google indicates, that people have struggled with similar problems before<br class="">
and had to help rebar configuration<br class="">
<br class="">
<a href="https://github.com/basho/riak_ensemble/issues/122" rel="noreferrer" target="_blank" class="">https://github.com/basho/riak_<wbr class="">ensemble/issues/122</a><br class="">
<br class="">
Maybe this will help you further..<br class="">
<br class="">
best regards,<br class="">
taavi<br class="">
<div class=""><div class="h5"><br class="">
<br class="">
> On 25 May 2018, at 15:22, Grigory Fateyev <<a href="mailto:gfborn@gmail.com" class="">gfborn@gmail.com</a>> wrote:<br class="">
> <br class="">
> Hello!<br class="">
> <br class="">
> We have a big project with a lot of dependencies and legacy code. I have a task to move it to rebar3. I could compile and make a release, but couldn't start it. It returns me:<br class="">
> <br class="">
> {error_logger,{{2018,5,25},{<wbr class="">11,30,16}},crash_report,[[{<wbr class="">initial_call,{supervisor,<wbr class="">kernel,['Argument__1']}},{pid,<wbr class=""><0.1970.0>},{registered_name,[<wbr class="">]},{error_info,{exit,{on_load_<wbr class="">function_failed,riak_ensemble_<wbr class="">clock},[{gen_server,init_it,6,<wbr class="">[{file,"gen_server.erl"},{<wbr class="">line,328}]},{proc_lib,init_p_<wbr class="">do_apply,3,[{file,"proc_lib.<wbr class="">erl"},{line,239}]}]}},{<wbr class="">ancestors,[kernel_sup,<0.1946.<wbr class="">0>]},{messages,[]},{links,[<0.<wbr class="">1947.0>]},{dictionary,[]},{<wbr class="">trap_exit,true},{status,<wbr class="">running},{heap_size,376},{<wbr class="">stack_size,27},{reductions,<wbr class="">124}],[]]}<br class="">
> {error_logger,{{2018,5,25},{<wbr class="">11,30,16}},supervisor_report,[<wbr class="">{supervisor,{local,kernel_sup}<wbr class="">},{errorContext,start_error},{<wbr class="">reason,{on_load_function_<wbr class="">failed,riak_ensemble_clock}},{<wbr class="">offender,[{pid,undefined},{<wbr class="">name,kernel_safe_sup},{mfargs,<wbr class="">{supervisor,start_link,[{<wbr class="">local,kernel_safe_sup},kernel,<wbr class="">safe]}},{restart_type,<wbr class="">permanent},{shutdown,infinity}<wbr class="">,{child_type,supervisor}]}]}<br class="">
> {error_logger,{{2018,5,25},{<wbr class="">11,30,17}},crash_report,[[{<wbr class="">initial_call,{application_<wbr class="">master,init,['Argument__1','<wbr class="">Argument__2','Argument__3','<wbr class="">Argument__4']}},{pid,<0.1945.<wbr class="">0>},{registered_name,[]},{<wbr class="">error_info,{exit,{{shutdown,{<wbr class="">failed_to_start_child,kernel_<wbr class="">safe_sup,{on_load_function_<wbr class="">failed,riak_ensemble_clock}}},<wbr class="">{kernel,start,[normal,[]]}},[{<wbr class="">application_master,init,4,[{<wbr class="">file,"application_master.erl"}<wbr class="">,{line,133}]},{proc_lib,init_<wbr class="">p_do_apply,3,[{file,"proc_lib.<wbr class="">erl"},{line,239}]}]}},{<wbr class="">ancestors,[<0.1944.0>]},{<wbr class="">messages,[{'EXIT',<0.1946.0>,<wbr class="">normal}]},{links,[<0.1944.0>,<<wbr class="">0.1943.0>]},{dictionary,[]},{<wbr class="">trap_exit,true},{status,<wbr class="">running},{heap_size,376},{<wbr class="">stack_size,27},{reductions,<wbr class="">163}],[]]}<br class="">
> <br class="">
> I have two theories why it so, either not all deps in the release or don't start needed apps. How to understand the issue? I've read 'crash.dump', but it has a few info to get the reason.<br class="">
> <br class="">
> Thank you!<br class="">
</div></div>> ______________________________<wbr class="">_________________<br class="">
> erlang-questions mailing list<br class="">
> <a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank" class="">http://erlang.org/mailman/<wbr class="">listinfo/erlang-questions</a><br class="">
<br class="">
</blockquote></div><br class=""></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>