Hello! @sscarduzio
We are using readonlyrest Enterprise
We have an environment with two kibana instances (7.6.2 version for Kibana and 1.19 for ROR). When only one instance is running, everything is OK. But when both are running, an error occurs and the Kibana interface is inaccessible. We are wondering if it is related to Readonlyrest.
On the other hand, we have in another environment 2 instances of Kibana (7.15.1 version for Kibana and 1.37 for ROR). Both of them are running and everything seems to work well, but we are not sure if the load is correctly balanced to the two instances.
Another concern : does ROR plays a major role when it comes to configure load balancing using a VIP? Then, what would be the config to set in ROR?
In order for ROR kibana to work in with load balancer, it’s important that readonlyrest_kbn.cookiePass is set and has the same value in the kibana.yml of both the kibana instances. Plus, you need kibana sessions to be saved in elasticsearch index.
I invite you to read the paragraph we have in the docs dedicated to load balancing.
When I deleted the .readonlyrest_kbn_sessions` index and restarted both nodes, it works well. However, When I log out and try to log in again, I get the same message :
Then when hitting " clear your session" twice or three or four time, it works. How could we definitely get rid of this message? It might become really boring for users.
That “unexpected token” happens when Kibana tries to parse as JSON a response that ROR has rejected. Try to reproduce it with Chrome, while you leave open Chrome dev tools on the network tab. You will see what request is failing. Then right click the request, screenshot it and/or copy as HAR and please show it to us.