# Kibana 6 Login is currently disabled

**URL:** https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675
**Category:** Kibana
**Created:** [November 15, 2017, 7:15am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675 "2017-11-15T07:15:30Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Zeeshan\_Alam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeeshan_alam/32/94298_2.png) [@Zeeshan\_Alam](https://discuss.elastic.co/u/Zeeshan_Alam)
#### Post date: [November 15, 2017, 7:15am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/1 "2017-11-15T07:15:30Z")

</div>

I am trying elastic 6 and elastic is running fine. But Kibana Login page is disabled. I didn't found anything in the kibana logs to resolve this issue.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bb74d47376fabc681f2af49526530f4c545a2edc.png)

My Kibana config:

```
 server.port: 5601
 server.host: myhost
 server.maxPayloadBytes: 10485760
 elasticsearch.url: http://myhost:9200
 elasticsearch.requestTimeout: 180000
 kibana.index: .kibana
 logging.dest: /apps/elk/logs/kibana.log
 elasticsearch.password: <password for user kibana>
 xpack.security.encryptionKey: 1b4bd002872bffba4cec94bea6000537
 xpack.security.sessionTimeout: 600000

```

/\_cluster/health?pretty

```
{
  "cluster_name" : "ei-elk6",
  "status" : "yellow",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 6,
  "active_shards" : 6,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 5,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 54.54545454545454
}
```

---

<div class="post-metadata">

### Author: ![discostur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/discostur/32/58501_2.png) [@discostur](https://discuss.elastic.co/u/discostur)
#### Post date: [November 15, 2017, 10:43pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/2 "2017-11-15T22:43:02Z")

</div>

Having exact the same problem ... any solution here?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 16, 2017, 12:16am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/3 "2017-11-16T00:16:22Z")

</div>

> [@Zeeshan\_Alam](#):
>
> I didn't found anything in the kibana logs to resolve this issue.

Can you provide whatever logs you do have?  
That's the most useful information.

My guess is that Kibana cannot connect to the ES cluster.  
Are you running X-Pack with security enabled? If so, did you set a password for the `kibana` user, and add it to `kibana.yml`?  
See: [Setting Up User Authentication | X-Pack for the Elastic Stack [6.0] | Elastic](https://www.elastic.co/guide/en/x-pack/6.0/setting-up-authentication.html#set-built-in-user-passwords)

---

<div class="post-metadata">

### Author: ![discostur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/discostur/32/58501_2.png) [@discostur](https://discuss.elastic.co/u/discostur)
#### Post date: [November 16, 2017, 7:57am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/4 "2017-11-16T07:57:09Z")

</div>

Setting xpack.security.enabled: false in elasticsearch.yml and kibana.yml fixed it temporarily for me

---

<div class="post-metadata">

### Author: ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)
#### Post date: [November 19, 2017, 9:29am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/5 "2017-11-19T09:29:19Z")

</div>

Hi Zeeshan,

Please check if configuring `elasticsearch.username` in `kibana.yml` fixes the issue for you. Previous kibana versions would still enable the login screen if this wasn't configured, but with the new requirement to set your own elasticsearch passwords, it appears to be necessary to configure this setting explicitly now.

---

<div class="post-metadata">

### Author: ![Colin\_Leavett-Brown](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Colin\_Leavett-Brown](https://discuss.elastic.co/u/Colin_Leavett-Brown)
#### Post date: [November 20, 2017, 9:43pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/6 "2017-11-20T21:43:04Z")

</div>

I am having the same issue. Installed elk 6.0 from the yum repository on Centos7. With no User Authentication, cluster worked fine. Added user authentication by using the "/usr/share/xxx/bin/xxx-plugin install x-pack" (where "xxx" is elasticsearch (e), kibana (k), or logstash (l)) utilities to add x-pack on each of the components. Then spawned "/usr/share/elasticsearch/bin/x-pack/setup-passwords interactive' from an expect script to set specific passwords for e, l, k. The /etc/kibana/kibana.yaml contains:

- elasticsearch.username: "kibana"
- elasticsearch.password: "xxxx"  
and /etc/logstash.logstash.yml contains:
- cloud.auth: logstash:yyyyy  
The kibana URL now displays "Login is currently disabled. Administrators should consult the Kibana logs for more details.".

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [November 21, 2017, 2:19am UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/7 "2017-11-21T02:19:03Z")

</div>

> [@Colin\_Leavett-Brown](#):
>
> The kibana URL now displays "Login is currently disabled. Administrators should consult the Kibana logs for more details.".

Please check the Kibana logs.  
If you need help analysing them, then please post the content of those logs.

This is an issue with Kibana connecting to Elasticsearch, the only way to make progress on it, is to see the log files.

---

<div class="post-metadata">

### Author: ![Colin\_Leavett-Brown](https://avatars.discourse-cdn.com/v4/letter/c/7ba0ec/32.png) [@Colin\_Leavett-Brown](https://discuss.elastic.co/u/Colin_Leavett-Brown)
#### Post date: [November 21, 2017, 3:57pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/8 "2017-11-21T15:57:27Z")

</div>

Thanks Tim. I have it working now (manual intervention). I am using Ansible to install the server, and just prior to running "/usr/share/elasticsearch/bin/x-pack/setup-passwords interactive" in the expect script, all three elk services are restarted. The log from the expect script shows "ERROR: Failed to connect to elasticsearch at [http://10.200.200.225:9200/\_xpack/security/\_authenticate?pretty](http://10.200.200.225:9200/_xpack/security/_authenticate?pretty). Is the URL correct and elasticsearch running?". I suspect elasticsearch is still initializing and so I have placed a wait\_for before the invocation of the expect script and, though i haven't tested a complete re-install, I'm sure this will solve the problem.

---

<div class="post-metadata">

### Author: ![Pratiksha\_Tewary](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Pratiksha\_Tewary](https://discuss.elastic.co/u/Pratiksha_Tewary)
#### Post date: [November 28, 2017, 7:32pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/9 "2017-11-28T19:32:24Z")

</div>

This worked for me. Thanks!

---

<div class="post-metadata">

### Author: ![Francesca\_P](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Francesca\_P](https://discuss.elastic.co/u/Francesca_P)
#### Post date: [December 16, 2017, 4:51pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/10 "2017-12-16T16:51:57Z")

</div>

Hi,  
I have the same problem.  
After installing x-pack I get the same log message repeatedly and the login form is disabled.

```
  log [16:48:48.147] [warning][license][xpack] License information from the X-
Pack plugin could not be obtained from Elasticsearch for the [data] cluster. [se
curity_exception] missing authentication token for REST request [/_xpack], with
{ header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } ::
{"path":"/_xpack","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"ty
pe\":\"security_exception\",\"reason\":\"missing authentication token for REST r
equest [/_xpack]\",\"header\":{\"WWW-Authenticate\":\"Basic realm=\\\"security\\
\" charset=\\\"UTF-8\\\"\"}}],\"type\":\"security_exception\",\"reason\":\"missi
ng authentication token for REST request [/_xpack]\",\"header\":{\"WWW-Authentic
ate\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"}},\"status\":401}",
"wwwAuthenticateDirective":"Basic realm=\"security\" charset=\"UTF-8\""}

```

Can anyone help?  
Thanks

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 16, 2017, 8:08pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/11 "2017-12-16T20:08:53Z")

</div>

You should better open your own thread and give more details such as the version you are using.  
Also check the docs.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 13, 2018, 8:09pm UTC](https://discuss.elastic.co/t/kibana-6-login-is-currently-disabled/107675/12 "2018-01-13T20:09:08Z")

</div>

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