Getting "Login is currently disabled because the license could not be determined." in Kibana

Hi,

I have installed Elasticsearch and Kibana along with X-Pack. Everything was working fine until I change the default password in Kibana. All of a sudden, "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." this message came and not able to access Kibana.
I have tried restarting Kibana, Elasticsearch and even the server but of no luck.
I'm using 5.6.3 version of ELK and X-Pack.

Please find the Kibana status below.

Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/kibana/assets/discover.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":5,"contentLength":9},"message":"GET /plugins/kibana/assets/discover.svg 200 5ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/kibana/assets/visualize.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":1,"contentLength":9},"message":"GET /plugins/kibana/assets/visualize.svg 200 1ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/kibana/assets/dashboard.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":2,"contentLength":9},"message":"GET /plugins/kibana/assets/dashboard.svg 200 2ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/timelion/icon.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":2,"contentLength":9},"message":"GET /plugins/timelion/icon.svg 200 2ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/kibana/assets/wrench.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":1,"contentLength":9},"message":"GET /plugins/kibana/assets/wrench.svg 200 1ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/monitoring/icons/monitoring.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":2,"contentLength":9},"message":"GET /plugins/monitoring/icons/monitoring.svg 200 2ms - 9.0B"}
Oct 26 19:18:18 elk01 kibana[690]: {"type":"response","@timestamp":"2017-10-26T11:18:18Z","tags":[],"pid":690,"method":"get","statusCode":200,"req":{"url":"/plugins/kibana/assets/settings.svg","method":"get","headers":{"host":"126.25.39.25:5601","user-agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0","accept":"*/*","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"http://126.25.39.25:5601/login?next=%2F","cache-control":"max-age=0","connection":"Keep-Alive","x-bluecoat-via":"f604e77fa860b4e6"},"remoteAddress":"149.38.164.10","userAgent":"149.38.164.10","referer":"http://126.25.39.25:5601/login?next=%2F"},"res":{"statusCode":200,"responseTime":2,"contentLength":9},"message":"GET /plugins/kibana/assets/settings.svg 200 2ms - 9.0B"}
...

Please help to resolve the issue.

Thanks in advance,
Dharma Sanjay Reddy M.

Are you looking to change the Elasticsearch credentials?

There are two credentials Kibana generally uses. The built-in "kibana" user, which inherits the kibana_system role. This user is what the Kibana backend uses to manage mappings, etc. To change the default password, you can login to Kibana and goto Management > Security > Users, select the Kibana user and choose Change Password. It will also remind you to update the kibana.yml

Any users you would like to use can be added to the kibana_user role. You can continue to use the provided elastic user and change it's password. Or, create a new user and add the kibana role to it.

Hi @tylersmalley,
Thanks for the quick response.

I have changed the password for elastic user and have created few users with "kibana_user" role.
When I refreshed the page, login is blocked and it shows the message "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 have tried updating the license but it says Error 404.
Should I change anything, please let me know

Thanks,
Dharma Sanjay Reddy M.

This is because of the credentials in the kibana.yml file. You will need to update those to reflect your changes. I would recommend using the kibana user for this.

1 Like

Thanku @tylersmalley
You saved my day. I haven't updated the same in Kibna.yml file which was creating the problem.

Thanks Again,
Dharma Sanjay Reddy M.

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