We encountered a situation where any changes, additions, or deletions of roles cause Kibana to lose connection with Elasticsearch, resulting in the "(52) Empty reply from server" error on the web interface. Only a complete restart of the Elasticsearch service helps to restore the connection.