Corrected for R15B01 <div>/siri<br><br><div class="gmail_quote">2011/10/24 Siri Hansen <span dir="ltr"><<a href="mailto:erlangsiri@gmail.com">erlangsiri@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I agree - systools:make_script should not create the boot file given this rel file. I'll add a ticket for future implementation. If anyone out there feels like doing the job, it will be much appreciated (and probably happen faster).<div>
/siri<br><br><div class="gmail_quote">2011/10/22 Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
I fixed it... My release file was wrong. I had each app listed like:<div><br></div><div>{kernel,"2.14.5",load},</div><div><br></div><div>But once for each app I removed the ', load' and so just had:</div>
<div><br></div><div>{kernel,"2.14.5",load},</div><div><br></div><div>It works fine. Odd that systools:make_script creates a boot file fine though if it can't run it.</div><div><br></div><div>Thanks.<div><div>
</div><div><br><br><div class="gmail_quote">
2011/10/22 Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And I do see it loaded if I just run 'erl':<div><br></div><div><div>1> regs().</div><div><br></div><div>** Registered procs on node nonode@nohost **</div><div>Name Pid Initial Call Reds Msgs</div>
<div>application_controlle <0.6.0> erlang:apply/2 437 0</div><div>code_server <0.19.0> erlang:apply/2 270601 0</div><div>erl_prim_loader <0.3.0> erlang:apply/2 324250 0</div>
<div>error_logger <0.5.0> gen_event:init_it/6 220 0</div><div>file_server_2 <0.18.0> file_server:init/1 85 0</div><div>global_group <0.17.0> global_group:init/1 59 0</div>
<div>global_name_server <0.12.0> global:init/1 50 0</div><div>inet_db <0.15.0> inet_db:init/1 251 0</div><div>init <0.0.0> otp_ring0:start/2 2614 0</div>
<div>kernel_safe_sup <0.28.0> supervisor:kernel/1 58 0</div><div>kernel_sup <0.10.0> supervisor:kernel/1 1562 0</div><div>rex <0.11.0> rpc:init/1 35 0</div>
<div>standard_error <0.21.0> erlang:apply/2 9 0</div><div>standard_error_sup <0.20.0> supervisor_bridge:standar 41 0</div><div>user <0.24.0> group:server/3 36 0</div>
<div>user_drv <0.23.0> user_drv:server/2 450 0</div><div><div></div><div><br><div class="gmail_quote">2011/10/22 Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nevermind, file_server module registeres as file_server_2:<div><br></div><div>-define(FILE_SERVER, file_server_2). % Registered name<div>
<div></div><div><br><br><div class="gmail_quote">2011/10/22 Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Though I can point out I actually have no file_server_2...<div><br></div><div><div>find ~/otp/ -name *file_server*</div>
<div>/home/dotcloud/otp/lib/kernel-2.14.4/src/file_server.erl</div><div>/home/dotcloud/otp/lib/kernel-2.14.4/ebin/file_server.beam</div>
<div>/home/dotcloud/otp/lib/kernel-2.14.5/src/file_server.erl</div><div>/home/dotcloud/otp/lib/kernel-2.14.5/ebin/file_server.beam</div><div><br></div><div>Hmm..</div><div><div></div><div><br><div class="gmail_quote">
2011/10/22 Tristan Sloughter <span dir="ltr"><<a href="mailto:tristan.sloughter@gmail.com" target="_blank">tristan.sloughter@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Right, there isn't much I can do in that respect though since I can't get into a shell when loading the boot file.<div>
<br></div><div>Thanks,</div><div>Tristan<div><div></div><div><br><br><div class="gmail_quote">2011/10/22 Motiejus Jakštys <span dir="ltr"><<a href="mailto:desired.mta@gmail.com" target="_blank">desired.mta@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sat, Oct 22, 2011 at 10:11:39AM -0500, Tristan Sloughter wrote:<br>
> I have a .rel file and successfully create the boot/script files with<br>
> systools:make_script but when I try to load the boot file it crashes with an<br>
> error I can't find reference too anywhere online. Does anyone have an idea<br>
> on what might be wrong?<br>
><br>
> $ erl<br>
> Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4]<br>
> [async-threads:0] [kernel-poll:false]<br>
><br>
> Eshell V5.8.5 (abort with ^G)<br>
> 1> systools:make_script("ctdemo", [local]).<br>
> ok<br>
> 2> q().<br>
> ok<br>
><br>
> $ erl -boot ctdemo<br>
> {"init terminating in<br>
> do_boot",{noproc,{gen_server,call,[file_server_2,{open,"./.erlang",[read]},infinity]}}}<br>
<br>
</div>In a nutshell, gen_server is complaining that process file_server_2 is<br>
not running.<br>
<br>
Check application:loaded_applications(), global_registered_names(),<br>
appmon:start() for troubleshooting.<br>
<br>
Hope this helps<br>
<font color="#888888"><br>
Motiejus<br>
</font></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>