[erlang-questions] Running rebar generated release failing with Kernel pid terminated"
Andrew Gopienko
gopienko@REDACTED
Thu Dec 13 07:07:11 CET 2012
Make sure you have sasl dependency in your app file.
{applications, [
kernel,
stdlib,
sasl
]},
2012/12/13 Vineet Naik <naikvin@REDACTED>
> Hi Roman,
>
> Thanks for replying. I have <release-bundle>/log/sasl but it's empty. And
> there is no
> other file/dir in log dir. Do I need to include anything in code/config to
> make
> it log errors to a file?
>
> Regards,
> Vineet
>
> On Wed, Dec 12, 2012 at 9:27 PM, Roman Gafiyatullin <r.gafiyatullin@REDACTED
> > wrote:
>
>> Vineet, most probably something went wrong during startup.
>> Can anything similar to sasl-error.log be found in
>> the <release-bundle>/log/ directory?
>>
>> --
>> RG
>>
>> On Wednesday, December 12, 2012 at 6:31 pm, Vineet Naik wrote:
>>
>> Hello,
>>
>> I am trying to package my app using rebar. `rebar generate` command runs
>> without any
>> problem (no errors at least). But when I try to start the console by
>> running the script generated
>> by rebar in bin directory, it fails with "Kernel pid terminated"
>>
>> A huge crash_dump is also created but I am not able to gather any info
>> from it.
>>
>> I checked the erlang docs[1], I found this paragraph about the error
>>
>> "Kernel pid terminated (Who) (Exit-reason)" - The kernel supervisor has
>> detected a failure, usually that the application_controller has shut down
>> (Who = application_controller, Why = shutdown). The application controller
>> may have shut down for a number of reasons, the most usual being that the
>> node name of the distributed Erlang node is already in use. A complete
>> supervisor tree "crash" (i.e., the top supervisors have exited) will give
>> about the same result. This message comes from the Erlang code and not from
>> the virtual machine itself. It is always due to some kind of failure in an
>> application, either within OTP or a "user-written" one. Looking at the
>> error log for your application is probably the first step to take.
>>
>>
>> If I run `console_clean` command, then the console start in the correct
>> node. Does
>> this rule out the "Node is already in use" case above?
>>
>> I also tried running the code from an erlang shell with the ebin dir
>> paths of all required
>> libs added manually to sys path and it works perfectly.
>>
>> How can I go about debugging this?
>>
>> [1] http://www.erlang.org/doc/apps/erts/crash_dump.html#id71973
>>
>> Thanks,
>> Vineet
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>>
>
>
> --
> Vineet Naik
>
>
>
> _______________________________________________
> 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/20121213/6d0eafd5/attachment.htm>
More information about the erlang-questions
mailing list