Unhandled rejection [security_exception] missing authentication token for REST request [/_xpack], with { header={ WWW-Authenticate="Basic realm="security" charset="UTF-8"" } } :: {"path":"/_xpac
at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:295:15)
at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:254:7)
at HttpConnector. (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:159:7)
at IncomingMessage.bound (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/dist/lodash.js:729:21)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
I changed users passwords again, as I had to reinstall x-packs in every cluster node, and reinstall kibana itself.
Maybe try clearing your browser history and cookies, and then load Monitoring by click the icon in the side bar.
The security_exception message looks pretty odd. Do you have the username and password for the Kibana user configured in kibana.yml? See elasticsearch.username and elasticsearch.password in https://www.elastic.co/guide/en/kibana/5.2/settings.html
Yes, double checked kibana user/pwd in kibana.yml, verified users have the needed roles and cleared browser history. No luck so far
Still giving "missing authentication token for REST request", even though users, roles, passwords are all in place. What gives? Is there any way to debug this?
You say you "reinstalled Kibana" after changing the passwords, but have you restarted Kibana after changing the password in the kibana.yml?
You can try stopping Kibana and they should stop. Then try navigating to http://localhost:9200/_xpack in a browser (replacing the URL for whatever URL Elasticsearch listens on), and try the username and password that you provided in the kibana.yml. You should see something like:
Going back to this question, I'm still not entirely sure, but I was hoping we could figure out the authentication errors in the logs first. But note there were changes to the data schema from 5.4 to 5.5. Backwards compatibility should be maintained, but if you are having issues, you could try deleting the old monitoring data.
Unfortunately I cannot go through monitoring tab in kibana page, who gives always that "Monitoring: Error 404 Not Found: undefined" message.
Of course now the version is 5.5.1 and Build: 15405, but the message is still there.
In kibana.log message I see a repetitive message telling me that "License information could not be obtained from Elasticsearch. [security_exception] missing authentication token for REST request", even though I double checked kibana.yml settings and verified (I guess) user and role info in kibana.
What now? How can I further debug this? Is it really a licensing problem?
Do you happen to have a dedicated monitoring cluster configured in kibana.yml? That is, are you using the xpack.monitoring.elasticsearch.url setting?
If you are, make sure those settings are correct. If the dedicated monitoring cluster requires authorization, then you need to have xpack.monitoring.elasticsearch.username and xpack.monitoring.elasticsearch.password set as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.