s2s unknown host execption - Couldn't open a new s2s service

Submitted by Anonymous on Thu, 2009-05-14 17:23

Hi All,

I have setup tigase server and am able to register new users without any problem. I have setup this on my local machine and testing it out. I just create new users on the server and login to it. And try to open a chat window for one user and try to chat with the other user logged in as well in the same client which should work. When I try to do this s2s unknown host exception occurs. Please reply me what is going wrong. I see something should be related to the DNS. If thats the case, how do I setup the server and test it in the local machine or the local network. I have tried to test it in the local network as well from another machine. Registering happens perfectly fine, but not able to chat using this server, when tried the error similliar to below is what is thrown. Hoping to have some pointers.

I have pasted the log dump

2009-05-14 21:42:11 ConnectionManager.packetsReady() FINEST: packetsReady called
2009-05-14 21:42:11 ClientConnectionManager.processSocketData() FINER: Processing packet: message, type: chat
2009-05-14 21:42:11 ClientConnectionManager.processSocketData() FINEST: Processing socket data: stop it
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Processing packet: to=sess-man@192.168.0.152, from=c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728, data=stop it, XMLNS=null
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Packet is processing by: sess-man@192.168.0.152
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: Received packet: to=sess-man@192.168.0.152, from=c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728, data=stop it, XMLNS=null
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: processing packet: to=sess-man@192.168.0.152, from=c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728, data=stop it, XMLNS=nullconnectionID: c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728
2009-05-14 21:42:11 PacketFilter.preprocess() FINEST: Setting correct from attribute: srrr@192.168.0.152/Gajim
2009-05-14 21:42:11 PacketFilter.process() FINEST: Processing packet: to=sess-man@192.168.0.152, from=c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728, data=stop it, XMLNS=null
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: Packet processed by: [filter-process]
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Processing packet: to=null, from=null, data=stop it, XMLNS=null
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Packet processed by: s2s@192.168.0.152
2009-05-14 21:42:11 ServerConnectionManager.processPacket() FINEST: Processing packet: to=null, from=null, data=stop it, XMLNS=null
2009-05-14 21:42:11 ServerConnectionManager.processPacket() FINEST: Connection ID is: 192.168.0.152@rer
2009-05-14 21:42:11 ServerConnectionManager.processPacket() FINEST: Couldn't send packet, creating a new connection.
2009-05-14 21:42:11 ServerConnectionManager.openNewServerConnection() INFO: UnknownHostException for host: rer
2009-05-14 21:42:11 ServerConnectionManager.createServerConnection() FINEST: Couldn't open a new s2s service: (UknownHost??) 192.168.0.152@rer
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Processing packet: to=srrr@192.168.0.152/Gajim, from=rer, data=stop itS2S - destination host not found, XMLNS=null
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Packet processed by: sess-man@192.168.0.152
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: Received packet: to=srrr@192.168.0.152/Gajim, from=rer, data=stop itS2S - destination host not found, XMLNS=null
2009-05-14 21:42:11 SessionManager.getXMPPResourceConnection() FINEST: Searching for resource connection for: srrr@192.168.0.152/Gajim
2009-05-14 21:42:11 SessionManager.getResourceConnection() FINEST: Session not null, getting resource for jid: srrr@192.168.0.152/Gajim
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: processing packet: to=sess-man@192.168.0.152, from=rer, data=stop itS2S - destination host not found, XMLNS=nullconnectionID: c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728
2009-05-14 21:42:11 PacketFilter.process() FINEST: Processing packet: to=sess-man@192.168.0.152, from=rer, data=stop itS2S - destination host not found, XMLNS=null
2009-05-14 21:42:11 PacketFilter.process() FINEST: Yes, this is packet to 'this' client: srrr@192.168.0.152
2009-05-14 21:42:11 PacketFilter.process() FINEST: Setting to: c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728
2009-05-14 21:42:11 SessionManager.processPacket() FINEST: Packet processed by: [filter-process]
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Processing packet: to=c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728, from=sess-man@192.168.0.152, data=stop itS2S - destination host not found, XMLNS=null
2009-05-14 21:42:11 MessageRouter.processPacket() FINEST: Packet is processing by: c2s@192.168.0.152
2009-05-14 21:42:11 ClientConnectionManager.processPacket() FINER: Processing packet: message, type: error
2009-05-14 21:42:11 ClientConnectionManager.processPacket() FINEST: Processing packet: stop itS2S - destination host not found
2009-05-14 21:42:11 ConnectionManager.writePacketToSocket() FINER: Processing packet: message, type: error
2009-05-14 21:42:11 ConnectionManager.writePacketToSocket() FINEST: Writing packet to: c2s@192.168.0.152/192.168.0.152_5222_192.168.0.152_39728
2009-05-14 21:43:00 ServerConnectionManager$ConnectionWatchdogTask.run() FINEST: Connecting timeout expired: 192.168.0.152@proxy.netlab.cz, connection state is: NULL
2009-05-14 21:43:01 ServerConnectionManager$ConnectionWatchdogTask.run() FINEST: Connecting timeout expired: 192.168.0.152@transfer.jabber.freenet.de, connection state is: NULL

Thanks,
vi

Hi, Thanks for your reply. I

Hi,

Thanks for your reply.

I got it working finally.

Actually I was not giving the username@domain.com, rather I was trying to initiate a chat with only the username. That was the problem. Everything is working fine now. Am able to chat on the local machine and the local network which I wanted to start with.

Thanks for pointing out the connections happening to the external servers. I will reconfigure the server more properly without them or as required.

Thanks,
-vi

Artur Hefczyc's picture

This normally happens if

This normally happens if your networking is not configured properly.
Please check what returns command: 'hostname' on your machine and also if this hostname can be correctly resolved to the IP address. 'ping `hostname`'.

For networking software like this correct network and DNS configuration is critical to work correctly.

Also virtual host you use has to be correct DNS name too.

And the last thing. From the log file I can also see that your server tries to connect to external services: proxy.netlab.cz and transfer.jabber.freenet.de. This is not possible unless your server is available via public IP address on the internet and it's DNS name is a public DNS name on the internet.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.