我在centos 6上安装了Ejabberd服务器14.05。在连接pidgin和ejabberd服务器时,我收到以下错误:
用户名@ hostname / 5280已断开连接 您需要加密,但在此服务器上不可用。
在Ejabberd日志文件中:
2016-05-25 14:26:15.074 [info] <0.803.0>@ejabberd_listener:accept:313 (#Port<0.6031>) Accepted connection 10.88.132.44:55371 -> 10.80.33.144:5222
2016-05-25 14:26:15.095 [debug] <0.1016.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"<?xml version='1.0' ?>">>
2016-05-25 14:26:15.096 [debug] <0.1016.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"<stream:stream to='10.80.33.144' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>">>
2016-05-25 14:26:15.096 [debug] <0.1017.0>@ejabberd_c2s:send_text:1837 Send XML on stream = <<"<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1422769748' from='10.80.33.144' version='1.0' xml:lang='en'>">>
2016-05-25 14:26:15.097 [debug] <0.1017.0>@ejabberd_c2s:send_text:1837 Send XML on stream = <<"<stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>SCRAM-SHA-1</mechanism></mechanisms><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='A2KZ2CKF+i8zFCXx4QunuiMuMRg='/></stream:features>">>
2016-05-25 14:26:15.110 [debug] <0.1016.0>@ejabberd_receiver:process_data:343 Received XML on stream = <<"</stream:stream>">>
2016-05-25 14:26:15.111 [debug] <0.1016.0>@shaper:update:117 State: {maxrate,1000,0.0,1464166575096830}, Size=16 M=8.0, I=14.137
2016-05-25 14:26:15.111 [debug] <0.1017.0>@ejabberd_c2s:send_text:1837 Send XML on stream = <<"</stream:stream>">>
2016-05-25 14:26:15.111 [debug] <0.1017.0>@ejabberd_socket:send:188 Error in gen_tcp:send: {error,closed}
ejabberd服务器有什么问题,还是这个网络问题?
答案 0 :(得分:1)
Pidgin配置为要求服务器提供加密,但服务器未配置TLS证书。要执行后者,请参阅the "Install ejabberd" tutorial中的“启用SSL / TLS安全通信”部分。