ejabberd - Comments for "[solved] join_cluster fails on cluster setup" https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup en I found the problem: in our https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66278 <p>I found the problem: in our case, ejabberdctl.cfg contains the same IP address for <code>INET_DIST_INTERFACE</code> and <code>ERL_EPMD_ADDRESS</code>. This seems to be a problem for the join_cluster script. I used the default value for <code>INET_DIST_INTERFACE</code>, which allowed the join_cluster script to run and then changed the value back.</p> Fri, 30 Oct 2015 21:01:26 +0000 Alexander comment 66278 at https://www.ejabberd.im Just upgraded both nodes to https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66277 <p>Just upgraded both nodes to 15.10, same problem. Can you give me any tips on how to investigate that <code>&quot;Protocol: ~tp: register error: ~tp~n&quot;,[&quot;inet_tcp&quot;,badarg]</code> error?</p> Fri, 30 Oct 2015 19:42:39 +0000 Alexander comment 66277 at https://www.ejabberd.im I think your problem (script https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66274 <p>I think your problem (script exiting after showing the path of ejabberdctl) is caused by the "exec" command used in the joincluster script to call ejabberdctl. I removed it and the joincluster script continues, unfortunately resulting in the errors above in my case.</p> Tue, 27 Oct 2015 19:46:33 +0000 Alexander comment 66274 at https://www.ejabberd.im I install and run ejabberd https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66271 <p>I install and run ejabberd with root's user. I use debian and sudo -u -i not work.<br /> I run this command(/opt/ejabberd-15.09/bin/joincluster 'ejabberd@server1') with root's user.<br /> it returns:</p> <p>ejabberd cluster configuration</p> <p>This ejabberd node will be configured for use in an ejabberd cluster.<br /> IMPORTANT: all local data from the database will be lost, and<br /> cluster database will be initialized. All data from the master<br /> node will be replicated to this one.</p> <p>--------------------------------------------------------------------<br /> Press any key to continue, or Ctrl+C to stop now</p> <p>Using passed parameter for remote master node name: ejabberd@69_slave<br /> Using commands:<br /> /opt/ejabberd-15.09/bin/ejabberdctl</p> Tue, 27 Oct 2015 07:46:15 +0000 nets comment 66271 at https://www.ejabberd.im It's running under the https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66270 <p>It's running under the "ejabberd" user (ejabberd was compiled manually with "./configure --prefix=/opt/ejabberd --enable-user=ejabberd"). I also tried re-joining the cluster as this user.</p> <p>The "joincluster" script is not in /opt/ejabberd/bin for me, but somewhere under /opt/ejabberd/lib.</p> Mon, 26 Oct 2015 22:36:07 +0000 Alexander comment 66270 at https://www.ejabberd.im What user are you running https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66268 <p>What user are you running ejabberd as ? Can you try that command using </p> <p>sudo -u -i /opt/ejabberd-15.09/bin/joincluster 'ejabberd@server1'</p> Mon, 26 Oct 2015 17:39:08 +0000 mshenoy comment 66268 at https://www.ejabberd.im Hi I have same problem. I https://www.ejabberd.im/forum/25215/solved-joincluster-fails-cluster-setup#comment-66267 <p>Hi I have same problem.</p> <p>I install ejabberd-15.09-linux-x86_64-installer.run on debian(jessie). I try to cluster them and I cant.<br /> who did clustering with ejabberd 15.09 ?<br /> I do follow steps:</p> <p>- I Install erlang(18) and ejabberd<br /> - Create ejabberd.cfg file<br /> - In ejabberdctl.cfg: set(local) INET_DIST_INTERFACE={10,0,0,1} and ERLANG NODE NAME<br /> - same .erlang cookie(/root/.erlangcookie)<br /> I use join_cluster and joincluster commands<br /> /opt/ejabberd-15.09/bin/ejabberdctl join_cluster 'ejabberd@server1'<br /> /opt/ejabberd-15.09/bin/joincluster 'ejabberd@server1'<br /> it return:</p> <p>--------------------------------------------------------------------</p> <p>ejabberd cluster configuration</p> <p>This ejabberd node will be configured for use in an ejabberd cluster.<br /> IMPORTANT: all local data from the database will be lost, and<br /> cluster database will be initialized. All data from the master<br /> node will be replicated to this one.</p> <p>--------------------------------------------------------------------<br /> Press any key to continue, or Ctrl+C to stop now</p> <p>Using passed parameter for remote master node name: ejabberd@70_slave<br /> Using commands:<br /> /opt/ejabberd-15.09/bin/ejabberdctl.</p> <p>and try with easy_cluster.erl(<noindex><a href="https://raymii.org/s/tutorials/Set_up_a_federated_XMPP_Chat_Network_with" title="https://raymii.org/s/tutorials/Set_up_a_federated_XMPP_Chat_Network_with" rel="nofollow" >https://raymii.org/s/tutorials/Set_up_a_federated_XMPP_Chat_Network_with</a></noindex>...) , but it not working,too</p> <p>please some body help me.plz</p> Mon, 26 Oct 2015 14:31:08 +0000 nets comment 66267 at https://www.ejabberd.im