# Kibana docker image fails to run with FATAL "xpack.monitoring.ui.container.elasticsearch.enabled" setting was not applied error

**URL:** <https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309>\
**Category:** Kibana\
**Created:** [September 28, 2018, 8:09am UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309 "2018-09-28T08:09:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreyas\_sangai](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@shreyas\_sangai](https://discuss.elastic.co/u/shreyas_sangai)\
**Post date:** [September 28, 2018, 8:09am UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309/1 "2018-09-28T08:09:20Z")

</div>

I am trying to run the **docker image** : [docker.elastic.co/kibana/kibana:6.2.4](http://docker.elastic.co/kibana/kibana:6.2.4)

**Command used to run :**  
docker run -d -e "xpack.monitoring.enabled=false" -e "xpack.monitoring.ui.container.elasticsearch.enabled=false" --name kibana --restart always -p 5601:5601 [docker.elastic.co/kibana/kibana:6.2.4](http://docker.elastic.co/kibana/kibana:6.2.4)

However, it fails to run and gives the following expection :  
`{"type":"log","@timestamp":"2018-09-28T08:04:05Z","tags":["fatal"],"pid":8,"message":"\"xpack.monitoring.ui.container.elasticsearch.enabled\" setting was not applied. Check for spelling errors and ensure that expected plugins are installed and enabled."}`  
`FATAL "xpack.monitoring.ui.container.elasticsearch.enabled" setting was not applied. Check for spelling errors and ensure that expected plugins are installed and enabled.`

xpack is disabled in elasticsearch container as well using the -e flag to disable xpack.

---

<div class="post-metadata">

**Author:** ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)\
**Post date:** [September 28, 2018, 1:33pm UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309/2 "2018-09-28T13:33:49Z")

</div>

If xpack is disabled, you shouldn't specify any xpack config values, as they won't be recognized.

e.g. Don't pass in `-e "xpack.monitoring.enabled=false" -e "xpack.monitoring.ui.container.elasticsearch.enabled=false"`

---

<div class="post-metadata">

**Author:** ![shreyas\_sangai](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@shreyas\_sangai](https://discuss.elastic.co/u/shreyas_sangai)\
**Post date:** [October 3, 2018, 5:35am UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309/3 "2018-10-03T05:35:04Z")

</div>

I tried this but I still get the same message.

Ran docker inspect elastic to check if xpack is actually disabled and it is. Here is the snippet :

```
  "StdinOnce": false,
            "Env": [
                "xpack.security.enabled=false",
                "PATH=/usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "ELASTIC_CONTAINER=true",
                "JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk"
            ],
```

---

<div class="post-metadata">

**Author:** ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)\
**Post date:** [October 3, 2018, 12:09pm UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309/4 "2018-10-03T12:09:03Z")

</div>

Ah. I see. x-pack is enabled, but x-pack _security_ is disabled. What version of Kibana are you running?

---

<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:** [October 31, 2018, 12:09pm UTC](https://discuss.elastic.co/t/kibana-docker-image-fails-to-run-with-fatal-xpack-monitoring-ui-container-elasticsearch-enabled-setting-was-not-applied-error/150309/5 "2018-10-31T12:09:07Z")

</div>

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