Stuck in {"init termination in do_boot", {undef, [{rmbrDb, start, [], []},

My project has several dependencies in ... / deps, and two contain Erlang applications in ... / apps. rebar.config:

{sub_dirs, ["apps/rmbrDb","apps/rmbrRest","rel"]}.
{lib_dirs, ["deps","apps"]}.

{deps, [
    {webmachine, "1.10.*", {git, "git://github.com/basho/webmachine", "HEAD"}},
    {riakc, ".*", {git, "git://github.com/basho/riak-erlang-client", "HEAD"}}
]}.

The project compiles ( ./rebar get-deps compile) without errors, and the applications it contains create beam files.

Offensive application files are as follows:

{application,rmbrDb,
         [{description,"Database Api for Main"},
          {vsn,"0.0.1"},
          {modules,[rmbrDb,rmbrDb_app,rmbrDb_sup]},
          {registered,[rmbrDb_sup]},
          {applications,[kernel,stdlib]},
          {mod,{rmbrDb_app,[]}},
          {start_phases,[]}]}.

I am trying to start using a shell script:

exec erl -pa $PWD/ebin $PWD/deps/*/ebin $PWD/apps/*/ebin -boot start_sasl -s reloader -s rmbrDb -s rmbrRest

What produces:

{"init terminating in do_boot",{undef,[{rmbrDb,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

The magazine contains

=mod:rmbrDb
Current size: 7281
Current attributes: 836C0000000...
Current compilation info: 836C0000000...

and

=fun
Module: rmbrDb
Uniq: 118638513
Index: 0
Address: 0x000000001a52b6d0
Native_address: 0x0000000017c8d370
Refc: 1

which assumes the module is loaded.

The rmbrDb_app file contains:

-module(rmbrDb_app).
-behaviour(application).
-export([start/2, stop/1]).
-spec start(normal | {takeover, node()} | {failover, node()},
            any()) -> {ok, pid()} | {ok, pid(), State::any()} |
                      {error, Reason::any()}.
start(_StartType, _StartArgs) ->
    case rmbrDb_sup:start_link() of
        {ok, Pid} ->
            {ok, Pid};
        Error ->
            Error
    end.

Thus, the start function is specified.

I am working on OSX 10.9.4 using Erlang / OTP 17 [erts-6.1] [source] [64-bit] [smp: 8: 8] Erlang compiled and launched several projects, and the installation is complete.

I have no idea why do_boot cannot start rmbrDb

, . , .

+4
1

-s erl , . , -s rmbrDb, start , erl rmbrDb:start(), (undef). . erl.

. .

+8

All Articles