<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    No, I have no erlang:set_cookie/2 in my code.  Now the app gets
    cookie from vm.args (-setcookie).<br>
    <br>
    I do have another problem though, if I remove -setcookie from the
    vm.args and rebuild the release, the built release can't start.  I
    don't understand why.<br>
    <br>
    <br>
    Thanks<br>
    Khitai<br>
    <br>
    <div class="moz-cite-prefix">On 2016/3/21 19:36, Pierre Fenoll
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMmfOZs+=oR=w1oXy8q+vwKitU0ucU4Me3TJZVZ-fTM24D5aDw@mail.gmail.com"
      type="cite">
      <div dir="ltr">We had something similar and it was related to the
        cookie.
        <div>Are you sure there are no erlang:set_cookie/2 calls in your
          code?</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">
              <div>
                <div><br>
                </div>
                <div>Cheers,</div>
                <div>-- </div>
                <div>Pierre Fenoll</div>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On 21 March 2016 at 11:08, Khitai Pang
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:khitai.pang@outlook.com" target="_blank">khitai.pang@outlook.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I found
            these in my _rel/myapp/log/erlang.log.1:<br>
            <br>
            =ERROR REPORT==== 21-Mar-2016::17:46:55 ===^M<br>
            ** Connection attempt from disallowed node '<a
              moz-do-not-send="true"
              href="mailto:myapp_maint_45928@myapp1.mycluster.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:myapp_maint_45928@myapp1.mycluster.com">myapp_maint_45928@myapp1.mycluster.com</a></a>'
            ** ^M<br>
            ^M<br>
            =ERROR REPORT==== 21-Mar-2016::17:46:55 ===^M<br>
            ** Connection attempt from disallowed node '<a
              moz-do-not-send="true"
              href="mailto:myapp_maint_45928@myapp1.mycluster.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:myapp_maint_45928@myapp1.mycluster.com">myapp_maint_45928@myapp1.mycluster.com</a></a>'
            ** ^M<br>
            ^M<br>
            =ERROR REPORT==== 21-Mar-2016::17:50:03 ===^M<br>
            ** Connection attempt from disallowed node '<a
              moz-do-not-send="true"
              href="mailto:myapp_maint_46033@myapp1.mycluster.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:myapp_maint_46033@myapp1.mycluster.com">myapp_maint_46033@myapp1.mycluster.com</a></a>'
            ** ^M<br>
            ^M<br>
            =ERROR REPORT==== 21-Mar-2016::17:50:03 ===^M<br>
            ** Connection attempt from disallowed node '<a
              moz-do-not-send="true"
              href="mailto:myapp_maint_46033@myapp1.mycluster.com"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:myapp_maint_46033@myapp1.mycluster.com">myapp_maint_46033@myapp1.mycluster.com</a></a>'
            ** ^M<br>
            <br>
            <br>
            Is it the reason why I can't stop or attach a console?  If
            yes, how to fix it?<br>
            <br>
            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.<br>
            <br>
            <br>
            Thanks<span class="HOEnZb"><font color="#888888"><br>
                Khitai</font></span>
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 2016/3/21 17:51, Khitai Pang wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hi,<br>
                  <br>
                  I build my release by <a moz-do-not-send="true"
                    href="http://erlang.mk" rel="noreferrer"
                    target="_blank">erlang.mk</a> and relx.<br>
                  <br>
                  I can start the release by running:<br>
                  <br>
                  $ _rel/myapp/bin/myapp start<br>
                  <br>
                  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.<br>
                  <br>
                  <br>
                  Problem 1:<br>
                  <br>
                  I can't stop it by running<br>
                  <br>
                  $ _rel/myapp/bin/myapp stop<br>
                  <br>
                  after running the command, it's still running (the
                  processes are still there).<br>
                  <br>
                  Problem 2:<br>
                  <br>
                  I can't start an attaching shell, when I run<br>
                  <br>
                  $ _rel/myapp/bin/myapp attach<br>
                  <br>
                  I get "Node is not running!"<br>
                  <br>
                  <br>
                  Any idea?<br>
                  <br>
                  <br>
                  Thanks<br>
                  Khitai<br>
                  _______________________________________________<br>
                  erlang-questions mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:erlang-questions@erlang.org"
                    target="_blank">erlang-questions@erlang.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://erlang.org/mailman/listinfo/erlang-questions"
                    rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
                </blockquote>
                <br>
                _______________________________________________<br>
                erlang-questions mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:erlang-questions@erlang.org"
                  target="_blank">erlang-questions@erlang.org</a><br>
                <a moz-do-not-send="true"
                  href="http://erlang.org/mailman/listinfo/erlang-questions"
                  rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>