Strange error on init-dev.sh

124 views
Skip to first unread message

Duarte Ferreira

unread,
Aug 1, 2013, 6:10:22 AM8/1/13
to chica...@googlegroups.com
Hi, 
I'm just starting with Chicago Boss and Elixir so this is probably a really newbie mistake I'm making but when running the init-dev.sh script with elixir enabled I get this error message:

11:01:16.750 [info] Application lager started on node koolectables@DuarteFerreira
11:01:16.773 [info] Application crypto started on node koolectables@DuarteFerreira
11:01:16.785 [info] Application mimetypes started on node koolectables@DuarteFerreira
11:01:16.830 [error] CRASH REPORT Process <0.84.0> with 0 neighbours exited with reason: call to undefined function elixir:start(normal, []) in application_master:init/4 line 133
11:01:17.060 [info] Application elixir exited with reason: call to undefined function elixir:start(normal, [])
11:01:17.060 [info] Starting Boss in development mode....

This is just a starting application using the README_ELIXIR on Github.

Best

Tim McNamara

unread,
Aug 1, 2013, 5:01:49 PM8/1/13
to chica...@googlegroups.com
Thanks for reporting this Duarte. Sorry to see that things are not working for you as they should be. Erlang errors can be pretty intimidating. This is saying that Chicago Boss can't find Elixir.

In the rebar.config file, have you uncommented the exilir dependency in the Chicago Boss directory?

    %% Uncomment the follwing line if you have Erlang R15 and want Elixir support
    % {elixir, ".*", {git, "git://github.com/elixir-lang/elixir.git", {tag, "v0.9.3"}}},
    %% Then copy priv/web_controller.ex to src/ in this directory and recompile
    %% See README_ELIXIR for more details.

Once this has been done, you can ask rebar to install Elixir for you.

./rebar get-deps
./rebar update-deps


Tim McNamara
@timClicks


--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Duarte Ferreira

unread,
Aug 2, 2013, 6:18:27 AM8/2/13
to chica...@googlegroups.com
Hi,
Just to give more information I'm using the git Head version of ChicagoBoss.

    %% Uncomment the follwing line if you have Erlang R15 and want Elixir support
    {elixir, ".*", {git, "git://github.com/elixir-lang/elixir.git", {tag, "v0.9.3"}}},
    %% Then copy priv/web_controller.ex to src/ in this directory and recompile
    %% See README_ELIXIR for more details.

I copied priv/elixir into the src directory on ChicagoBoss directory, now I have the directory src/elixir.


I get this error the first time it compiles:

Compiled src/boss/boss_erlydtl_tags.erl
Compiled src/boss/boss_mail_driver_mock.erl
Compiled src/boss_test/boss_test.erl

=INFO REPORT==== 2-Aug-2013::11:11:30 ===
    application: elixir
    exited: {bad_return,
                {{elixir,start,[normal,[]]},
                 {'EXIT',
                     {undef,
                         [{elixir,start,[normal,[]],[]},
                          {application_master,start_it_old,4,
                              [{file,"application_master.erl"},
                               {line,269}]}]}}}}
    type: temporary
ERROR: 
*** Missing Elixir compiler ***
  You must do one of the following:
    a) Install Elixir globally in your erl libs
    b) Add Elixir as a dep for your project, eg:
      {deps, [{elixir, "0.9.3",
        {git, "git://github.com/elixir-lang/elixir",
         {tag, "v0.9.3"}}}]}.
      {lib_dirs, ["deps/elixir/lib"]}.

ERROR: compile failed while processing /home/dferreira/dev/ChicagoBoss: rebar_abort

When I rerun /rebar compile the error just goes away and everything seams ok.

Untill I create the app and try to run it.

Another this the README_ELIXIR.md and the rebar.conf have different instructions on how to get Elixir working.

Eric Cestari

unread,
Aug 2, 2013, 12:48:35 PM8/2/13
to chica...@googlegroups.com
Duarte,

Could you add to your boss.config:
[{boss, [
{path, "../ChicagoBoss"}, <-- or whatever the correct relative path to your CB install

And try again ?

Thanks,
Eric

Duarte Ferreira

unread,
Aug 2, 2013, 2:19:38 PM8/2/13
to chica...@googlegroups.com
Thanks, that seems to fix the error on starting the server.

I thought ChicagoBoss was on /deps/boss and a project was self contained.

Is this a limitation of running with Elixir or is there a way to make it be self contained?

Best,

Duarte Ferreira

Eric Cestari

unread,
Aug 2, 2013, 2:28:52 PM8/2/13
to chica...@googlegroups.com
There is indeed a bug with Elixir using the self contained version.
I haven't been able to track it down yet.

I have issued a pull request to correct the default template :
Best,
Eric

Evan Miller

unread,
Aug 6, 2013, 10:28:57 AM8/6/13
to ChicagoBoss
Thanks for the reports and fixes, all. The Elixir installation
procedure is still under construction, but I'll get Eric's changed
merged in so it works in the meantime.
Evan Miller
http://www.evanmiller.org/

Carlos Paparoni

unread,
Mar 25, 2015, 10:13:27 AM3/25/15
to chica...@googlegroups.com
Hi all, I realize this is a very old thread, but I've been trying to enable Elixir support and the problem persists. The odd thing is that only by pointing boss to the standalone folder (instead of deps/boss) is Elixir able to function normally.

I even ran the same staps provided in README_ELIXIR.md inside deps/boss, but no dice.

Any idea as to what might be going on?
Reply all
Reply to author
Forward
0 new messages