eJabberd Version: 22.05
OS: Ubuntu 18.04 LTS
Installation : From Source
We've an ejabberd cluster with three nodes having the below listed node names.
- '[email protected]'
- '[email protected]'
- '[email protected]'
When we try to remove a node from the cluster using the command
ejabberdctl leave_cluster '[email protected]'
The command was issued on the node ltxmpp2.gims throwing error.
ejabberd@ltxmpp2:~$ ejabberdctl leave_cluster '[email protected]'
Failed RPC connection to the node '[email protected]': {'EXIT',
{undef,
[{erl_error,
format_exception,
[2,error,undef,
[{net_adm,
ping,
['[email protected]'],
[]},
{ejabberd_cluster_mnesia,
leave,1,
[{file,
"src/ejabberd_cluster_mnesia.erl"},
{line,78}]},
{ejabberd_ctl,
call_command,
4,
[{file,
"src/ejabberd_ctl.erl"},
{line,
332}]},
{ejabberd_ctl,
try_call_command,
4,
[{file,
"src/ejabberd_ctl.erl"},
{line,
297}]},
{ejabberd_ctl,
process2,4,
[{file,
"src/ejabberd_ctl.erl"},
{line,
235}]},
{ejabberd_ctl,
process,2,
[{file,
"src/ejabberd_ctl.erl"},
{line,
213}]},
{erpc,
execute_call,
4,
[{file,
"erpc.erl"},
{line,
392}]}],
#Fun<misc.6.97582168>,
#Fun<misc.7.97582168>],
[]},
{ejabberd_ctl,
try_call_command,
4,
[{file,
"src/ejabberd_ctl.erl"},
{line,315}]},
{ejabberd_ctl,
process2,4,
[{file,
"src/ejabberd_ctl.erl"},
{line,235}]},
{ejabberd_ctl,
process,2,
[{file,
"src/ejabberd_ctl.erl"},
{line,213}]},
{ejabberd_ctl,
process,1,
[]}]}}\
Commands to start an ejabberd node:
start Start in server mode
foreground Start in server mode (attached)
foreground-quiet Start in server mode (attached), show only critical messages
live Start in interactive mode, with Erlang shell
iexlive Start in interactive mode, with Elixir shell
Commands to interact with a running ejabberd node:
debug Attach an interactive Erlang shell to a running node
iexdebug Attach an interactive Elixir shell to a running node
etop Attach to a running node and start Erlang Top
ping Send ping to the node, returns pong or pang
started|stopped Wait for the node to fully start|stop
Optional parameters when starting an ejabberd node:
--config-dir dir Config ejabberd: /usr/local/etc/ejabberd
--config file Config ejabberd: /usr/local/etc/ejabberd/ejabberd.yml
--ctl-config file Config ejabberdctl: /usr/local/etc/ejabberd/ejabberdctl.cfg
--logs dir Directory for logs: /usr/local/var/log/ejabberd
--spool dir Database spool dir: /usr/local/var/lib/ejabberd
--node nodename ejabberd node name: [email protected]
Can anyone please explain the reason for the error.