[erlang-questions] Release handler seems to be not starting some applications
Dmitry Demeshchuk
demeshchuk@REDACTED
Mon Sep 10 22:49:08 CEST 2012
Hi, Siri!
I figured out that it's not important to start sasl, and it's sufficient
just to load it (see the included applications below the started ones).
Just to be sure, tried to make an upgrade that doesn't stop or unload sasl,
and the system still behaves in the same way.
For what it's worth, the occurring error with lager is related to dynamic
code compiling (it's basically a copied mochiglobal module).
Will try to use the latest Erlang, I've been testing this stuff in R14B04.
On Mon, Sep 10, 2012 at 11:58 AM, Siri Hansen <erlangsiri@REDACTED> wrote:
> Hi Dmitry!
> I didn't look very closely at this, but I wonder where sasl is? If you are
> using the release_handler for upgrade, you need to include sasl in your
> releases.
> /siri
>
> 2012/9/8 Dmitry Demeshchuk <demeshchuk@REDACTED>
>
>> Okay, that seems like a lager problem, it just doesn't start even after
>> starting compiler.
>>
>> Moreover, it doesn't start using lager:start() and whatever else. No idea
>> why compiler isn't started though.
>>
>>
>> On Sat, Sep 8, 2012 at 8:37 PM, Dmitry Demeshchuk <demeshchuk@REDACTED>wrote:
>>
>>> Hi, everyone.
>>>
>>> I've been checking rebar and releases mechanisms and noticed an odd
>>> thing.
>>>
>>> First, I created a dummy release and started it. After that, I added
>>> some applications to it, generated a release upgrade and installed it.
>>> Surprisingly, some applications haven't started, compiler and lager to be
>>> precise.
>>>
>>> Basically, here was the initial list of applications in reltool.config:
>>>
>>> kernel,
>>> stdlib,
>>> rels
>>>
>>> and here's the one after my upgrade:
>>>
>>> kernel,
>>> stdlib,
>>> riak_err,
>>> compiler,
>>> syntax_tools,
>>> lager,
>>> rels
>>>
>>> No errors, no warnings, compiler and lager just silently fail to start,
>>> though their starting instructions do exist in relup. Tried to start them
>>> manually – works like a charm.
>>>
>>> Here's a short exapmle: https://github.com/doubleyou/rels
>>> To reproduce, switch to the initial commit, build, generate release.
>>> Then switch to the second commit, build, generate release upgrade, install.
>>>
>>>
>>> Any suggestions?
>>>
>>> --
>>> Best regards,
>>> Dmitry Demeshchuk
>>>
>>
>>
>>
>> --
>> Best regards,
>> Dmitry Demeshchuk
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
--
Best regards,
Dmitry Demeshchuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120911/2e66f0bc/attachment.htm>
More information about the erlang-questions
mailing list