# Elasticsearch refuses to start

**URL:** <https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108>\
**Category:** Elasticsearch\
**Created:** [December 26, 2019, 7:36pm UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108 "2019-12-26T19:36:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [December 26, 2019, 7:36pm UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108/1 "2019-12-26T19:36:09Z")

</div>

ES refuses to start.

What is wrong with this config?

```
    path.data: /d02/elastic/data
    #
    # Path to log files:
    #
    path.logs: /d02/elastic/logs
    #
    path.work: /d02/elastic/data/work
    #
    path.conf: /etc/elasticsearch
    # ----------------------------------- Memory -----------------------------------
    #
    # Lock the memory on startup:
    #

bootstrap.system_call_filter: false

bootstrap.memory_lock: true

network.host: "xx.xx.xxx.xx"
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# #
discovery.type: single-node

index.codec: best_compression

#
xpack.security.enabled: true

xpack.security.authc.accept_default_password: false

#
xpack.security.authc:
  realms:
    file:
      type: file
      order: 0

    native:
      type: native
      order: 1
    authentication.enabled: true/>
```

---

<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 27, 2019, 1:41am UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108/2 "2019-12-27T01:41:20Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

---

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [December 27, 2019, 5:52am UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108/3 "2019-12-27T05:52:14Z")

</div>

Done

---

<div class="post-metadata">

**Author:** ![krokodil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krokodil/32/45616_2.png) [@krokodil](https://discuss.elastic.co/u/krokodil)\
**Post date:** [December 27, 2019, 2:45pm UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108/4 "2019-12-27T14:45:18Z")

</div>

Please paste your elasticsearch logs here so it makes it easier to debug...

---

<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 25, 2020, 6:33am UTC](https://discuss.elastic.co/t/elasticsearch-refuses-to-start/213108/6 "2020-01-25T06:33:33Z")

</div>

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