ejabberd - Comments for "trouble clustering with ejabberd 2.0.2_2 and mySQL" https://www.ejabberd.im/node/3224 en Problem in hostname https://www.ejabberd.im/node/3224#comment-53634 <div class="quote-msg"> <div class="quote-author"><em>surge</em> wrote:</div> <p>With my jabber client, I can connect to testim02, but I can't connect to testim (my jabber client reports "Host Unknown" but I can ping testim from a command prompt) </p></div> <p>I imagine in your Jabber client for testim02 you define "Jabber server: jabber.example.org" and "Host to connect to: testim02".<br /> And for testim you define "Jabber server: jabber.example.org" and "Host to connect to: testim".</p> <p>The ejabberd.cfg in both nodes must contain the same line:</p> <pre>{hosts, ["jabber.example.org"]}.</pre><div class="quote-msg"> <div class="quote-author"><em>surge</em> wrote:</div> <p>When I pull the plug on testim02, I lose the connection and testim doesn't continue my session.. it seems related to the inability to connect to testim, but at this point I'm just guessing. </p></div> <p>Note that ejabberd clustering does not migrate running sessions to another node when one is stopping.<br /> ejabberd clustering allows to share account data in all the nodes, but the connections are established by the client to one node.<br /> When the node stops or crashes, the client will be disconnected and has to reconnect (probably to another node in the cluster).</p> <div class="quote-msg"> <div class="quote-author"><em>surge</em> wrote:</div> <p>If I restart ejabberd on testim02, I am able to connect to both testim and testim02 for about a minute or 2 then my connections on testim get dropped and my client says "Host Unknown".. testim02 continues to work fine. </p></div> <p>Ah, this is strange. Then you have the 'hosts' option correctly set in both ejabberd.cfg as I explained before?</p> Wed, 08 Oct 2008 11:13:23 +0000 mfoss comment 53634 at https://www.ejabberd.im getting closer? but still stuck. https://www.ejabberd.im/node/3224#comment-53618 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>What you describe is step 2 as explained in the ejabberd Guide "6.2 Clustering Setup".</p> <p>You will only fully start ejabberd (for normal operation) in step 6.</p></div> <p>Stephan pointed me to this blog<br /> <noindex><a href="http://dev.esl.eu/blog/2008/09/30/set-up-clustering-in-ejabberd/" title="http://dev.esl.eu/blog/2008/09/30/set-up-clustering-in-ejabberd/" rel="nofollow" >http://dev.esl.eu/blog/2008/09/30/set-up-clustering-in-ejabberd/</a></noindex><br /> and now I'm at the point where I can create accounts and login to testim02</p> <p>I went back to using mnesia to at least get clustering working.<br /> I set passwd and pubsub_item to "RAM and disc copy" in the database setup so now the stats section on the admin page of both testim and testim02 both are showing the correct number of registered users.</p> <p>With my jabber client, I can connect to testim02, but I can't connect to testim (my jabber client reports "Host Unknown" but I can ping testim from a command prompt)</p> <p>When I pull the plug on testim02, I lose the connection and testim doesn't continue my session.. it seems related to the inability to connect to testim, but at this point I'm just guessing.</p> <p>If I restart ejabberd on testim02, I am able to connect to both testim and testim02 for about a minute or 2 then my connections on testim get dropped and my client says "Host Unknown".. testim02 continues to work fine.</p> <p>thanks,<br /> tom</p> <p>ps..if anyone is available and willing to help over an IM session during 10am and 6pm EST, I would greatly appreciate it.</p> Wed, 01 Oct 2008 15:29:38 +0000 surge comment 53618 at https://www.ejabberd.im Don't worry about client login until finished step 6 https://www.ejabberd.im/node/3224#comment-53613 <p>What you describe is step 2 as explained in the ejabberd Guide "6.2 Clustering Setup".</p> <p>You will only fully start ejabberd (for normal operation) in step 6.</p> Tue, 30 Sep 2008 17:28:31 +0000 mfoss comment 53613 at https://www.ejabberd.im