Unable to login Web Client
We are unable to login to web client with BOSH URL, getting below error. Please advise.
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 init.properties :
--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.
Added by Andrzej Wójcik 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.