title: ejabberd clustering problems and solutions
body: <h2>Setup Details</h2>
  
  <p>2 ejabberd nodes with postgresql as database  (OS : Ubuntu 16.04)</p>
  
  <p>Trying to do clustering of two ejabberd as mentioned in<br>
  <a href="https://docs.ejabberd.im/admin/guide/clustering/" rel="nofollow noreferrer">https://docs.ejabberd.im/admin/guide/clustering/</a></p>
  
  <p>After starting the master node the following steps have been performed on the slave node</p>
  
  <ol>
  <li>copy .erlang.cookie to the slave node</li>
  <li>copy ejabbed.yml from master to slave.</li>
  </ol>
  
  <p>slave started successfully but shows the below error.</p>
  
  <p>=====Error=========</p>
  
  <p>Eshell V9.2  (abort with ^G)
  (ejabberd@gim-Veriton-M6650G)1> 18:29:41.856 [notice] Changed loghwm of /usr/local/var/log/ejabberd/error.log to 100
  18:29:41.856 [notice] Changed loghwm of /usr/local/var/log/ejabberd/ejabberd.log to 100
  18:29:41.857 [info] Application lager started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.860 [info] Application crypto started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.865 [info] Application sasl started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.871 [info] Application asn1 started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.871 [info] Application public_key started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.880 [info] Application ssl started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.881 [info] Application p1_utils started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.883 [info] Application fast_yaml started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.888 [info] Application fast_tls started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.892 [info] Application fast_xml started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.895 [info] Application stringprep started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.899 [info] Application xmpp started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.903 [info] Application cache_tab started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.910 [info] Application eimp started on node 'ejabberd@gim-Veriton-M6650G'
  18:29:41.910 [info] Loading configuration from /usr/local/etc/ejabberd/ejabberd.yml
  <strong>18:29:41.913 [error] CRASH REPORT Process &lt;0.67.0> with 0 neighbours exited with reason: no case clause matching &lt;&lt;>> in ejabberd_config:get_config_option_key/2 line 473 in application_master:init/4 line 134
  18:29:41.913 [info] Application ejabberd exited with reason: no case clause matching &lt;&lt;>> in ejabberd_config:get_config_option_key/2 line 473</strong></p>
  
  <h1>(ejabberd@gim-Veriton-M6650G)1></h1>
  
  <p>I've tried re creating mnesia DB also but didn't help.</p>
  
  <p>ejabberdctl status shows ejabberd is not running in that node</p>
  
  <p>Can some oe please look into the issue and help.</p>