[erlang-questions] Problems stop/attach a release
Khitai Pang
khitai.pang@REDACTED
Mon Mar 21 11:38:22 CET 2016
I found the reason, in my vm.args, I have
-setcookie 'abcde#12345'
There is a # character, and when starting the release, 'abcde' is used
for erlang cookie.
Thanks
Khitai
On 2016/3/21 18:08, Khitai Pang 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
More information about the erlang-questions
mailing list