Error when setting up a cluster (node names are incompatible)

Hi all,
I'm trying to set up a cluster. Right now, I've installed ejabberd in two machines and they work well independently.
What I did is I copied the cookie to the second machine, and then when I execute joincluster 'ejabberd@10.12.11.21', I get the following error:

IMPORTANT!: node names are incompatible
Remote node name is ejabberd@10.12.11.21
Local node name is ejabberd@localhost

Both node names must be short or fqdn names.
Using short and fqdn names is impossible.

I've noticed both of my nodes have the same name (ejabberd@localhost). How should I configure the names to join the node to the cluster? I can't seem to find information on that in the documentation.

In each machine, set the node

In each machine, set the node name of the local node in ejabberdctl.cfg.

Hello. I have same

Hello.

I have same problem.
On both node ejabberd 15.03.
As master - jabber.example.org, as second node - jabber2.example.org

I try run
ejabberdctl join_cluster ejabberd@jabber.example.org
and
ejabberdctl --node ejabberd@jabber2.example.org join_cluster ejabberd@jabber.example.org

It return error

Using passed parameter for remote master node name: ejabberd@jabber.example.org
IMPORTANT!: node names are incompatible
Remote node name is ejabberd@jabber.example.org
Local node name is ejabberd@localhost

Both node names must be short or fqdn names.
Using short and fqdn names is impossible.

Error: incompatible node names
Error: command "join_cluster" not known.

But in config set
conf/ejabberdctl.cfg -> ERLANG_NODE=ejabberd@jabber2.example.org
And in status output -
./bin/ejabberdctl --node ejabberd@jabber2.example.org status
The node 'ejabberd@jabber2.example.org' is started with status: started
ejabberd 15.03 is running in that node

And I try to reinstall ejabberd on second node, with use this hostname in install menu.

Syndicate content