# \[Solved\] Kibana 6.8.1 unable to connect to Elastic with xpack settings disabled

**URL:** https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [June 29, 2019, 9:24pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158 "2019-06-29T21:24:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Tiago\_Cruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiago_cruz/32/49080_2.png) [@Tiago\_Cruz](https://discuss.elastic.co/u/Tiago_Cruz)
#### Post date: [June 29, 2019, 9:24pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/1 "2019-06-29T21:24:48Z")

</div>

Hello,

I did the upgrade from ELK 5.6.4 to 6.8.1.

The kibana use to work in the simple way as possible, without authentication.

The ES cluster is already running with `xpack.security.enabled: false` in `elasticsearch.yml`:

```auto
$ curl -s -XGET 'localhost:9200/_xpack' | jq .[].security
{
  "description": "Security for the Elastic Stack",
  "available": true,
  "enabled": false
}

```

But kibana says _"Cannot connect to the Elasticsearch cluster"_ by default.

If I use the config `xpack.security.enabled: false` in `kibana.yml`, I got: "_This page isn’t working localhost redirected you too many times_"

```auto
$ curl -I http://localhost:5601/ -L
HTTP/1.1 302 Found
location: /app/kibana
kbn-name: kibana
content-type: text/html; charset=utf-8
cache-control: no-cache
content-length: 0
connection: close
Date: Sat, 29 Jun 2019 21:22:28 GMT

HTTP/1.1 302 Found
location: /
kbn-name: kibana
content-type: text/html; charset=utf-8
cache-control: no-cache
content-length: 0
connection: close
Date: Sat, 29 Jun 2019 21:22:28 GMT

HTTP/1.1 302 Found
location: /app/kibana
kbn-name: kibana
content-type: text/html; charset=utf-8
cache-control: no-cache
content-length: 0
connection: close
Date: Sat, 29 Jun 2019 21:22:28 GMT
....
curl: (47) Maximum (50) redirects followed

```

This is a new installation, with new machine and new index (.kibana-testing)

Relevant logs:

```auto
"Request will be handled by proxy GET:/app/kibana."
"Verifying access to space \"default\""
"Unable to navigate to space \"default\", redirecting to Space Selector. Error: Saved object [space/default] not found"
"GET /app/kibana 302 30ms - 9.0B"
"Event is being forwarded: connection"
"Request will be handled by proxy GET:/."
"GET / 302 30ms - 9.0B"
"Event is being forwarded: connection"
"Request will be handled by proxy GET:/app/kibana."
"Verifying access to space \"default\""
"Unable to navigate to space \"default\", redirecting to Space Selector. Error: Saved object [space/default] not found"
"GET /app/kibana 302 32ms - 9.0B"
"Event is being forwarded: connection"
"Request will be handled by proxy GET:/."
"GET / 302 40ms - 9.0B"
"Event is being forwarded: connection"
"Request will be handled by proxy GET:/app/kibana."
"Verifying access to space \"default\""
"Unable to navigate to space \"default\", redirecting to Space Selector. Error: Saved object [space/default] not found"
"GET /app/kibana 302 37ms - 9.0B"
"Event is being forwarded: connection"
"Request will be handled by proxy GET:/."

```

What can we do to just use Kibana 6.8.1?  
Thanks!

---

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [June 29, 2019, 9:28pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/2 "2019-06-29T21:28:25Z")

</div>

sup @Tiago_Cruz

Change your ElasticSearch yml around and try this

```
xpack.ml.enabled: false
xpack.security.enabled: false
pack.license.self_generated.type: basic
xpack.security.authc.anonymous.roles: superuser
```

---

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [June 29, 2019, 10:00pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/3 "2019-06-29T22:00:16Z")

</div>

if you need any help I can give you my discord. Had this same issue 😃

---

<div class="post-metadata">

### Author: ![Tiago\_Cruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiago_cruz/32/49080_2.png) [@Tiago\_Cruz](https://discuss.elastic.co/u/Tiago_Cruz)
#### Post date: [June 29, 2019, 11:06pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/4 "2019-06-29T23:06:48Z")

</div>

Thanks jordan!

I believe that the correct line is `xpack.license.self_generated.type`, right?

Many thanks by your help, I do trust in you, hahahaha... But I need do schedule the cluster rolling restart to apply this change... anyway, I'll post here the result as soon as possible.

Thanks!

---

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [June 29, 2019, 11:25pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/5 "2019-06-29T23:25:55Z")

</div>

xpack.license.self\_generated.type: basic

Let me make a quick edit (it is `xpack.license.self_generated.type: basic` not `pack.license.self_generated.type: basic`)

```
xpack.ml.enabled: false
xpack.security.enabled: false
xpack.license.self_generated.type: basic
xpack.security.authc.anonymous.roles: superuser

```

Xpack will self sign a cert when you do `xpack.license.self_generated.type: basic`

I am like 90% positive of that

---

<div class="post-metadata">

### Author: ![Tiago\_Cruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiago_cruz/32/49080_2.png) [@Tiago\_Cruz](https://discuss.elastic.co/u/Tiago_Cruz)
#### Post date: [June 30, 2019, 1:28pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/6 "2019-06-30T13:28:17Z")

</div>

Thanks @iukea!

You're the guy, it worked perfectly!

```auto
[tiago.cruz@creta1 ~]$ sudo grep ^xpack /etc/elasticsearch/elasticsearch.yml
xpack.security.authc.accept_default_password: false
xpack.ml.enabled: false
xpack.license.self_generated.type: basic
xpack.security.authc.anonymous.roles: superuser
xpack.security.enabled: false

```

Many thanks!

---

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [June 30, 2019, 4:06pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/7 "2019-06-30T16:06:13Z")

</div>

woooot!!!

message me if you ever need any help 😃

---

<div class="post-metadata">

### Author: ![Ricardo\_Chaves](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ricardo_chaves/32/47247_2.png) [@Ricardo\_Chaves](https://discuss.elastic.co/u/Ricardo_Chaves)
#### Post date: [July 1, 2019, 3:12pm UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/8 "2019-07-01T15:12:37Z")

</div>

Hi Jordan, I work with Tiago, just to complement. First of all, I needed to create a license:

> curl -X POST "localhost:9200/\_license/start\_basic"

---

<div class="post-metadata">

### Author: ![iukea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iukea/32/49083_2.png) [@iukea](https://discuss.elastic.co/u/iukea)
#### Post date: [July 2, 2019, 1:35am UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/9 "2019-07-02T01:35:46Z")

</div>

ah cool thanks for the update!

---

<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: [July 30, 2019, 1:35am UTC](https://discuss.elastic.co/t/solved-kibana-6-8-1-unable-to-connect-to-elastic-with-xpack-settings-disabled/188158/10 "2019-07-30T01:35:53Z")

</div>

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