无法安装任何 ejabberd contrib 模块

Cannot install any ejabberd contrib module

我正在尝试安装 ejabberd-contrib 模块。使用这个 guide,

但是当我 运行 ejabberdctl modules_update_specs 什么都没有返回时。

当我尝试安装任何单独的模块时:

ejabberdctl module_install mod_pottymouth

 Failed RPC connection to the node ejabberd@localhost: {'EXIT',
                                                       {undef,
[{bitarray,new,
  [16777216,false],
  []},
 {etbloom,
  '-bloom/3-lc$^0/1-0-',
  2,
  [{file,
    "/var/lib/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_pottymouth/deps/etbloom/src/etbloom.erl"},
   {line,77}]},
 {etbloom,bloom,3,
  [{file,
    "/var/lib/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_pottymouth/deps/etbloom/src/etbloom.erl"},
   {line,77}]},
 {etbloom,sbf,4,
  [{file,
    "/var/lib/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_pottymouth/deps/etbloom/src/etbloom.erl"},
   {line,98}]},
 {bloom_gen_server,
  init,1,
  [{file,
    "/var/lib/ejabberd/.ejabberd-modules/sources/ejabberd-contrib/mod_pottymouth/src/bloom_gen_server.erl"},
   {line,28}]},
 {gen_server,init_it,
  2,
  [{file,
    "gen_server.erl"},
   {line,374}]},
 {gen_server,init_it,
  6,
  [{file,
    "gen_server.erl"},
   {line,342}]},
 {proc_lib,
  init_p_do_apply,3,
  [{file,
    "proc_lib.erl"},
   {line,249}]}]}}
Commands to start an ejabberd node:
  start      Start an ejabberd node in server mode
  debug      Attach an interactive Erlang shell to a running ejabberd node
  iexdebug   Attach an interactive Elixir shell to a running ejabberd node
  live       Start an ejabberd node in live (interactive) mode
  iexlive    Start an ejabberd node in live (interactive) mode, within an Elixir shell
  foreground Start an ejabberd node in server mode (attached)


ejabberdctl status
The node ejabberd@localhost is started with status: started

我该如何解决这个问题?

However when I run ejabberdctl modules_update_specs nothing is returned.

然后它可能工作正常,否则它会 returned 一些错误,并且 echo 会 return 1. 它工作正常并创建路径的示例:

$ ejabberdctl modules_update_specs

$ echo $?
0

$ ls $HOME/.ejabberd-modules/
sources

And when I try install any of the individual modules:

安装任何模块都会产生错误?例如,如果您尝试安装 mod_rest,它是否有效?请注意,这会报告有关文档的警告,这并不重要:

$ ejabberdctl module_install mod_rest
/home/badlop/.ejabberd-modules/sources/ejabberd-contrib/mod_rest/src/mod_rest.erl:27: Warning: undefined callback function mod_doc/0 (behaviour 'gen_mod')

$ ls $HOME/.ejabberd-modules/
mod_rest  sources

{'EXIT', {undef, [{bitarray,new,

是的,这是安装 mod_pottymouth 时的一个已知问题。该模块的 README.txt 文件中描述了安装该模块的解决方法。我现在已经按照这些说明进行操作,并且模块已正确编译和安装。