Cannot access Kibana with an active X-Pack license

Hi all,

I have the issue where when I try to connect to Kibana, I have the following error:

"Login is currently disabled because the license could not be determined. Please check that Elasticsearch has the X-Pack plugin installed and is reachable, then refresh this page."

I checked the license with the following command and it looks like to be correct for me:

$ curl -XGET -u elastic:mypassword 'http://localhost:9200/_xpack/license'
{
"license" : {
"status" : "active",
"uid" : "b8f7adb0-be7f-44a5-8f5b-3a2abb11b2bc",
"type" : "basic",
"issue_date" : "2017-11-16T00:00:00.000Z",
"issue_date_in_millis" : 1510790400000,
"expiry_date" : "2018-11-16T23:59:59.999Z",
"expiry_date_in_millis" : 1542412799999,
"max_nodes" : 100,
"issued_to" : "LM",
"issuer" : "Web Form",
"start_date_in_millis" : 1510790400000
}
}

I restarted the entire stack but without any success.

Here the information:

  • Elasticsearch: 5.6.3
  • X-pack installed

    $ /usr/share/elasticsearch/bin/elasticsearch-plugin list
    ingest-geoip
    x-pack

  • Kibana: 5.6.3

Do you have any idea how I could find where this problem comes from?
Thank you

Hi,

It could be that Kibana can't communicate with Elasticsearch. Can you share your Kibana logs with us? Also, please run

/usr/share/kibana/bin/kibana-plugin list

to verify that X-Pack is installed for Kibana too.

Thank you for your help.
I ran this command. Below is the result.

$/usr/share/kibana/bin/kibana-plugin list
x-pack@5.6.3

Here are the logs when I start Kibana:

Dec 12 14:05:19 elastic systemd: Stopping Kibana...
Dec 12 14:05:19 elastic systemd: Started Kibana.
Dec 12 14:05:19 elastic systemd: Starting Kibana...
Dec 12 14:05:23 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:23Z","tags":["status","plugin:kibana@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:23 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:23Z","tags":["status","plugin:elasticsearch@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:23 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:23Z","tags":["status","plugin:xpack_main@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:23 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:23Z","tags":["status","plugin:graph@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:23 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:23Z","tags":["status","plugin:monitoring@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["reporting","warning"],"pid":11325,"message":"Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:reporting@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:security@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["security","warning"],"pid":11325,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["security","warning"],"pid":11325,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:searchprofiler@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:ml@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:tilemap@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:watcher@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:grokdebugger@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:upgrade@5.6.3","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:console@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:metrics@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","plugin:timelion@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["listening","info"],"pid":11325,"message":"Server running at http://localhost:5601"}
Dec 12 14:05:24 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:24Z","tags":["status","ui settings","info"],"pid":11325,"state":"yellow","message":"Status changed from uninitialized to yellow - Elasticsearch plugin is yellow","prevState":"uninitialized","prevMsg":"uninitialized"}
Dec 12 14:05:27 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:27Z","tags":["status","plugin:ml@5.6.3","error"],"pid":11325,"state":"red","message":"Status changed from yellow to red - Request Timeout after 3000ms","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
Dec 12 14:05:27 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:27Z","tags":["status","plugin:elasticsearch@5.6.3","info"],"pid":11325,"state":"green","message":"Status changed from yellow to green - Kibana index ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
Dec 12 14:05:27 elastic kibana: {"type":"log","@timestamp":"2017-12-12T14:05:27Z","tags":["status","ui settings","info"],"pid":11325,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Elasticsearch plugin is yell

Sorry but I just noticed that you are using a Basic License. Can it be that you were using a trial x-pack license and recently moved to basic ( and that's when you started encountering this issue ) ?

As you can see, the Basic License doesn't include Security.

You can disable security by setting

xpack.security.enabled: false

in your elasticsearch.yml and kibana.yml files.

Thanks for you help again.

Strangely, I waited some time and then I was able to access to Kikana as before. I don't really understand why and how but at least I have access.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.