[erlang-questions] Problems stop/attach a release
Pierre Fenoll
pierrefenoll@REDACTED
Mon Mar 21 12:36:38 CET 2016
We had something similar and it was related to the cookie.
Are you sure there are no erlang:set_cookie/2 calls in your code?
Cheers,
--
Pierre Fenoll
On 21 March 2016 at 11:08, Khitai Pang <khitai.pang@REDACTED> wrote:
> I found these in my _rel/myapp/log/erlang.log.1:
>
> =ERROR REPORT==== 21-Mar-2016::17:46:55 ===^M
> ** Connection attempt from disallowed node '
> myapp_maint_45928@REDACTED' ** ^M
> ^M
> =ERROR REPORT==== 21-Mar-2016::17:46:55 ===^M
> ** Connection attempt from disallowed node '
> myapp_maint_45928@REDACTED' ** ^M
> ^M
> =ERROR REPORT==== 21-Mar-2016::17:50:03 ===^M
> ** Connection attempt from disallowed node '
> myapp_maint_46033@REDACTED' ** ^M
> ^M
> =ERROR REPORT==== 21-Mar-2016::17:50:03 ===^M
> ** Connection attempt from disallowed node '
> myapp_maint_46033@REDACTED' ** ^M
>
>
> Is it the reason why I can't stop or attach a console? If yes, how to fix
> it?
>
> I was guessing that maybe the issue is caused by erlang cookies in
> ~/.erlang.cookie and my release vm.config -setcookie being different, I
> made them the same the the issue still exists.
>
>
> Thanks
> Khitai
>
>
> On 2016/3/21 17:51, Khitai Pang wrote:
>
>> Hi,
>>
>> I build my release by erlang.mk and relx.
>>
>> I can start the release by running:
>>
>> $ _rel/myapp/bin/myapp start
>>
>> It starts well and listens properly, I tried to use my client app to
>> connect to it, all functions well, and I can start other nodes, and
>> distribution works just fine.
>>
>>
>> Problem 1:
>>
>> I can't stop it by running
>>
>> $ _rel/myapp/bin/myapp stop
>>
>> after running the command, it's still running (the processes are still
>> there).
>>
>> Problem 2:
>>
>> I can't start an attaching shell, when I run
>>
>> $ _rel/myapp/bin/myapp attach
>>
>> I get "Node is not running!"
>>
>>
>> Any idea?
>>
>>
>> Thanks
>> Khitai
>> _______________________________________________
>> erlang-questions mailing list
>> 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/20160321/73dc8b14/attachment.htm>
More information about the erlang-questions
mailing list