Question regarding clustering

Hi

We have setup a ejabberd cluster with 2 nodes. The routing of messages from one node to another node works fine. However we see that there is a problem with ejabberdctl commands when one of the node goes down and comesback. The error is seen on the node which is still running.

Problem 'exit {aborted,
                  {no_exists,
                      [ejabberd_commands,
                       [{{ejabberd_commands,'$1','_','_','_','$2','_','_',
                             '_','_','_','_','_','_','_'},
                         [{'==','$1',{const,list_cluster}},
                          {'=<','$2',{const,1000000}}],
                         [{{'$2','$_'}}]}]]}}' occurred executing the command.
Stacktrace: [{mnesia,abort,1,[{file,"mnesia.erl"},{line,313}]},
             {ejabberd_commands,get_command_definition,2,
                                [{file,"src/ejabberd_commands.erl"},
                                 {line,392}]},
             {ejabberd_commands,get_command_format,3,
                                [{file,"src/ejabberd_commands.erl"},
                                 {line,360}]},
             {ejabberd_ctl,call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,318}]},
             {ejabberd_ctl,try_call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,298}]},
             {ejabberd_ctl,process2,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,247}]},
             {ejabberd_ctl,process,2,
                           [{file,"src/ejabberd_ctl.erl"},{line,225}]},
             {rpc,'-handle_call_call/6-fun-0-',5,
                  [{file,"rpc.erl"},{line,206}]}]

After debugging further we found that this could be because of the the table ejabberd_commands being replicated across the nodes. Is there a problem for this issue? Does this table even needs to be replicated as this is more of static content which is being stored.?

Thanks in advance.
Srikanth V

I get the exact same error

I get the exact same error (line numbers and everything) but my nodes never went down.
The error shows on the node that was selected as master. On the other one the list_cluster command works fine.

Same issue on my side as

Same issue on my side as well.

Problem 'exit {aborted,
                  {no_exists,
                      [ejabberd_commands,
                       [{{ejabberd_commands,'$1','_','_','_','$2','_','_',
                             '_','_','_','_','_','_','_'},
                         [{'==','$1',{const,list_cluster}},
                          {'=<','$2',{const,1000000}}],
                         [{{'$2','$_'}}]}]]}}' occurred executing the command.
Stacktrace: [{mnesia,abort,1,[{file,"mnesia.erl"},{line,313}]},
             {ejabberd_commands,get_command_definition,2,
                                [{file,"src/ejabberd_commands.erl"},
                                 {line,398}]},
             {ejabberd_commands,get_command_format,3,
                                [{file,"src/ejabberd_commands.erl"},
                                 {line,360}]},
             {ejabberd_ctl,call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,318}]},
             {ejabberd_ctl,try_call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,298}]},
             {ejabberd_ctl,process2,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,247}]},
             {ejabberd_ctl,process,2,
                           [{file,"src/ejabberd_ctl.erl"},{line,225}]},
             {rpc,'-handle_call_call/6-fun-0-',5,
                  [{file,"rpc.erl"},{line,206}]}]```

Tracked here:

Syndicate content