[erlang-questions] noproc file_server_2 when trying to load boot file

22 views
Skip to first unread message

Tristan Sloughter

unread,
Oct 22, 2011, 11:11:39 AM10/22/11
to erlang-q...@erlang.org
I have a .rel file and successfully create the boot/script files with systools:make_script but when I try to load the boot file it crashes with an error I can't find reference too anywhere online. Does anyone have an idea on what might be wrong?

$ erl
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]

Eshell V5.8.5  (abort with ^G)
1> systools:make_script("ctdemo", [local]).
ok
2> q().
ok

$ erl -boot ctdemo
{"init terminating in do_boot",{noproc,{gen_server,call,[file_server_2,{open,"./.erlang",[read]},infinity]}}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Motiejus Jakštys

unread,
Oct 22, 2011, 11:18:36 AM10/22/11
to Tristan Sloughter, erlang-q...@erlang.org
On Sat, Oct 22, 2011 at 10:11:39AM -0500, Tristan Sloughter wrote:
> I have a .rel file and successfully create the boot/script files with
> systools:make_script but when I try to load the boot file it crashes with an
> error I can't find reference too anywhere online. Does anyone have an idea
> on what might be wrong?
>
> $ erl
> Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:4:4] [rq:4]
> [async-threads:0] [kernel-poll:false]
>
> Eshell V5.8.5 (abort with ^G)
> 1> systools:make_script("ctdemo", [local]).
> ok
> 2> q().
> ok
>
> $ erl -boot ctdemo
> {"init terminating in
> do_boot",{noproc,{gen_server,call,[file_server_2,{open,"./.erlang",[read]},infinity]}}}

In a nutshell, gen_server is complaining that process file_server_2 is
not running.

Check application:loaded_applications(), global_registered_names(),
appmon:start() for troubleshooting.

Hope this helps

Motiejus
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Tristan Sloughter

unread,
Oct 22, 2011, 11:20:58 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
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.

Thanks,
Tristan

2011/10/22 Motiejus Jakštys <desir...@gmail.com>

Tristan Sloughter

unread,
Oct 22, 2011, 11:21:43 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
Though I can point out I actually have no file_server_2...

find ~/otp/ -name *file_server*
/home/dotcloud/otp/lib/kernel-2.14.4/src/file_server.erl
/home/dotcloud/otp/lib/kernel-2.14.4/ebin/file_server.beam
/home/dotcloud/otp/lib/kernel-2.14.5/src/file_server.erl
/home/dotcloud/otp/lib/kernel-2.14.5/ebin/file_server.beam

Hmm..

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Tristan Sloughter

unread,
Oct 22, 2011, 11:22:55 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
Nevermind, file_server module registeres as file_server_2:

-define(FILE_SERVER, file_server_2).      % Registered name

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Tristan Sloughter

unread,
Oct 22, 2011, 11:27:00 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
And I do see it loaded if I just run 'erl':

1> regs().

** Registered procs on node nonode@nohost **
Name                  Pid          Initial Call                      Reds Msgs
application_controlle <0.6.0>      erlang:apply/2                     437    0
code_server           <0.19.0>     erlang:apply/2                  270601    0
erl_prim_loader       <0.3.0>      erlang:apply/2                  324250    0
error_logger          <0.5.0>      gen_event:init_it/6                220    0
file_server_2         <0.18.0>     file_server:init/1                  85    0
global_group          <0.17.0>     global_group:init/1                 59    0
global_name_server    <0.12.0>     global:init/1                       50    0
inet_db               <0.15.0>     inet_db:init/1                     251    0
init                  <0.0.0>      otp_ring0:start/2                 2614    0
kernel_safe_sup       <0.28.0>     supervisor:kernel/1                 58    0
kernel_sup            <0.10.0>     supervisor:kernel/1               1562    0
rex                   <0.11.0>     rpc:init/1                          35    0
standard_error        <0.21.0>     erlang:apply/2                       9    0
standard_error_sup    <0.20.0>     supervisor_bridge:standar           41    0
user                  <0.24.0>     group:server/3                      36    0
user_drv              <0.23.0>     user_drv:server/2                  450    0

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Tristan Sloughter

unread,
Oct 22, 2011, 11:38:17 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
I fixed it... My release file was wrong. I had each app listed like:

{kernel,"2.14.5",load},

But once for each app I removed the ', load' and so just had:

{kernel,"2.14.5",load},

It works fine. Odd that systools:make_script creates a boot file fine though if it can't run it.

Thanks.

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Tristan Sloughter

unread,
Oct 22, 2011, 11:38:46 AM10/22/11
to Motiejus Jakštys, erlang-q...@erlang.org
Grr, I meant, removed the ', load' and so just had:

{kernel,"2.14.5"},

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Siri Hansen

unread,
Oct 24, 2011, 3:03:57 AM10/24/11
to Tristan Sloughter, erlang-q...@erlang.org
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).
/siri

2011/10/22 Tristan Sloughter <tristan....@gmail.com>

Siri Hansen

unread,
Dec 21, 2011, 9:46:26 AM12/21/11
to Tristan Sloughter, erlang-q...@erlang.org
Corrected for R15B01 
/siri

2011/10/24 Siri Hansen <erlan...@gmail.com>
Reply all
Reply to author
Forward
0 new messages