[erlang-questions] {"init terminating in do_boot", {'cannot load', error_handler, get_files}}

Barco You barcojie@REDACTED
Tue Jul 30 08:46:04 CEST 2013


Here is my configurations. My application is called rlstock which depends
on only jsx and gen_smtp.

reltool.config :
{sys, [
       {lib_dirs, ["../deps", "../apps"]},
       {erts, [{mod_cond, derived}, {app_file, strip}]},
       {app_file, strip},
       {rel, "rlstock", "0.1",
        [
         kernel,
         stdlib,
         sasl,
                 inets,
             jsx,
                 gen_smtp,
         rlstock
        ]},
       {rel, "start_clean", "",
        [
         kernel,
         stdlib
        ]},
       {boot_rel, "rlstock"},
       {profile, embedded},
       {incl_cond, derived},
       {mod_cond, derived},
       {excl_archive_filters, [".*"]}, %% Do not archive built libs
       {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                           "^erts.*/(doc|info|include|lib|man|src)"]},
       {excl_app_filters, ["\.gitignore"]},
       {app, sasl,   [{incl_cond, include}]},
       {app, stdlib, [{incl_cond, include}]},
       {app, kernel, [{incl_cond, include}]},
       {app, crypto, [{incl_cond, include}]},
       {app, ssl, [{incl_cond, include}]},
       {app, public_key, [{incl_cond, include}]},
       {app, jsx, [{incl_cond, include}]},
       {app, rlstock, [{mod_cond, app}, {incl_cond, include}]},
       {app, hipe, [{incl_cond, exclude}]},
       {app, wx, [{incl_cond, exclude}]},
       {app, webtool, [{incl_cond, exclude}]}
      ]}.

{target_dir, "rlstock"}.

{overlay, [
           {mkdir, "log/sasl"},
           {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
           {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
           {copy, "files/rlstock", "bin/rlstock"},
           {copy, "files/rlstock.cmd", "bin/rlstock.cmd"},
           {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
           {copy, "files/install_upgrade.escript",
"bin/install_upgrade.escript"},
           {copy, "files/sys.config",
"releases/\{\{rel_vsn\}\}/sys.config"},
           {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
          ]}.
------------------------------------------------------------------------------------------------------------------
rlstock.app
{application,rlstock,
             [{description,"Test Project."},
              {vsn,"0.1"},
              {modules,[agent,convert,dispatcher,rlstock,rlstock_app,
                        rlstock_sup,spider,spider_sup,utils]},
              {registered,[]},
              {applications,[kernel,stdlib,inets,gen_smtp,jsx]},
              {mod,{rlstock_app,[]}},
              {env,[]}]}.
-----------------------------------------------------------------------------------------------------------------------
rebar.config
{lib_dirs, ["apps"]}.

{sub_dirs, [
            "rel",
            "apps/rlstock"
        ]}.

{erl_opts, [debug_info, {i,"include"}]}.

{deps_dir, ["deps"]}.


{deps, [
        {gen_smtp, ".*", {git, "git://github.com/Vagabond/gen_smtp.git",
"master"}},
        {jsx, ".*", {git, "git://github.com/talentdeficit/jsx.git",
"master"}}
]}.



On Tue, Jul 30, 2013 at 1:29 PM, Dmitry Kolesnikov
<dmkolesnikov@REDACTED>wrote:

> Hello,
>
> It looks like some component is missing from release. Hard to say,
> reltool.config and apps deps are needed.
>
> Try to check that all application deps are part of release
>
> Best Regards,
> Dmitry >-|-|-*>
>
>
> On 30.7.2013, at 7.45, Barco You <barcojie@REDACTED> wrote:
>
> The error like this:
>
> {"init terminating in do_boot",{'cannot load',error_handler,get_files}}
>
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
>
>
>
> On Tue, Jul 30, 2013 at 12:44 PM, Barco You <barcojie@REDACTED> wrote:
>
>> Hi,
>>
>> I've finished making an application and can successfully start it from
>> erl shell by using application:start(myapp). But, after I use rebar to
>> release it I got a error as the subject when I start the App from the
>> rel/myapp/bin/myapp. Any clues for that?
>>
>> Thank you!
>> Barco
>>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130730/94b1d260/attachment.htm>


More information about the erlang-questions mailing list