【发布时间】:2016-02-23 11:29:27
【问题描述】:
我正在本地计算机上设置 Prosody XMPP 服务器以进行概念验证,我只想与自己进行一个简单的聊天会话。我将它设置为允许注册,并且能够注册新用户,但是当我向我注册的其他用户之一发送好友请求时,他没有收到,并且包括我自己在内的所有用户都显示为“未经授权”在 Pidgin 中。
我在本地机器上是“test2”,而在另一台机器上,我以“test3”身份登录。当我从 test2 向 test3 发送好友请求时,没有任何反应。
在 Pidgin 中,我看到的唯一日志是
---- +++ test2@pc-705.example.com/ signed on @ 11/20/2015 2:32:19 PM ----
example.com 是我的域。
我的 Prosody 日志只是说我已通过身份验证,但没有提及发送好友请求:
C:\Users\test2\Desktop\XMPP\Prosody>prosody.bat
general info Hello and welcome to Prosody version 0.9.7
general info Prosody is using the select backend for connecti
on handling
localhost:tls error Unable to initialize TLS: No SSL/TLS configurati
on present for localhost
localhost:tls error Unable to initialize TLS: No SSL/TLS configurati
on present for localhost
portmanager info Activated service 's2s' on [::]:5269, [*]:5269
mod_s2s warn No local IPv4 or IPv6 addresses detected, outgoi
ng connections may fail
portmanager info Activated service 'c2s' on [::]:5222, [*]:5222
portmanager info Activated service 'legacy_ssl' on no ports
pc-705.example.com:tls error Unable to initialize TLS: No SSL/TLS configuration present for pc-705.example.com
pc-705.example.com:tls error Unable to initialize TLS: No SSL/TLS configuration present for pc-705.example.com
c2s02310338 info Client connected
c2s02310338 info Authenticated as test2@pc-705.example.com
c2s0 info Client connected
c2s0 info Authenticated as test3@pc-705.example.com
我的问题在哪里?
【问题讨论】:
-
您在 pidgin 中哪里看到的这条消息?聊天窗口?您是如何尝试将您的
test3好友添加到好友列表的?你加test3了吗?你加test3@pc-705.example.com了吗? -
在 Pidgin 中,工具 -> 系统日志。要添加用户,请在修改帐户下,选中“在服务器上创建此新帐户”框并保存。要将好友添加到我的列表中,好友 -> 添加好友,然后添加 test3。最后,我回答了你的最后一个问题,这很有效!我那里没有域名。把它放在一个答案中,这样我就可以接受了!
-
哦,系统日志基本上没用(我认为默认情况下是关闭的)。 Help->Debug Window infinitely对于调试所有 pidgin 的东西更有用。
-
刚查了一下,肯定比系统日志有用。谢谢你的建议。随着我的 PoC 完成,我将开始升级到一个更复杂的服务器环境,所以它肯定会派上用场。感谢您的帮助!
-
是的,对于 XMPP,尤其是调试窗口输出非常棒,因为它包括与服务器的整个通信。 “系统日志”是一个从未被杀死的古老神器,因为每次出现时有人不可避免地提到他们喜欢它并一直使用它。
标签: xmpp instant-messaging pidgin prosody-im