Unable to login Web Client

Balakumar M
Added about 3 years ago

We are unable to login to web client with BOSH URL, getting below error. Please advise.

Login :



ws://[public ip]:5290/bosh

Error :

WebSocket connection to 'ws://ws//ip-172-30-1-73.ap-southeast-1.compute.internal:5290/:5290/bosh' failed: Connection closed before receiving a handshake response

Config in :

--comp-name-6 = http

--comp-class-6 = tigase.http.HttpMessageReceiver



Note: We have two nodes configured as cluster. We are able to login node 1 bosh URL, only above error appears when we try to login node 2. And the private ip in the above error points to node 1. Our set up is in AWS Redhat Instance.

Replies (3)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

I found an error in handling see-other-host by web client code which resulted in generation of bad URI used later to connect to Tigase XMPP Server.

This fixes issue with bad URI, however I think you have other issue here as well. While you connect to Tigase XMPP Server it uses see-other-host strategy and feature to redirect you to node of cluster which should be used for user which tries to connect. This feature is very useful to keep all user sessions connected to same cluster node, however it uses name of cluster node - hostname of server. This is generally good but in your case this name is name in internal network so it is not accessible from outside and this name is part of URI sent to XMPP client which will be used to connect to other cluster node.

I would suggest to check in our documentation how you can configure see-other-host feature and maybe you should disable it in your case. Other solution would be to change hostname of servers to match external/public names of servers.

Added by Balakumar M about 3 years ago

Hi, Thanks for your reply. Where can I find the fix for error in handling see-other-host by web client code?

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

Fixed build of web client is part of Tigase XMPP Server 7.1.0-SNAPSHOT builds, so you can use it by updating installation to newer build of Tigase XMPP Server 7.1.0-SNAPSHOT