starting my release fails

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Wed Jun 22 18:14:21 CEST 2005

Looking into the crash dump at the list of loaded modules,
you find:

Current size: 533
Current size: 32094
Current size: 35232
Current size: 25724
Current size: 21817

The most common mistake in boot scripts, IME, is to start 
a script build with an older OTP, and fail to load the 
modules. If you run your system in embedded mode, then
all modules will be loaded at boot time, and all paths 
must be correct.

In normal, on-demand, mode, only the most basic modules 
will be loaded, and then the ones called upon during boot.

In your case, only the preloaded modules have been loaded.
In an example script:

{script,{"OTP  APN 181 01","R10B"},

In the .rel file, you find a nice overview of the 
different application versions. Also the
might be worth looking into for the erts version
(although that doesn't seem to be the problem this time.)

My guess is that the path to the kernel application 
was wrong, and that this triggered the error.

Given that this mistake is so easy to make, perhaps 
there should be a warning or more descriptive error message?


> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of 
> Dietmar Schaefer
> Sent: den 22 juni 2005 12:13
> To: erlang-questions@REDACTED
> Subject: starting my release fails
> Hi !
> I just built a release more or less according to the 
> release_handling_tutorial
> When I start my app I get:
>  {"init terminating in do_boot",{'cannot 
> load',error_handler,get_file}}
> Crash dump was written to: erl_crash.dump
> init terminating in do_boot ()
> P.S.
> I am using R10B-5
> Here is my start script:
> erl -boot /home/dietmar/cmmc-foc/releases/1.0/cmmc  -mnesia dir 
> '"/opt/cmmc/db"' -sname cmmc -setcookie 4dp-cmmc-foc  -config 
> /home/dietmar/cmmc-foc/lib/
> cmmc-1.0/config/sys2 -pa ["/home/dietmar/cmmc-foc/lib/cmmc-1.0/ebin"] 
> -il ["../mibs"]
> I attached the erl_scrash_dump hoping that someone can give a hint !
> Regards
> Dietmar

More information about the erlang-questions mailing list