无法加入群组-将状态转移到不可用的资源-ejabberd

时间:2018-10-20 04:01:45

标签: ejabberd

嘿,我尝试运行ejabberd的本地实例并使用Adium连接到它-我可以,但是在尝试加入群聊时遇到问题。

我尝试通过运行ejabberdctl create_room room1 localhost localhost并通过Adium连接来创建房间,但这是我收到的错误消息:

2018-10-19 22:48:51.550 [debug] <0.2234.0>@xmpp_socket:parse:374 (tcp|<0.2234.0>)
Received XML on stream = <<"
    <presence to='room1@localhost/dan'>
        <c xmlns='http://jabber.org/protocol/caps' 
            node='http://pidgin.im/' hash='sha-1' 
             ver='DdnydQG7RGhP9E3k9Sf+b+bF0zo='/>
        <x xmlns='http://jabber.org/protocol/muc'/>
    </presence>
">>

和:

#presence{id = <<>>,type = available,lang = <<"en">>,
      from = #jid{user = <<"danmiller">>,server = <<"localhost">>,
                  resource = <<"8c859086572c">>,luser = <<"danmiller">>,
                  lserver = <<"localhost">>,
                  lresource = <<"8c859086572c">>},
      to = #jid{user = <<"room1">>,server = <<"localhost">>,
                resource = <<"dan">>,luser = <<"room1">>,
                lserver = <<"localhost">>,lresource = <<"dan">>},
      show = undefined,status = [],priority = undefined,
      sub_els = [#xmlel{name = <<"c">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/caps">>},
                                 {<<"node">>,<<"http://pidgin.im/">>},
                                 {<<"hash">>,<<"sha-1">>},
                                 {<<"ver">>,
                                  <<"DdnydQG7RGhP9E3k9Sf+b+bF0zo=">>}],
                        children = []},
                 #xmlel{name = <<"x">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/muc">>}],
                        children = []},
                 #vcard_xupdate{hash = <<>>}],
      meta = #{ip => {0,0,0,0,0,0,0,1}}}
2018-10-19 22:48:51.552 [debug] <0.2234.0>@ejabberd_local:do_route:141 local route:
#presence{id = <<>>,type = available,lang = <<"en">>,
      from = #jid{user = <<"danmiller">>,server = <<"localhost">>,
                  resource = <<"8c859086572c">>,luser = <<"danmiller">>,
                  lserver = <<"localhost">>,
                  lresource = <<"8c859086572c">>},
      to = #jid{user = <<"room1">>,server = <<"localhost">>,
                resource = <<"dan">>,luser = <<"room1">>,
                lserver = <<"localhost">>,lresource = <<"dan">>},
      show = undefined,status = [],priority = undefined,
      sub_els = [#xmlel{name = <<"c">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/caps">>},
                                 {<<"node">>,<<"http://pidgin.im/">>},
                                 {<<"hash">>,<<"sha-1">>},
                                 {<<"ver">>,
                                  <<"DdnydQG7RGhP9E3k9Sf+b+bF0zo=">>}],
                        children = []},
                 #xmlel{name = <<"x">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/muc">>}],
                        children = []},
                 #vcard_xupdate{hash = <<>>}],
      meta = #{ip => {0,0,0,0,0,0,0,1}}}
2018-10-19 22:48:51.552 [debug] <0.2234.0>@ejabberd_sm:do_route:651 processing packet to full JID:
#presence{id = <<>>,type = available,lang = <<"en">>,
      from = #jid{user = <<"danmiller">>,server = <<"localhost">>,
                  resource = <<"8c859086572c">>,luser = <<"danmiller">>,
                  lserver = <<"localhost">>,
                  lresource = <<"8c859086572c">>},
      to = #jid{user = <<"room1">>,server = <<"localhost">>,
                resource = <<"dan">>,luser = <<"room1">>,
                lserver = <<"localhost">>,lresource = <<"dan">>},
      show = undefined,status = [],priority = undefined,
      sub_els = [#xmlel{name = <<"c">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/caps">>},
                                 {<<"node">>,<<"http://pidgin.im/">>},
                                 {<<"hash">>,<<"sha-1">>},
                                 {<<"ver">>,
                                  <<"DdnydQG7RGhP9E3k9Sf+b+bF0zo=">>}],
                        children = []},
                 #xmlel{name = <<"x">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/muc">>}],
                        children = []},
                 #vcard_xupdate{hash = <<>>}],
      meta = #{ip => {0,0,0,0,0,0,0,1}}}
2018-10-19 22:48:51.553 [debug] <0.2234.0>@ejabberd_sm:do_route:664 dropping presence to unavailable resource:
#presence{id = <<>>,type = available,lang = <<"en">>,
      from = #jid{user = <<"danmiller">>,server = <<"localhost">>,
                  resource = <<"8c859086572c">>,luser = <<"danmiller">>,
                  lserver = <<"localhost">>,
                  lresource = <<"8c859086572c">>},
      to = #jid{user = <<"room1">>,server = <<"localhost">>,
                resource = <<"dan">>,luser = <<"room1">>,
                lserver = <<"localhost">>,lresource = <<"dan">>},
      show = undefined,status = [],priority = undefined,
      sub_els = [#xmlel{name = <<"c">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/caps">>},
                                 {<<"node">>,<<"http://pidgin.im/">>},
                                 {<<"hash">>,<<"sha-1">>},
                                 {<<"ver">>,
                                  <<"DdnydQG7RGhP9E3k9Sf+b+bF0zo=">>}],
                        children = []},
                 #xmlel{name = <<"x">>,
                        attrs = [{<<"xmlns">>,
                                  <<"http://jabber.org/protocol/muc">>}],
                        children = []},
                 #vcard_xupdate{hash = <<>>}],
      meta = #{ip => {0,0,0,0,0,0,0,1}}}

我相信我已经使用modules.mod_muc.access: all

正确设置了配置

我想念什么?

1 个答案:

答案 0 :(得分:0)

我通过密切关注mod_muc模块的文档来找到了答案:

Module options:

host: HostName: This option defines the Jabber ID of the service. If the host
option is not specified, the Jabber ID will be the hostname of the virtual host
with the prefix ‘conference.’. The keyword “@HOST@” is replaced at start time with
the real virtual host name.

当我需要连接到room1@localhost或在room1@conference.localhost下的配置中添加host: localhost时,我试图在mod_muc连接并创建一个房间 >