我们正在使用Erlang OTP 20和Elixir 1.5.2来编译ejabberd 17.9。
当我们尝试使用mod_muc_admin删除history_size> 0的未使用房间时,出现以下错误:
:mod_muc_admin.rooms_unused_list("global", 1)
** (FunctionClauseError) no function clause matching in :calendar.datetime_to_gregorian_seconds/1
The following arguments were given to :calendar.datetime_to_gregorian_seconds/1:
# 1
{1513, 700515, 685388}
(stdlib) calendar.erl:137: :calendar.datetime_to_gregorian_seconds/1
我怀疑这与Erlang / Elixir版本有关,但是我没有找到任何官方文件说明我们使用的版本有任何问题。
erlang源代码的文档指出:
https://github.com/processone/ejabberd
Erlang/OTP 17.5 or higher.
有什么想法吗?
最好的祝福,
最佳答案
该问题是由ejabberd中的错误引起的。
已在提交中更正:
https://github.com/processone/ejabberd/commit/5e4c547856de6624e4012eb3bf
关于crash - 使用mod_muc_admin时Ejabberd崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47893804/