This thread is archived
24 Replies Last post: Jun 30, 2005 9:52 AM by Jonathan  
Jonathan   21 posts since
Jun 17, 2005
Currently Being Moderated

Jun 17, 2005 12:21 PM

s2s dont work for me.

I use Jive Messenger (nightly build from 13/06/05) and can not connect to another server (jabberd 1.4). Jive Messenger can send, but can not receive messages.

 

Is anyone able to help me with this?

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 17, 2005 10:42 PM in response to: Jonathan
Re: s2s dont work for me.

Hey Jonathan,

 

First off, download the latest nightly build that contains many s2s improvements and better logging.

 

Things to check/do:

. The hostname used by your JM server must be registered in the DNS so that remote servers may be able to connect to your JM server

. Servers will communicate using port 5269 so make sure that that port is opened in the firewall. A simple test that you can try is doing a telnet to the JM''s hostname at port 5269 from the remote server.

. Open the Admin Console. Click on Logs > Debug and enable the Debug Log. Copy the information in the debug.log so I can analyze where the problem is.

 

If your jabberd1.4 server is publicly accesible I may try connecting from my local(development) server and check the issue. So give me the hostname of the jabberd server if the server is publicly accesible.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 20, 2005 10:42 AM in response to: Jonathan
Re: s2s dont work for me.

Hey Jonathan,

 

Looking at your log I don''t see any s2s communication.  After the server has been started could you try sending a message to and from amessage.de? FYI, I tried connecting from my local server to amessage.de and it worked fine both ways.

 

You should see something like this in your log when sending a message TO amessage.de:

 

2005.06.20 12:28:04 OS - Trying to connect to amessage.de:5269

2005.06.20 12:28:05 OS - Connection to amessage.de:5269 successfull

2005.06.20 12:28:06 OS - Sent dialback key to host: amessage.de id: 050b95ca5f08b9df860006feaea87f9f8898c566 from domain: gato.dyndns.org

2005.06.20 12:28:07 Connect Socket[addr=/212.112.238.55,port=46627,localport=5269]

2005.06.20 12:28:07 AS - Verifying key for host: amessage.de id: 050b95ca5f08b9df860006feaea87f9f8898c566

2005.06.20 12:28:07 AS - Key was: VALID for host: amessage.de id: 050b95ca5f08b9df860006feaea87f9f8898c566

2005.06.20 12:28:07 AS - Connection closed for host: amessage.de id: 050b95ca5f08b9df860006feaea87f9f8898c566

2005.06.20 12:28:08 OS - Validation GRANTED from: amessage.de id: 050b95ca5f08b9df860006feaea87f9f8898c566 for domain: gato.dyndns.org

 

and something like this when receiving FROM amessage.de:

 

2005.06.20 12:29:43 Connect Socket[addr=/212.112.238.55,port=46690,localport=5269]

2005.06.20 12:29:43 RS - Received dialback key from host: amessage.de to: gato.dyndns.org

2005.06.20 12:29:43 RS - Trying to connect to Authoritative Server: amessage.de:5264

2005.06.20 12:29:43 RS - Connection to AS: amessage.de:5264 successfull

2005.06.20 12:29:43 RS - Asking AS to verify dialback key for idd9551065

2005.06.20 12:29:44 RS - Key was VERIFIED by the Authoritative Server for: amessage.de

2005.06.20 12:29:44 RS - Closing connection to Authoritative Server: amessage.de

2005.06.20 12:29:44 RS - Sending key verification result to OS: amessage.de

 

Let me know how it goes.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 20, 2005 1:53 PM in response to: Jonathan
Re: s2s dont work for me.

Jonathan,

 

This is weird. I don''t see any server-to-server trace in your debug log.

 

1) Could you check that you are in fact using the latest nightly build? You can check the info logged in the info file which shows the version you are using or you can go to the Admin Console and check if you have Sessions > Server Sessions.

 

2) How are you testing the server-to-server communication? Using a client connected to your JM local server try sending a message to "aaaa@amessage.de". That should generate some new entries in your debug.log.

 

Let me know how it goes.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 21, 2005 10:02 AM in response to: Jonathan
Re: s2s dont work for me.

Hey Jonathan,

 

Now your log makes more sense. Server-to-server is not supported in JM 2.1.5. You will need to install the latest nightly build to take advantage of s2s. After you have installed the latest nightly build you should see that the version 2.2.0 Beta 1 is being used.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 21, 2005 11:35 AM in response to: Jonathan
Re: s2s dont work for me.

You are very welcome. Enjoy s2s

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 24, 2005 12:37 PM in response to: Jonathan
Re: s2s dont work for me.

Could you be a little more specific? BTW, try updating to the latest  nightly build.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 24, 2005 1:10 PM in response to: Jonathan
Re: s2s dont work for me.

Could you find out which software the servers you are having problems with are using? From the logs I see that the remote server is trying to establish an incoming connection to kub.kicks-ass.net but since there is an existing connection then the new connection is being rejected. I don''t know why the remote server is creating a new connection if one already exists, unless the existing connection was closed and JM assumes that it''s still active.

 

Could you update to the latest nightly build and try again? If the problem persists can you verify (using netstat or some other tool) if the remote server has another connection to your server? A possibility could be that the remote server closed the previous socket connection but didn''t send a </stream> element and due to network configuration Java is not getting that the connection was closed. If that is the case and the remote server cannot be modified to send the </stream> element then you will have to decrease the idle timeout for closing connections.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 24, 2005 1:43 PM in response to: Jonathan
Re: s2s dont work for me.

Nightly build are located here: http://www.jivesoftware.org/nightly.jsp. Press F5 to force a refresh if you are seeing old builds. Latest is as of today.

 

Regards,

 

  -- Gato

Gaston Dombiak Jiver 3,749 posts since
Sep 26, 2001
Currently Being Moderated
Jun 25, 2005 2:34 PM in response to: