Kibana with ROR Pro version 7.4.2 is not working for Monitoring

{"type":"log","@timestamp":"2019-12-09T19:14:57Z","tags":["error","readonlyrest_kbn:onPreResponse"],"pid":23989,"message":"got an error [undefined] Service Unavailable for path /api/monitoring/v1/clusters"}
{"type":"log","@timestamp":"2019-12-09T19:14:57Z","tags":["error","readonlyrest_kbn:onPreResponse"],"pid":23989,"message":"{\"message\":\"No Living connections: Check the Elasticsearch Monitoring cluster network connection and refer to the Kibana logs for more information.\",\"isBoom\":true,\"isServer\":true,\"data\":null,\"output\":{\"statusCode\":503,\"payload\":{\"statusCode\":503,\"error\":\"Service Unavailable\",\"message\":\"No Living connections: Check the Elasticsearch Monitoring cluster network connection and refer to the Kibana logs for more information.\"},\"headers\":{\"kbn-name\":\"kibana\",\"kbn-xpack-sig\":\"c16a9aa7058720b4943f24a28e702267\"}}}"}
        {"type":"log","@timestamp":"2019-12-09T19:14:57Z","tags":["error","readonlyrest_kbn:onPreResponse"],"pid":23989,"message":"got an error [undefined] Internal Server Error for path /login"}
        {"type":"log","@timestamp":"2019-12-09T19:14:57Z","tags":["error","readonlyrest_kbn:onPreResponse"],"pid":23989,"message":"{\"stack\":\"TypeError: Cannot read property 'username' of null\\n    at username (/usr/share/kibana/plugins/readonlyrest_kbn/server/routes/lib/auth.js:123:44)\\n    at module.exports.internals.Manager.execute (/usr/share/kibana/node_modules/hapi/lib/toolkit.js:35:106)\\n    at Object.internals.handler (/usr/share/kibana/node_modules/hapi/lib/handler.js:50:48)\\n    at exports.execute (/usr/share/kibana/node_modules/hapi/lib/handler.js:35:36)\\n    at Request._lifecycle (/usr/share/kibana/node_modules/hapi/lib/request.js:263:62)\",\"message\":\"Cannot read property 'username' of null\",\"isBoom\":true,\"isServer\":true,\"data\":null,\"output\":{\"statusCode\":500,\"payload\":{\"statusCode\":500,\"error\":\"Internal Server Error\",\"message\":\"An internal server error occurred\"},\"headers\":{\"kbn-name\":\"kibana\",\"kbn-xpack-sig\":\"c16a9aa7058720b4943f24a28e702267\"}},\"isDeveloperError\":true}"}


    Can some one please help?

Hi @praveenmak!
How did you manage to get this error?

  1. Is your Elasticsearch cluster in a green state?
  2. Did you install and configure our Elasticsearch plugin?
  3. if yes, what is the content of readonlyrest.yml?
  4. What is the file name of the two plugins you installed?

@sscarduzio,

it seems like my errors (other posts) where in fact if REST return a 404, or error, there is a problem to handle the response.

Thanks for responding, I fixed by using this.

WORKING
xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: false
#xpack.monitoring.elasticsearch.hosts: “{{ kibana_elasticsearch_url }}”
#xpack.monitoring.elasticsearch.username: “{{ kibana_elasticsearch_usr }}”
#xpack.monitoring.elasticsearch.password: “{{ kibana_elasticsearch_pwd }}”
elasticsearch.hosts: “{{ kibana_elasticsearch_url }}”
elasticsearch.username: “{{ kibana_elasticsearch_usr }}”
elasticsearch.password: “{{ kibana_elasticsearch_pwd }}”

FAILED

xpack.monitoring.enabled: true
xpack.monitoring.kibana.collection.enabled: false
xpack.monitoring.elasticsearch.hosts: "{{ kibana_elasticsearch_url }}"
xpack.monitoring.elasticsearch.username: "{{ kibana_elasticsearch_usr }}"
xpack.monitoring.elasticsearch.password: "{{ kibana_elasticsearch_pwd }}"
1 Like