使用rebar的Erlang / OTP应用程序在发布时返回崩溃转储

时间:2016-01-19 05:50:35

标签: erlang otp rebar

我多次关注本教程,使用rebar创建了一个小应用程序并成功发布。但是当我来到主应用程序(calendarApp)时,返回了崩溃转储。我做了一些改动,但结果是一样的。我想知道我做错了什么,以及如何解决这个问题。

最后,当我开始并附加时,它返回" Node未运行!"。

我会告诉你:

sonu@sonu-Ideapad-Z570:~/calendarApp/rel$ ./calendarApp/bin/calendarApp console
Exec: /home/sonu/release/calendarApp/rel/calendarApp/erts-5.10.4/bin/erlexec -boot /home/sonu/release/calendarApp/rel/calendarApp/releases/1/calendarApp -mode embedded -config /home/sonu/release/calendarApp/rel/calendarApp/releases/1/sys.config -args_file /home/sonu/release/calendarApp/rel/calendarApp/releases/1/vm.args -- console
Root: /home/sonu/release/calendarApp/rel/calendarApp
Erlang R16B03 (erts-5.10.4) [source] [smp:4:4] [async-threads:10] [kernel-poll:false]

{global,calendarApp_sup} (<0.216.0>) starting....
{global,calendarApp_server} (<0.217.0>) starting ......
Eshell V5.10.4  (abort with ^G)
(calendarApp@127.0.0.1)1> 
=INFO REPORT==== 19-Jan-2016::09:50:45 ===
application: calendarApp
exited: {{shutdown,
{failed_to_start_child,calendarApp_server,
    {undef,
    [{mnesia,create_schema,
        [['calendarApp@127.0.0.1']],
        []},
    {calendarApp_db,init,0,
        [{file,"src/calendarApp_db.erl"},{line,7}]},
    {calendarApp_server,init,1,
        [{file,"src/calendarApp_server.erl"},{line,49}]},
    {gen_server,init_it,6,
        [{file,"gen_server.erl"},{line,304}]},
    {proc_lib,init_p_do_apply,3,
        [{file,"proc_lib.erl"},{line,239}]}]}}},
{calendarApp_app,start,[normal,[]]}}
type: permanent
{"Kernel pid terminated",application_controller,"   {application_start_failure,calendarApp,{{shutdown,{failed_to_start_child,calendarApp_server,{undef,[{mnesia,create_schema,[['calendarApp@127.0.0.1']],[]},{calendarApp_db,init,0,[{file,\"src/calendarApp_db.erl\"},{line,7}]},{calendarApp_server,init,1,[{file,\"src/calendarApp_server.erl\"},{line,49}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}}},{calendarApp_app,start,[normal,[]]}}}"}

Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller)   ({application_start_failure,calendarApp,{{shutdown,{failed_to_start_child,calendarApp_server,{undef,[{mnesia,create_schema, [['calendarApp@127.0.0.1']],
sonu@sonu-Ideapad-Z570:~/calendarApp/rel$ ./calendarApp/bin/calendarApp console

如果有人知道这个问题,请帮我解决这个问题。

0 个答案:

没有答案