This Question is Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (5 pts)
20 Replies Last post: Apr 15, 2008 4:25 AM by Richard Wooding  
Remko Troncon Bronze 48 posts since
Apr 30, 2006
Currently Being Moderated

Apr 9, 2008 9:17 AM

Problems connecting to gmail.com

I just upgraded to 3.5.0, and it seems all my gmail contacts have become unreachable. I don't see anything in the error or warning logs about "gmail.com" or "google.com". Any idea how to start debugging this problem?

Todd Getz KeyContributor 1,960 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 9:22 AM in response to: Remko Troncon
Re: Problems connecting to gmail.com

did you also upgrade your gateway plugin?  that plugin is notoriously buggy to upgrade  (sorry Daniel).  I make it a point to always do a manual upgrade of that plugin, by stopping the server deleting the old one and its folder and adding the new one in.

Todd Getz KeyContributor 1,960 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 9:47 AM in response to: Remko Troncon
Re: Problems connecting to gmail.com

sounds like a DNS issue. 

 

Has something else changed:  IP or FQDN or SRV record or a new hardware and gmail is no longer authorized by your server.

 

 

 

 

Another thread had the same issue that self correct with time:  http://www.igniterealtime.org/community/message/168080#168080

 

 

Todd Getz KeyContributor 1,960 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 10:09 AM in response to: Remko Troncon
Re: Problems connecting to gmail.com

It sounds like a problem on their end.  The response is not coming back.  They may be caching something on their end.

kyri Bronze 30 posts since
Sep 22, 2006
Currently Being Moderated
Apr 10, 2008 1:33 AM in response to: Todd Getz
Re: Problems connecting to gmail.com

 

i used again the 3.4.5 Openfire version and was connected to gmail over s2s.  No problem.

 

 

With 3.5.0 have the same problems as above.

 

 

No idea why. Is there any change in the 3.5.0 ?

 

 

Thanks

 

 

Daniel Henninger Jiver 2,904 posts since
Aug 10, 2005
Currently Being Moderated
Apr 9, 2008 9:45 AM in response to: Todd Getz
Re: Problems connecting to gmail.com
mtstravel wrote:

did you also upgrade your gateway plugin?  that plugin is notoriously buggy to upgrade  (sorry Daniel).  I make it a point to always do a manual upgrade of that plugin, by stopping the server deleting the old one and its folder and adding the new one in.

 

That -should- be fixed actually.  The problem was that the Openfire unload and load routines weren't really waiting for the plugin to stop.  Gato fixed that a couple of versions ago.  In theory the Gateway plugin should update properly nowadays.  If it's not let me know.  =)

fidojones Bronze 2 posts since
Apr 10, 2008
Currently Being Moderated
Apr 10, 2008 2:55 PM in response to: Remko Troncon
Re: Problems connecting to gmail.com

Same problem, with clean instalation and with upgrade instalation. I have no dns problem, works perfect with 3.5.0 rc1 but fails on 3.5.0 rc2 and 3.5.0 final, 3.4.5 works perfect also. It's not a DNS problem it's a bug.....

 

org.jivesoftware.openfire.PacketException: Cannot route packet of type IQ or Presence to bare JID:

]]>

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.jav a:215)

        at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.return ErrorToSender(OutgoingSessionPromise.java:259)

        at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:196)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

2008.04.10 21:35:02 Cookie rejected: "$Version=0; PREF=ID=9ae5d3f7ab0d2a55:TM=1207856132:LM=1207856132:S=J6HiUm-bQxmf9W4w; $Path=/; $Domain=.google.com". Illegal domain attribute ".google.com". Domain of origin: "google.com"

Daniel Henninger Jiver 2,904 posts since
Aug 10, 2005
Currently Being Moderated
Apr 10, 2008 5:53 PM in response to: fidojones
Re: Problems connecting to gmail.com

Hrm.  that's very useful information (rc1 vs rc2 vs release)  I created JM-1323 regarding the issue.  There -were- some changes, but focusing on locking, between rc1 and rc2.  On the surface it doesn't seem like that would cause a problem but...

Ivan Bronze 29 posts since
Feb 7, 2007
Currently Being Moderated
Apr 11, 2008 12:14 AM in response to: Daniel Henninger
Re: Problems connecting to gmail.com

not only gmail.com

S2S in OpenFire 3.5.0 works very strange with many servers except anothers OpenFires

Daniel Henninger Jiver 2,904 posts since
Aug 10, 2005
Currently Being Moderated
Apr 11, 2008 9:05 AM in response to: Ivan
Re: Problems connecting to gmail.com

Can you give us some examples?  It appears to be working great with ejabberd, but we didn't see many other implementations that it was connecting to.

Stefan Reuter KeyContributor 284 posts since
Aug 3, 2005
Currently Being Moderated
Apr 12, 2008 1:32 PM in response to: Daniel Henninger
Re: Problems connecting to gmail.com

As you mentioned locking changes I've attached snippet of my debug.log that shows a simlar (the same?) problem with another server since 3.5.0.

There are a lot of "Time out waiting for answer in validation from" messages before that and then all "Verifying key for host" come at once at the end.

Attachments:
Ivan Bronze 29 posts since
Feb 7, 2007
Currently Being Moderated
Apr 12, 2008 3:46 PM in response to: Daniel Henninger
Re: Problems connecting to gmail.com

For example MUC service conference.jabber.ru

I didn't see it working from openfire 3.5.0

With ejabberd servers such as jabber.ru, jabbus.org, jabnet.org openfire 3.5.0 works very unstable(some times works, some times not)

Only server with which Openfire 3.5.0 works fine is Openfire(tested with 3.4.2).

 

UPD: with openfire S2S is unstable too but lesser then with others(but greater then it was on previous versions of openfire)

Ivan Bronze 29 posts since
Feb 7, 2007
Currently Being Moderated
Apr 12, 2008 3:48 PM in response to: Daniel Henninger
Re: Problems connecting to gmail.com

For example debug log about connections with gmail.com and ejabberd's  servers:

 

2008.04.13 00:37:59 LocalOutgoingServerSession: OS - Trying to connect to gmail.com:5269(DNS lookup: xmpp-server2.l.google.com:5269)

2008.04.13 00:38:00 LocalOutgoingServerSession: OS - Plain connection to gmail.com:5269 successful

2008.04.13 00:38:00 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: gmail.com

2008.04.13 00:38:00 ServerDialback: OS - Trying to connect to gmail.com:5269(DNS lookup: xmpp-server1.l.google.com:5269)

2008.04.13 00:38:00 ServerDialback: OS - Connection to gmail.com:5269 successful

2008.04.13 00:38:01 ServerDialback: OS - Sent dialback key to host: gmail.com id: 76DC411C7BA0992B from domain: skylink64.ru

2008.04.13 00:38:01 Connect Socket[http://addr=/72.14.252.129,port=54686,localport=5269|http://addr=/72.14.252.129, port=54686,localport=5269]

2008.04.13 00:38:01 Error creating session

java.io.EOFException: input contained no data

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:331)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.openfire.net.SocketReader.createSession(SocketReader.java:363)

at org.jivesoftware.openfire.net.BlockingReadingMode.run(BlockingReadingMode.java: 53)

at org.jivesoftware.openfire.net.SocketReader.run(SocketReader.java:119)

at java.lang.Thread.run(Unknown Source)

2008.04.13 00:38:01 Connection closed before session established

Socket[http://addr=/72.14.252.129,port=54686,localport=5269|http://addr=/72.14.252.129, port=54686,localport=5269]

2008.04.13 00:38:02 Connect Socket[http://addr=/72.14.252.129,port=54688,localport=5269|http://addr=/72.14.252.129, port=54688,localport=5269]

2008.04.13 00:38:02 ServerDialback: RS - Received dialback key from host: gmail.com to: skylink64.ru

2008.04.13 00:38:21 OutgoingServerSocketReader: Finishing Outgoing Server Reader. No session to close.

java.io.EOFException: no more data available - expected end tag to close start tag from line 1, parser stopped on START_TAG seen .../streams" xmlns="jabber:server" xmlns:db="jabber:server:dialback">... @1:141 at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:75) at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:317) at org.jivesoftware.openfire.server.OutgoingServerSocketReader$1.run(OutgoingServerSocketReader.java:92) 2008.04.13 00:38:21 ServerDialback: OS - Time out waiting for answer in validation from: gmail.com id: 76DC411C7BA0992B for domain: skylink64.ru 2008.04.13 00:38:21 OutgoingSessionPromise: Error sending packet to remote server: java.lang.Exception: Failed to create connection to remote server at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPacket(OutgoingSessionPromise.java:226) at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(OutgoingSessionPromise.java:193) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2008.04.13 00:38:21 ServerDialback: RS - Trying to connect to Authoritative Server: gmail.com:5269(DNS lookup: xmpp-server.l.google.com:5269) 2008.04.13 00:38:21 LocalOutgoingServerSession: OS - Trying to connect to gmail.com:5269(DNS lookup: xmpp-server4.l.google.com:5269) 2008.04.13 00:38:25 053603 (01/05/00) - Connection #24 tested: OK 2008.04.13 00:38:25 053604 (01/05/00) - Connection #24 tested: OK 2008.04.13 00:38:26 LocalOutgoingServerSession: OS - Trying to connect to jabnet.org:5269(DNS lookup: jabnet.org:5269) 2008.04.13 00:38:26 LocalOutgoingServerSession: OS - Plain connection to jabnet.org:5269 successful 2008.04.13 00:38:26 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: jabnet.org 2008.04.13 00:38:26 ServerDialback: OS - Trying to connect to jabnet.org:5269(DNS lookup: jabnet.org:5269) 2008.04.13 00:38:26 ServerDialback: OS - Connection to jabnet.org:5269 successful 2008.04.13 00:38:26 ServerDialback: OS - Sent dialback key to host: jabnet.org id: 2100003458 from domain: skylink64.ru 2008.04.13 00:38:26 Connect Socket[http://addr=/88.147.254.230,port=57198,localport=5269|http://addr=/88.147.254.230,port=57198,localport=5269] 2008.04.13 00:38:26 ServerDialback: RS - Received dialback key from host: jabnet.org to: skylink64.ru 2008.04.13 00:38:30 LocalOutgoingServerSession: OS - Plain connection to gmail.com:5269 successful 2008.04.13 00:38:30 ServerDialback: RS - Connection to AS: gmail.com:5269 successful 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Trying to connect to jabber.ru:5269(DNS lookup: jabber.ru:5269) 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Plain connection to jabber.ru:5269 successful 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Indicating we want TLS to jabber.ru 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Negotiating TLS with jabber.ru 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - TLS negotiation with jabber.ru was successful 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Error, no SASL mechanisms were offered by jabber.ru 2008.04.13 00:38:34 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: jabber.ru 2008.04.13 00:38:34 ServerDialback: OS - Trying to connect to jabber.ru:5269(DNS lookup: jabber.ru:5269) 2008.04.13 00:38:34 ServerDialback: OS - Connection to jabber.ru:5269 successful 2008.04.13 00:38:34 ServerDialback: OS - Sent dialback key to host: jabber.ru id: 1271245484 from domain: skylink64.ru 2008.04.13 00:38:34 Connect Socket[http://addr=/213.180.203.19,port=58721,localport=5269|http://addr=/213.180.203.19,port=58721,localport=5269] 2008.04.13 00:38:34 ServerDialback: RS - Received dialback key from host: jabber.ru to: skylink64.ru 2008.04.13 00:38:35 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: gmail.com 2008.04.13 00:38:35 ServerDialback: OS - Trying to connect to gmail.com:5269(DNS lookup: xmpp-server3.l.google.com:5269) 2008.04.13 00:38:35 ServerDialback: RS - Asking AS to verify dialback key for ida018ecf3 2008.04.13 00:38:37 ServerDialback: RS - Key was NOT VERIFIED by the Authoritative Server for: gmail.com 2008.04.13 00:38:37 ServerDialback: RS - Closing connection to Authoritative Server: gmail.com 2008.04.13 00:38:37 ServerDialback: RS - Sending key verification result to OS: gmail.com 2008.04.13 00:38:37 Connection closed before session established Socket[http://addr=/72.14.252.129,port=54688,localport=5269|http://addr=/72.14.252.129,port=54688,localport=5269] 2008.04.13 00:38:42 OutgoingServerSocketReader: Finishing Outgoing Server Reader. Closing session: org.jivesoftware.openfire.session.LocalOutgoingServerSession@12f7ab6 status: 1 address: jabbus.org id: 2577068964 java.io.EOFException: no more data available - expected end tag to close start tag from line 1, parser stopped on END_TAG seen ...964\'>... @1:217 at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:75) at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:317) at org.jivesoftware.openfire.server.OutgoingServerSocketReader$1.run(OutgoingServerSocketReader.java:92) 2008.04.13 00:38:42 Logging off jabbus.org on org.jivesoftware.openfire.net.SocketConnection@e5c413 socket: Socket[http://addr=/217.147.29.117,port=53117,localport=5269|http://addr=/217.147.29.117,port=53117,localport=5269] session: org.jivesoftware.openfire.session.LocalIncomingServerSession@5fd682 status: 1 address: jabbus.org id: 3bc3887f 2008.04.13 00:38:44 ServerDialback: OS - Connection to gmail.com:5269 successful 2008.04.13 00:38:45 ServerDialback: OS - Sent dialback key to host: gmail.com id: 0988AA94CF3A30A5 from domain: skylink64.ru 2008.04.13 00:38:45 Connect Socket[http://addr=/72.14.252.129,port=54703,localport=5269|http://addr=/72.14.252.129,port=54703,localport=5269] 2008.04.13 00:38:46 ServerDialback: RS - Received dialback key from host: gmail.com to: skylink64.ru 2008.04.13 00:38:46 ServerDialback: OS - Time out waiting for answer in validation from: jabnet.org id: 2100003458 for domain: skylink64.ru 2008.04.13 00:38:46 OutgoingServerSocketReader: Finishing Outgoing Server Reader. No session to close. java.net.SocketException: Socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at org.jivesoftware.openfire.net.ServerTrafficCounter$InputStreamWrapper.read(ServerTrafficCounter.java:209) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.jivesoftware.openfire.net.MXParser.nextImpl(MXParser.java:75) at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) at org.dom4j.io.XMPPPacketReader.parseDocument(XMPPPacketReader.java:317) at org.jivesoftware.openfire.server.OutgoingServerSocketReader$1.run(OutgoingServerSocketReader.java:92) 2008.04.13 00:38:46 OutgoingSessionPromise: Error sending packet to remote server: ]]>

java.lang.Exception: Failed to create connection to remote server

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:226)

at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.java:193)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

2008.04.13 00:38:46 ServerDialback: RS - Trying to connect to Authoritative Server: jabnet.org:5269(DNS lookup: jabnet.org:5269)

2008.04.13 00:38:46 LocalOutgoingServerSession: OS - Trying to connect to jabnet.org:5269(DNS lookup: jabnet.org:5269)

2008.04.13 00:38:46 ServerDialback: RS - Connection to AS: jabnet.org:5269 successful

2008.04.13 00:38:46 LocalOutgoingServerSession: OS - Plain connection to jabnet.org:5269 successful

2008.04.13 00:38:46 ServerDialback: RS - Asking AS to verify dialback key for id90297367

2008.04.13 00:38:46 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: jabnet.org

2008.04.13 00:38:46 ServerDialback: OS - Trying to connect to jabnet.org:5269(DNS lookup: jabnet.org:5269)

2008.04.13 00:38:46 ServerDialback: RS - Key was VERIFIED by the Authoritative Server for: jabnet.org

2008.04.13 00:38:46 ServerDialback: RS - Closing connection to Authoritative Server: jabnet.org

2008.04.13 00:38:46 ServerDialback: RS - Sending key verification result to OS: jabnet.org

2008.04.13 00:38:46 ServerDialback: OS - Connection to jabnet.org:5269 successful

2008.04.13 00:38:46 ServerDialback: OS - Sent dialback key to host: jabnet.org id: 2286598596 from domain: skylink64.ru

2008.04.13 00:38:46 Connect Socket[http://addr=/88.147.254.230,port=55452,localport=5269|http://addr=/88.147.254.23 0,port=55452,localport=5269]

2008.04.13 00:38:46 ServerDialback: AS - Verifying key for host: jabnet.org id: 2286598596

2008.04.13 00:38:46 ServerDialback: AS - Key was: VALID for host: jabnet.org id: 2286598596

2008.04.13 00:38:46 ServerDialback: AS - Connection closed for host: jabnet.org id: 2286598596

2008.04.13 00:38:46 Connection closed before session established

Socket[http://addr=/88.147.254.230,port=55452,localport=5269|http://addr=/88.147.254.23 0,port=55452,localport=5269]

2008.04.13 00:38:46 ServerDialback: OS - Validation GRANTED from: jabnet.org id: 2286598596 for domain: skylink64.ru

2008.04.13 00:38:46 ServerDialback: AS - Verifying key for host: jabnet.org id: 2100003458

2008.04.13 00:38:46 ServerDialback: AS - Key was: VALID for host: jabnet.org id: 2100003458

Brent Stephens Bronze 71 posts since
Dec 29, 2005
Currently Being Moderated
Apr 13, 2008 11:06 PM in response to: Ivan
Re: Problems connecting to gmail.com

Yep, same issue...the previous thread is mine.

 

It started working again...and then it stopped.  And then it started.  And now it's stopped again.  Definitely did not have these issues with the RCs.