After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586770 - Empathy cannot connect to jabber
Empathy cannot connect to jabber
Status: RESOLVED NOTGNOME
Product: empathy
Classification: Core
Component: Accounts
2.28.x
Other Linux
: Normal major
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-06-23 16:19 UTC by Matej Moško
Modified: 2010-03-15 09:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
Log file of telepathy-gabble 0.8.11 (15.54 KB, application/octet-stream)
2010-03-04 16:17 UTC, Matej Moško
Details

Description Matej Moško 2009-06-23 16:19:47 UTC
Please describe the problem:


I have same problem (ubuntu jaunty AMD64). My account settings are good. Using same account I can connect through Pidgin, Gajim, miranda..., but empathy couldn't connect even if it got connection settings from pidgin. Interesting is that, if I connect to my jabber.org account, it goes well, but No way ho to connect to k2city.eu account. I have made new test account on the server, so If you want to, you can try, where the problem is

login: test(at)k2city.eu
pass: password
server: mail.k2city.eu
port: 5222
no need to encrypt


Steps to reproduce:
1. set up a new jabber account with provided information
2. reconnect


Actual results:
The program tells that the authentication for jabber failed

Expected results:
Connect to my account

Does this happen every time?
yes, but not with all kinds of jabber accounts. If I connect to jabber.org, it functions well. 

Other information:
Comment 1 Tristan Hill 2009-07-04 15:46:32 UTC
(In reply to comment #0)

> server: mail.k2city.eu

Do you have details of what jabber server this host is running?

I've been looking at the connection code to resolve a different connection issue with a jabberd2 server.

Looking at the start of the connection to mail.k2city.eu with test-lm it appears the client gets confused by the <bind> element the server sends with the opening <stream:features>.  Based on RFC3920 it appears as though the server shouldn't send this until later in the connection, but I'm not 100% sure.

Can confirm connects ok with pidgin.

lm-test output:

Trying 81.0.225.79 port 5222...
Connection success (2).

SEND:
-----------------------------------
<?xml version='1.0' encoding='UTF-8'?>
-----------------------------------
*** Sending stream header

SEND:
-----------------------------------
<stream:stream version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="k2city.eu">
-----------------------------------

RECV [511]:
-----------------------------------
'<stream:stream xmlns="jabber:client" from="k2city.eu" id="0701160458" xmlns:stream="http://etherx.jabber.org/streams" version="1.0"><stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism></mechanisms><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>'
Comment 2 Matej Moško 2009-10-04 13:34:51 UTC
Pidgin connection OK. Empathy neither after upgrade to 2.27.92 connects. The provider did not send me any information about the jabber version on the server.
Comment 3 Sumana Harihareswara 2009-10-24 17:09:54 UTC
Mate, it sounds like you're still experiencing this problem with Empathy 2.27.92.  Could you tell us your version of telepathy-gabble?  You could also use Help->Debug and choose "gabble" from the dropdown box at the upper left to get log info (a log of you trying to log in to the problematic account might be useful).

Sorry for the trouble.
Comment 4 Matej Moško 2010-03-04 16:17:50 UTC
Created attachment 155239 [details]
Log file of telepathy-gabble 0.8.11
Comment 5 Matej Moško 2010-03-04 16:18:45 UTC
My jabber still does not work using telepathy-gabble version 0.8.11 (I have tried 0.9.6, no success, but not quite sure if the same error). The connection encounters several errors, but still goes on, the error that actually ends the connection is 407: Registration Required, in GUI it shows as authentication failed. I attach log and the mentioned excerpt of log

[code]
LM-DEBUG: 04.03.2010 13:31:15.244672: Have a new message
LM-DEBUG: 04.03.2010 13:31:15.244718: New message with type="stream:error" from: unknown
LM-DEBUG: 04.03.2010 13:31:15.244781: XMPP 1.0 stream received: 0315130431
LM-DEBUG: 04.03.2010 13:31:15.244870:
SEND:
LM-DEBUG: 04.03.2010 13:31:15.244920: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.244966: <iq type="set" id="239619244844"> <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"> <resource>empathy</resource>
</bind>
</iq>
LM-DEBUG: 04.03.2010 13:31:15.245012: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.245170: Stream features received
LM-DEBUG: 04.03.2010 13:31:15.245234:
SEND:
LM-DEBUG: 04.03.2010 13:31:15.245281: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.245327: <auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" id="239623245223"></auth>
LM-DEBUG: 04.03.2010 13:31:15.245374: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.251959:
RECV [173]:
LM-DEBUG: 04.03.2010 13:31:15.252065: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.252116: '<iq id="239619244844" type="error"> <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"> <resource>empathy</resource>
</bind>
<error code="407">Registration Required</error></iq>'
LM-DEBUG: 04.03.2010 13:31:15.252166: -----------------------------------
LM-DEBUG: 04.03.2010 13:31:15.253371: Read: 173 chars
LM-DEBUG: 04.03.2010 13:31:15.253439: ATTRIBUTE: id = 239619244844
LM-DEBUG: 04.03.2010 13:31:15.253499: ATTRIBUTE: type = error
LM-DEBUG: 04.03.2010 13:31:15.253551: ATTRIBUTE: xmlns = urn:ietf:params:xml:ns:xmpp-bind
LM-DEBUG: 04.03.2010 13:31:15.253602: Trying to close node: resource
LM-DEBUG: 04.03.2010 13:31:15.253649: Trying to close node: bind
LM-DEBUG: 04.03.2010 13:31:15.253700: ATTRIBUTE: code = 407
LM-DEBUG: 04.03.2010 13:31:15.253747: Trying to close node: error
LM-DEBUG: 04.03.2010 13:31:15.253797: Trying to close node: iq
LM-DEBUG: 04.03.2010 13:31:15.253859: Have a new message
LM-DEBUG: 04.03.2010 13:31:15.253909: New message with type="iq" from: unknown
LM-DEBUG: 04.03.2010 13:31:15.253984: connection_bind_reply: error while binding to resource
gabble/connection-DEBUG: 04.03.2010 13:31:15.254038: connection_auth_cb: failed
[/code]
Comment 6 Guillaume Desmottes 2010-03-15 09:00:00 UTC
Empathy is not managing the XMPP connection. you should open a telepathy-gabble bug on bugs.freedesktop.org