ejabberd - Comments for "Clustering two servers" https://www.ejabberd.im/node/665 en Database removal https://www.ejabberd.im/node/665#comment-1410 <p>Is there more to it than deleting the contents of the spool directory where the files are? If not then I did that and get the same error.</p> Wed, 22 Feb 2006 20:17:45 +0000 bbarnes comment 1410 at https://www.ejabberd.im Re: Hostnames on my server https://www.ejabberd.im/node/665#comment-1409 <div class="quote-msg"> <div class="quote-author"><em>bbarnes</em> wrote:</div> <p>The good news is that I am now able to cluster, if I start node2 with erl -sname ejabberd -mnesia extra_db_nodes "['ejabberd@node1']" -s mnesia I get the following error:</p> <p>** ERROR ** (ignoring core) ** FATAL ** Failed to merge schema: Incompatible schema storage types (local). on ejabberd@node2 storage ram_copies, on ejabberd@node1 storage disc_copies </p></div> <p>Maybe that is because you started ejabberd first wrong on the node so that the database contains the wrong domain names. Maybe you can try to remove the database of the server with the error? (make a backup of course)</p> Wed, 22 Feb 2006 18:34:05 +0000 sander comment 1409 at https://www.ejabberd.im Hostnames on my server https://www.ejabberd.im/node/665#comment-1408 <p>Ok, I get the following results:</p> <p>Hostname -s<br /> node1</p> <p>Hostname<br /> <noindex><a href="mailto:node1@example.net" rel="nofollow" >node1@example.net</a></noindex></p> <p>Ejabberd will only start and accept connections if I start it with -sname ejabberd. All others fail saying the system is configured to use fully configured hostnames.</p> <p>The good news is that I am now able to cluster, if I start node2 with erl -sname ejabberd -mnesia extra_db_nodes "['ejabberd@node1']" -s mnesia I get the following error:</p> <p>** ERROR ** (ignoring core) ** FATAL ** Failed to merge schema: Incompatible schema storage types (local). on ejabberd@node2 storage ram_copies, on ejabberd@node1 storage disc_copies</p> <p>But at least they are talking to each other now.</p> Wed, 22 Feb 2006 14:51:53 +0000 bbarnes comment 1408 at https://www.ejabberd.im erlang node name with fully qualified hostname https://www.ejabberd.im/node/665#comment-1406 <p>This is how it works for me, I don't know if it's the same for everybody:</p> <h2>Short hostname</h2> <pre>$ hostname -s monster</pre><h2>Fully Qualified hostname</h2> <pre>$ hostname monster.example.net</pre><h2>Start Erlang with a short hostname</h2> <pre>$ erl -sname ejaby Erlang (BEAM) emulator version 5.4.12 [source] [hipe] [kernel-poll] Eshell V5.4.12 (abort with ^G) (ejaby@monster)1&gt;</pre><h2>Start Erlang with a short hostname (alternate)</h2> <pre>$ erl -sname ejaby@monster Erlang (BEAM) emulator version 5.4.12 [source] [hipe] [kernel-poll] Eshell V5.4.12 (abort with ^G) (ejaby@monster)1&gt;</pre><h2>Start Erlang with a Fully Qualified hostname</h2> <pre>$ erl -name ejaby Erlang (BEAM) emulator version 5.4.12 [source] [hipe] [kernel-poll] Eshell V5.4.12 (abort with ^G) (<noindex><a href="mailto:ejaby@monster.example.net" rel="nofollow" >ejaby@monster.example.net</a></noindex>)1&gt;</pre><h2>Start Erlang with a Fully Qualified hostname (alternate)</h2> <pre>$ erl -name <noindex><a href="mailto:ejaby@monster.example.net" rel="nofollow" >ejaby@monster.example.net</a></noindex> Erlang (BEAM) emulator version 5.4.12 [source] [hipe] [kernel-poll] Eshell V5.4.12 (abort with ^G) (<noindex><a href="mailto:ejaby@monster.example.net" rel="nofollow" >ejaby@monster.example.net</a></noindex>)1&gt;</pre> Wed, 22 Feb 2006 10:40:35 +0000 mfoss comment 1406 at https://www.ejabberd.im Re: Clustering two servers https://www.ejabberd.im/node/665#comment-1403 <p>If I attempt to run the following command:<br /> erl -name ejabberd@node2 -mnesia extra_db_nodes "['ejabberd@node1']" -s mnesia</p> <p>I get the following error:</p> <p>** System running to use fully qualified hostnames **<br /> ** Hostname node1 is illegal **</p> <p>And there is no connection attempt shown in the log of node1.</p> <p>If I run the following command from node1:</p> <p>erl -name test@node1 -remsh ejabberd@node1</p> <p>I get the same error. What would cause that error?</p> Tue, 21 Feb 2006 19:49:10 +0000 bbarnes comment 1403 at https://www.ejabberd.im Re: Clustering two servers https://www.ejabberd.im/node/665#comment-1402 <div class="quote-msg"> <div class="quote-author"><em>bbarnes</em> wrote:</div> <p>It does occur to me that node1 is running as -name ejabberd@node1 and my test and node2 are running as -sname, would that cause this problem?</p></div> <p>I guess so.</p> Tue, 21 Feb 2006 19:24:01 +0000 sander comment 1402 at https://www.ejabberd.im Clustering two servers https://www.ejabberd.im/node/665#comment-1401 <p>It does occur to me that node1 is running as -name ejabberd@node1 and my test and node2 are running as -sname, would that cause this problem?</p> Tue, 21 Feb 2006 18:41:53 +0000 bbarnes comment 1401 at https://www.ejabberd.im Re: Clustering two servers https://www.ejabberd.im/node/665#comment-1400 <p>If I run erlang:get_cookie(). on both nodes they are identical. If I attempt to run a remote session to my -detached session on node1 from node1 I get the same error.</p> Tue, 21 Feb 2006 18:37:06 +0000 bbarnes comment 1400 at https://www.ejabberd.im Re: Clustering two servers https://www.ejabberd.im/node/665#comment-1399 <div class="quote-msg"> <div class="quote-author"><em>bbarnes</em> wrote:</div> <p>** Connection attempt from disallowed node ejabberd@node2 **</p> <p>So, my nodes can in fact see each other. I have read and followed the instructions in <a href="http://www.ejabberd.im/interconnect-erl-nodes" title="http://www.ejabberd.im/interconnect-erl-nodes">http://www.ejabberd.im/interconnect-erl-nodes</a>, so what am I doing wrong that the nodes don't trust each other?</p></div> <p>I have no experience with clustering, but I guess it might help if you verify that the Erlang cookies on each node match eachother.</p> Tue, 21 Feb 2006 17:29:06 +0000 sander comment 1399 at https://www.ejabberd.im Clustering two servers https://www.ejabberd.im/node/665#comment-1398 <p>After doing additional troubleshooting, I have discovered in the ejabberd.log of the first machine the following line:</p> <p>** Connection attempt from disallowed node ejabberd@node2 **</p> <p>So, my nodes can in fact see each other. I have read and followed the instructions in <a href="http://www.ejabberd.im/interconnect-erl-nodes" title="http://www.ejabberd.im/interconnect-erl-nodes">http://www.ejabberd.im/interconnect-erl-nodes</a>, so what am I doing wrong that the nodes don't trust each other?</p> Tue, 21 Feb 2006 15:53:22 +0000 bbarnes comment 1398 at https://www.ejabberd.im