[erlang-questions] *WARNING* Missing application sasl. Can not upgrade with this release

by by@REDACTED
Mon Apr 22 08:32:51 CEST 2019


I believe I know what happened.
I made a local copy of the library sail-3.3, and add some debug printing, use the local copy instead, then the reason shows.
The "*WARNING*" message is for “plain.boot”, and this only contains [{kernel,"6.2",permanent},{stdlib,"3.7",permanent}].
So the "*WARNING*" message correctly reflect what the document said.

The console dump below puts the reason.
====
Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Eshell V10.2.3  (abort with ^G)
1> target_system:create("mysystem").
Reading file: "mysystem.rel" ...
Creating file: "./plain.rel" from "mysystem.rel" ...
Making "./plain.script" and "./plain.boot" files ...
====debug: [{kernel,"6.2",permanent},{stdlib,"3.7",permanent}]
*WARNING* Missing application sasl. Can not upgrade with this release
Making "mysystem.script" and "mysystem.boot" files ...
====debug: [{kernel,"6.2",permanent},
            {stdlib,"3.7",permanent},
            {sasl,"3.3",permanent},
            {hello,"0.1.0",permanent}]
Creating tar file "mysystem.tar.gz" ...
====debug: [{kernel,"6.2",permanent},
            {stdlib,"3.7",permanent},
            {sasl,"3.3",permanent},
            {hello,"0.1.0",permanent}]
Creating directory "./tmp" ...
Extracting "mysystem.tar.gz" into directory "./tmp" ...
Deleting "erl" and "start" in directory "./tmp/erts-10.2.3/bin" ...
Creating temporary directory "./tmp/bin" ...
Copying file "./plain.boot" to "./tmp/bin/start.boot" ...
Copying files "epmd", "run_erl" and "to_erl" from 
"./tmp/erts-10.2.3/bin" to "./tmp/bin" ...
Creating temporary directory "./tmp/log" ...
Creating "./tmp/releases/start_erl.data" ...
Recreating tar file "mysystem.tar.gz" from contents in directory "./tmp" ...
Removing directory "./tmp" ...
ok
2> 
====


> 在 2019年4月22日,10:52,by <by@REDACTED> 写道:
> 
> Sorry for the lack of information, I put the context here for your information:
> ====
> MacBookPro:target_system by$ erl -boot ~/local/pkgs/erlang/erlang21.2.5/lib/erlang/bin/start_sasl -pz ~/local/pkgs/erlang/erlang21.2.5/lib/erlang/lib/sasl-3.3/ebin ~/projects/erls/hello/ebin
> Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
> 
> Eshell V10.2.3  (abort with ^G)
> 1> target_system:create("mysystem").
> Reading file: "mysystem.rel" ...
> Creating file: "./plain.rel" from "mysystem.rel" ...
> Making "./plain.script" and "./plain.boot" files ...
> *WARNING* Missing application sasl. Can not upgrade with this release
> Making "mysystem.script" and "mysystem.boot" files ...
> Creating tar file "mysystem.tar.gz" ...
> Creating directory "./tmp" ...
> Extracting "mysystem.tar.gz" into directory "./tmp" ...
> Deleting "erl" and "start" in directory "./tmp/erts-10.2.3/bin" ...
> Creating temporary directory "./tmp/bin" ...
> Copying file "./plain.boot" to "./tmp/bin/start.boot" ...
> Copying files "epmd", "run_erl" and "to_erl" from 
> "./tmp/erts-10.2.3/bin" to "./tmp/bin" ...
> Creating temporary directory "./tmp/log" ...
> Creating "./tmp/releases/start_erl.data" ...
> Recreating tar file "mysystem.tar.gz" from contents in directory "./tmp" ...
> Removing directory "./tmp" ...
> ok
> 2> 
> ====
> 
>> 在 2019年4月22日,10:39,by <by@REDACTED <mailto:by@REDACTED>> 写道:
>> 
>> Hello List,
>> 
>> Recently, I am trying to get familiar with "Creating and Upgrading a Target System”.
>> I follow the instructions which documented here: http://erlang.org/doc/system_principles/create_target.html <http://erlang.org/doc/system_principles/create_target.html>
>> And I am done with 3.1, but with a *WARNING* message saying: "*WARNING* Missing application sasl. Can not upgrade with this release”.
>> How can I suppress this message?
>> 
>> By the way, I come from rebar3, and just want to understand how the underlying release handing works in Erlang itself.
>> 
>> Best Regards,
>> Yao Bao
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>> http://erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190422/ef9ae5bd/attachment.htm>


More information about the erlang-questions mailing list