This Question is Answered

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

Apr 9, 2008 7: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 3,300 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 7: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 3,300 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 7: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 3,300 posts since
Apr 2, 2007
Currently Being Moderated
Apr 9, 2008 8: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 33 posts since
Sep 21, 2006
Currently Being Moderated
Apr 9, 2008 11:33 PM 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 KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Apr 9, 2008 7: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.  =)

Bronze 2 posts since
Apr 10, 2008
Currently Being Moderated
Apr 10, 2008 12: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 KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Apr 10, 2008 3: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 30 posts since
Feb 7, 2007
Currently Being Moderated
Apr 10, 2008 10:14 PM 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 KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Apr 11, 2008 7: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 324 posts since
Aug 3, 2005
Currently Being Moderated
Apr 12, 2008 11:32 AM 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 30 posts since
Feb 7, 2007
Currently Being Moderated
Apr 12, 2008 1: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 30 posts since
Feb 7, 2007
Currently Being Moderated
Apr 12, 2008 1: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 

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.230,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.230,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

Bronze 71 posts since
Dec 29, 2005
Currently Being Moderated
Apr 13, 2008 9: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.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Apr 14, 2008 7:25 AM in response to: Brent Stephens
Re: Problems connecting to gmail.com

Wait, what do you mean the "RCs"?  So far I've heard that RC1 was fine, but RC2 'broke it'.  Are you telling me it worked fine for you in RC2?

Bronze 71 posts since
Dec 29, 2005
Currently Being Moderated
Apr 14, 2008 7:33 AM in response to: Daniel Henninger
Re: Problems connecting to gmail.com

Eh, I'm an idiot sometimes.  I went back and checked and apparently I never installed RC2.  I was running RC1 with no issues outside of Gateway plugin stuff.  I upgraded to 3.5.0 proper and started experiencing the GTalk issue.

Richard Wooding Bronze 11 posts since
Apr 15, 2008
Currently Being Moderated
Apr 15, 2008 2:25 AM in response to: Remko Troncon
Re: Problems connecting to gmail.com

 

Hi I am having the same problem, having recently upgraded to 3.5. I have uninstalled the gateway plugin (to eliminate it as a source of the problem). My openfire installation is unable to create a s2s connection to the following domains:

 

 

gmail.com

 

 

google.com

 

 

googlemail.com

 

 

This is the error message from my logs:

 

 

2008.04.15 10:01:04 Error verifying key of remote server: google.com

java.net.SocketTimeoutException: connect timed out

        at java.net.PlainSocketImpl.socketConnect(Native Method)

        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

        at java.net.Socket.connect(Socket.java:520)

        at org.jivesoftware.openfire.server.ServerDialback.verifyKey(ServerDialback.java:5 22)

        at org.jivesoftware.openfire.server.ServerDialback.validateRemoteDomain(ServerDial back.java:464)

        at org.jivesoftware.openfire.server.ServerDialback.createIncomingSession(ServerDia lback.java:348)

        at org.jivesoftware.openfire.session.LocalIncomingServerSession.createSession(Loca lIncomingServerSession.java:101)

        at org.jivesoftware.openfire.net.ServerSocketReader.createSession(ServerSocketRead er.java:211)

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

        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(Thread.java:595)

 

 

If anybody can help me with this issue I would appreciate it. I can supply logs if necessary.

 

 

More Like This

  • Retrieving data ...

Bookmarked By (0)