# Elasticsearch is restarting like a loop after I remove x-pack security

**URL:** <https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 24, 2019, 6:47am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798 "2019-09-24T06:47:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdul\_Rahuman](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Abdul\_Rahuman](https://discuss.elastic.co/u/Abdul_Rahuman)\
**Post date:** [September 24, 2019, 6:47am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798/1 "2019-09-24T06:47:22Z")

</div>

**I downloaded using docker like this and the version I'm using is 5.6.8**  
`docker run --name elasticsearch \`  
`-p 9200:9200 \`  
`-p 9300:9300 \`  
`-v /opt/esdata:/usr/share/elasticsearch/data \`  
`-e xpack.security.enabled="false" \`  
`--restart always \`  
`-d docker.elastic.co/elasticsearch/elasticsearch:5.6.8`

**source directory**  
`/opt/esdata`

**after that Elasticsearch worked for me until I remove x-pack**

**after I removed x-pack security like this**  
`docker exec -i -t elasticsearch bash`  
`elasticsearch-plugin remove x-pack`  
`exit`  
`docker restart elasticsearch`

**the error when I getting from elasticsearch logs**  
`Caused by: java.lang.IllegalArgumentException: unknown setting [xpack.security.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings`

I should remove x-pack and run elasticsearch without any issues because I don't need it anymore so please give me a solution .

Thanks .

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [September 24, 2019, 7:16am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798/2 "2019-09-24T07:16:35Z")

</div>

> [@Abdul\_Rahuman](#):
>
> **the error when I getting from elasticsearch logs**  
> `Caused by: java.lang.IllegalArgumentException: unknown setting [xpack.security.enabled]`

As the above said, now that the xpack plugin is not installed , there is no `xpack.security.enabled` configuration setting, so setting it is wrong. Remove the

```auto
-e xpack.security.enabled="false" 

```

part from your `docker run` command.

---

<div class="post-metadata">

**Author:** ![Abdul\_Rahuman](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Abdul\_Rahuman](https://discuss.elastic.co/u/Abdul_Rahuman)\
**Post date:** [September 24, 2019, 9:56am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798/3 "2019-09-24T09:56:55Z")

</div>

after now i'm getting this error  
**ERROR: [1] bootstrap checks failed**  
**[1]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]**

for that I just tried this command  
**sudo sysctl -w vm.max\_map\_count=262144**

still it's getting restart !

what should I wanna do sir ?

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [September 24, 2019, 10:10am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798/4 "2019-09-24T10:10:59Z")

</div>

> [@Abdul\_Rahuman](#):
>
> still it's getting restart !

Not sure what that means, you need to share the actual error you get.

---

<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 22, 2019, 10:19am UTC](https://discuss.elastic.co/t/elasticsearch-is-restarting-like-a-loop-after-i-remove-x-pack-security/200798/6 "2019-10-22T10:19:00Z")

</div>

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