Hey,

I'm trying to get Riak to load through the erl_boot_server, have anyone
had any success with this before?

At the moment i'm stuck with the most basic part of just getting
dependencies to load over the server. The boot file is loaded (judging
by the fact it tries to load deps) but no code is found.

I start the bootserver with:
erl -id bootserver -name bootserver -pa lib/*/ebin -run erl_boot_server
start 127.0.0.1

The riak vm
erl -id riak -name riak -hosts 127.0.0.1 -loader inet -boot
releases/riak-1.3.1/riak

So the first issue arises: {"init terminating in do_boot",{'cannot
load',error_handler,get_file}}

This can be mitigated by adding kernel & stdlib to the codepath with -pa

Now when i run it it returns a error stating it can't find mochiweb:
{bad_return,
                        {{mochiweb_app,start,[normal,[]]},
                         {'EXIT',
                             {undef,
                                 [{mochiweb_app,start,[normal,[]],[]},
                                  {application_master,start_it_old,4,
                                      [{file,"application_master.erl"},
                                       {line,274}]}]}}}}

As far as i understand it uses erl_prim_loader which in turn requests
code remotely from the boot server.  Now since the boot script defines
where to find the code on disk i assume that it just needs to be corrected
to point to the right place - i base this on `erl_prim_loader:get_file/1`
works when given a path relative to the bootserver working dir.

Any pointers on how todo this is greatly appreciated

Olav

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to