本文介绍了Erlang:Mnesia在使用钢筋释放时无法创建模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在启动时调用mnesia:create_schema时,程序崩溃。
如果我在ebin中运行我的程序,而不释放它,它可以找到。
错误日志如下:

When I call mnesia:create_schema on startup, the program crashes.If I run my program in ebin without releasing it, it works find.The error log as follows:

=INFO REPORT==== 3-Jul-2013::09:44:06 ===
application: eddy
exited: {bad_return,
         {{eddy_app,start,[normal,[]]},
          {'EXIT',
           {{badmatch,
             {error,
              {'EXIT',
               {undef,
                [{mnesia_backup,open_write,
                  ["/home/cometeor/eddy/rel/eddy/[email protected]/[email protected]"],
                  []},
                 {mnesia_bup,do_apply,4,
                  [{file,"mnesia_bup.erl"},{line,387}]},
                 {mnesia_bup,make_initial_backup,3,
                  [{file,"mnesia_bup.erl"},{line,378}]},
                 {mnesia_bup,create_schema,2,
                  [{file,"mnesia_bup.erl"},{line,348}]},
                 {eddy_database,start,0,
                  [{file,"src/eddy_database.erl"},{line,24}]},
                 {eddy_app,start,2,[{file,"src/eddy_app.erl"},{line,16}]},
                 {application_master,start_it_old,4,
                  [{file,"application_master.erl"},{line,274}]}]}}}},
            [{eddy_database,start,0,
              [{file,"src/eddy_database.erl"},{line,24}]},
             {eddy_app,start,2,[{file,"src/eddy_app.erl"},{line,16}]},
             {application_master,start_it_old,4,
              [{file,"application_master.erl"},{line,274}]}]}}}}


推荐答案

Resolved.Must add

Resolved.Must add

{app, mnesia, [{mod_cond, app}]},

to reltool.config。

to reltool.config.

这篇关于Erlang:Mnesia在使用钢筋释放时无法创建模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 00:12