# Kibana troubles with x-pack and infinity optimizing proccess

**URL:** https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601
**Category:** Kibana
**Created:** [January 17, 2019, 9:46am UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601 "2019-01-17T09:46:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ep4sh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ep4sh/32/40099_2.png) [@ep4sh](https://discuss.elastic.co/u/ep4sh)
#### Post date: [January 17, 2019, 9:46am UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601/1 "2019-01-17T09:46:50Z")

</div>

**ES v 6.3**  
**Kibana 6.3.1**

When i use curl - it is OK.

```
curl https://server:443
{
  "name" : "NAME",
  "cluster_name" : "868651433674:name",
  "cluster_uuid" : "UUID",
  "version" : {
    "number" : "6.3.1",
    "build_flavor" : "oss",
    "build_type" : "zip",
    "build_hash" : "e6df130",
    "build_date" : "2018-08-01T07:23:36.254471Z",
    "build_snapshot" : false,
    "lucene_version" : "7.3.1",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

```

But if i start Kibana with settings:

_sed /^#/d /etc/kibana/kibana.yml_

```
xpack.security.enabled: false
server.port: 5601
server.host: "x.x.x.x"
elasticsearch.url: "https://server:443"

```

Kibana started, but hangs up with (i wait **few** hours, but no changes):  
**"Optimizing and caching bundles for kibana"**

If i comment the line with  
#xpack.security.enabled: false

i **cant** login with kibana:

 ![err](https://us1.discourse-cdn.com/elastic/original/3X/9/8/9846a32a80be21b3c5bcee94a288c887b066aec1.jpeg)

**logs:**

`Jan 17 09:41:02 ip-X.X.X.X kibana: {"type":"log","@timestamp":"2019-01-17T09:41:02Z","tags":["license","warning","xpack"],"pid":31498,"message":"License information from the X-Pack plugin could not be obtained from Elasticsearch for the [data] cluster. Authentication Exception :: {\"path\":\"/_xpack\",\"statusCode\":401,\"response\":\"{\\\"Message\\\":\\\"Your request: '/_xpack' is not allowed.\\\"}\"}"}`

Please, could you tell me, how to login ? 🙂

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [January 21, 2019, 8:41pm UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601/2 "2019-01-21T20:41:52Z")

</div>

> [@ep4sh](#):
>
> **ES v 6.3**  
> **Kibana 6.3.1**

Hello,

I tried to do exactly the same as your config in my local and I got stuck too. One of the things which is puzzling me about your config is you disabling xpack security? Why so?

Also did you generate password using bin/elasticsearch-setup-passwords interactive?

Anyways - I am going to talk to our ops team and keep you posted.

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 21, 2019, 8:55pm UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601/3 "2019-01-21T20:55:35Z")

</div>

> [@ep4sh](#):
>
> "build\_flavor" : "oss",

It looks like you are trying to use the OSS distribution of Elasticsearch together with the default distribution of Kibana. I think you need to align and use the same distribution for both components.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [January 21, 2019, 9:11pm UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601/4 "2019-01-21T21:11:27Z")

</div>

Ah I missed that 🙂 Thanks Christian!

---

<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: [February 18, 2019, 9:11pm UTC](https://discuss.elastic.co/t/kibana-troubles-with-x-pack-and-infinity-optimizing-proccess/164601/5 "2019-02-18T21:11:30Z")

</div>

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