每当我尝试添加新用户时:
ejabberdctl register admin localhost default
它给了我以下错误:
Problem 'error undef' occurred executing the command.
Stacktrace: [{ejabberd_odbc,escape,["admin"]},
{ejabberd_auth_odbc,is_user_exists,2},
{ejabberd_auth,'-is_user_exists/2-fun-0-',3},
{lists,any,2},
{ejabberd_auth,try_register,3},
{ejabberd_admin,register,3},
{ejabberd_ctl,call_command,3},
{ejabberd_ctl,try_call_command,3}]
我有带有pg库的erlang,并在ejabberd上设置了以下配置:
{auth_method, odbc}.
{odbc_server, {pgsql, "localhost", "ejabberd", "root", "admin"}}.
我还创建了一个名为 ejabberd 的数据库并迁移了 pg.sql 文件。我还需要其他东西吗,还是我做错了什么?