ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

Clustering Issue: User Creation Not Synchronized Across Nodes in Ejabberd

Open taqveemmalik opened this issue 1 year ago • 3 comments

Hello,

I've followed the clustering documentation (https://docs.ejabberd.im/admin/guide/clustering/#title) to successfully create a cluster with joined nodes. When I execute the 'ejabberdctl list_cluster' command, both nodes are listed, and I can also see them in the admin panel. I've set up the cluster using two different servers with IPs, for example, ejabberd01 (23.23.23.23) and ejabberd02 (24.24.24.24), and added hosts to the /etc/hosts file. I've ensured that everything is configured correctly as per the documentation.

However, I'm facing an issue where creating a user through the terminal using the command 'ejabberdctl register usman eb-stage01' or through the admin panel only results in the user existing on ejabberd01 and not on ejabberd02. It seems there is a lack of synchronization between my two nodes. I've set the same domain and hosts for both nodes.

How can I resolve this synchronization issue?

taqveemmalik avatar Jan 14 '24 05:01 taqveemmalik

And you have domain eb-stage01 defined in config file of both nodes?

prefiks avatar Jan 15 '24 08:01 prefiks

Do you mean to say ejabberdctl.cfg or ejabberd.yml file?

taqveemmalik avatar Jan 15 '24 15:01 taqveemmalik

Yes I've set hosts and domains also same for both nodes.

taqveemmalik avatar Jan 15 '24 16:01 taqveemmalik