Server to Server issues

Hi all,

I have successfully got two servers here connecting two offices that are connected by VPN with no firewall between them. I am able to telnet to each server from each location on port 5269. When i try to search the userbase or add a user from the other office it just fails. Is there anything i need to enable for this to work?

I have set everything as per http://www.igniterealtime.org/community/docs/DOC-1030 and the two servers can communicate as demonstrated by telneting from each to the other.

thanks,

Andy

Hey Andy,

You can turn on the debug log to see what is going on. Also post any error that you see in the logs. BTW, a common mistake is to not use the XMPP domain of the server but its IP address or hostname. You can check in the main page of the admin console for the XMPP domain being used by the server and use that when trying to browse users of the remote server.

Regards,

– Gato

Hello Gato,

I made my xmpp domain name as my IP addresses. I found these in debug log

008.09.24 15:24:04 Connect Socket[addr=/192.168.229.113,port=55324,localport=5269
2008.09.24 15:24:04 Connection closed before session established
Socket[addr=/192.168.229.113,port=55324,localport=5269]

and sometimes I found this when s2s tries to using dialback.

2008.09.24 15:24:27 ServerDialback: RS - Trying to connect to Authoritative Server: 192.168.229.114:5269(DNS lookup: 192.168.229.114:5269)
2008.09.24 15:24:27 ServerDialback: RS - Connection to AS: 192.168.229.114:5269 successful
2008.09.24 15:24:27 ServerDialback: RS - Asking AS to verify dialback key for idf9a5434b
2008.09.24 15:24:27 ServerDialback: RS - Key was VERIFIED by the Authoritative Server for: 192.168.229.114
2008.09.24 15:24:27 ServerDialback: RS - Closing connection to Authoritative Server: 192.168.229.114
2008.09.24 15:24:27 ServerDialback: RS - Sending key verification result to OS: 192.168.229.114
2008.09.24 15:24:27 Logging off 192.168.229.114 on org.jivesoftware.openfire.net.SocketConnection@36f05fc9 socket: Socket[addr=/192.168.229.114,port=38970,localport=5269] session: org.jivesoftware.openfire.session.LocalIncomingServerSession@1aa7a03b status: 1 address: 192.168.229.114 id: f9a5434b

Please tell me how can resolved this. Sometime My two server connected but sometime not.

I have enabled debugging and these are the results… This is the log from the local domain… I am trying to add a user from the local domain while logged into the remote domain.

2008.09.26 08:15:32 Connect Socket[addr=/10.0.0.3,port=1787,localport=5269]
2008.09.26 08:15:33 ServerDialback: RS - Received dialback key from host: jabber.remotedomain.com to: jabber.localdomain.com
2008.09.26 08:15:33 ServerDialback: RS - Trying to connect to Authoritative Server: jabber.remotedomain:5269(DNS lookup: jabber.remotedomain:5269)
2008.09.26 08:15:33 Connection closed before session established

Dns is set correctly via bind…

_jabber               SRV     0 0 5269 jabber.domain.com.
_xmpp-client          SRV     0 0 5222 jabber.domain.com.
_xmpp-server          SRV     0 0 5269 jabber.domain.com.

Everything looks to be right but im unable to add anyone or even do a search on the remote servers.

Hi Again,

I’ve managed to get this working. It was missing a . from the dns entry…

please mark this as answered if this issue is resolved.

It’s not quite working properly yet. Using the Spark client i have no way to add users from the remote office.

Our local office here already used Miranda Im and we can specify the “search service” while adding a new contact and it will choose the address of the remote jabber server.

Using Spark it seems i need to have an account on the remote server, which I dont want to have. Is there a way to add the users from the remote server from spark?

bump for solution

Hello Gato!!

Go though the Debug log… What is reason our server to server fail

2008.09.24 14:07:12 ServerDialback: RS - Trying to connect to Authoritative Server: 192.168.229.114:5269(DNS lookup: 192.168.229.114:5269)
2008.09.24 14:07:12 ServerDialback: RS - Connection to AS: 192.168.229.114:5269 successful
2008.09.24 14:07:12 Connect Socket[addr=/192.168.229.114,port=39971,localport=5269]
2008.09.24 14:07:12 ServerDialback: RS - Asking AS to verify dialback key for id24abe550
2008.09.24 14:07:12 ServerDialback: RS - Key was VERIFIED by the Authoritative Server for: 192.168.229.114
2008.09.24 14:07:12 ServerDialback: RS - Closing connection to Authoritative Server: 192.168.229.114
2008.09.24 14:07:12 ServerDialback: RS - Sending key verification result to OS: 192.168.229.114
2008.09.24 14:07:12 Logging off 192.168.229.114 on org.jivesoftware.openfire.net.SocketConnection@4d88a387 socket: Socket[addr=/192.168.229.114,port=39969,localport=5269] session: org.jivesoftware.openfire.session.LocalIncomingServerSession@3c2250d5 status: 1 address: 192.168.229.114 id: 24abe550
2008.09.24 14:07:12 ServerDialback: AS - Verifying key for host: 192.168.229.114 id: 70510db2
2008.09.24 14:07:12 ServerDialback: AS - Key was: VALID for host: 192.168.229.114 id: 70510db2
2008.09.24 14:07:12 ServerDialback: AS - Connection closed for host: 192.168.229.114 id: 70510db2
2008.09.24 14:07:12 Connection closed before session established
Socket[addr=/192.168.229.114,port=39971,localport=5269]
2008.09.24 14:07:42 LocalOutgoingServerSession: OS - Trying to connect to 192.168.229.114:5269(DNS lookup: 192.168.229.114:5269)
2008.09.24 14:07:42 LocalOutgoingServerSession: OS - Plain connection to 192.168.229.114:5269 successful
2008.09.24 14:07:42 LocalOutgoingServerSession: OS - Indicating we want TLS to 192.168.229.114
2008.09.24 14:07:42 LocalOutgoingServerSession: OS - Error, was not received
2008.09.24 14:07:42 LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: 192.168.229.114
2008.09.24 14:07:42 Connect Socket[addr=/192.168.229.114,port=39975,localport=5269]
2008.09.24 14:07:42 Connection closed before session established
Socket[addr=/192.168.229.114,port=39975,localport=5269]
2008.09.24 14:08:12 ServerDialback: OS - Trying to connect to 192.168.229.114:5269(DNS lookup: 192.168.229.114:5269)
2008.09.24 14:08:12 ServerDialback: OS - Connection to 192.168.229.114:5269 successful
2008.09.24 14:08:12 ServerDialback: OS - Sent dialback key to host: 192.168.229.114 id: 1954df69 from domain: 192.168.229.113
2008.09.24 14:08:12 Connect Socket[addr=/192.168.229.114,port=39977,localport=5269]
2008.09.24 14:08:12 ServerDialback: RS - Received dialback key from host: 192.168.229.114 to: 192.168.229.113
2008.09.24 14:08:28 ServerDialback: RS - Trying to connect to Authoritative Server: 192.168.229.114:5269(DNS lookup: 192.168.229.114:5269)
2008.09.24 14:08:28 ServerDialback: RS - Connection to AS: 192.168.229.114:5269 successful
2008.09.24 14:08:28 Connect Socket[addr=/192.168.229.114,port=39978,localport=5269]
2008.09.24 14:08:28 ServerDialback: RS - Asking AS to verify dialback key for id6cfc6efc
2008.09.24 14:08:28 ServerDialback: AS - Verifying key for host: 192.168.229.114 id: 1954df69
2008.09.24 14:08:28 ServerDialback: AS - Key was: VALID for host: 192.168.229.114 id: 1954df69
2008.09.24 14:08:28 ServerDialback: AS - Connection closed for host: 192.168.229.114 id: 1954df69
2008.09.24 14:08:28 Connection closed before session established
Socket[addr=/192.168.229.114,port=39978,localport=5269]
2008.09.24 14:08:28 ServerDialback: RS - Key was VERIFIED by the Authoritative Server for: 192.168.229.114
2008.09.24 14:08:28 ServerDialback: RS - Closing connection to Authoritative Server: 192.168.229.114
2008.09.24 14:08:28 ServerDialback: RS - Sending key verification result to OS: 192.168.229.114
2008.09.24 14:08:28 ServerDialback: OS - Validation GRANTED from: 192.168.229.114 id: 1954df69 for domain: 192.168.229.113