# Elasticsearch status failed (code=exited, status=78)

**URL:** <https://discuss.elastic.co/t/elasticsearch-status-failed-code-exited-status-78/182934>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-status-failed-code-exited-status-78/182934 "2019-05-27T14:42:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aytekin\_Done](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aytekin_done/32/46906_2.png) [@Aytekin\_Done](https://discuss.elastic.co/u/Aytekin_Done)\
**Post date:** [May 27, 2019, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-status-failed-code-exited-status-78/182934/1 "2019-05-27T14:42:51Z")

</div>

hi all,  
After i changed elasticsearch.yml , i get this error.

`Preformatted text`● elasticsearch.service - Elasticsearch  
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Mon 2019-05-27 14:16:05 UTC; 12min ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Process: 29643 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID\_DIR}/elasticsearch.pid --quiet (code=exited, status=78)  
Main PID: 29643 (code=exited, status=78)

May 27 14:15:58 dslog systemd[1]: Started Elasticsearch.  
May 27 14:15:59 dslog elasticsearch[29643]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
May 27 14:16:05 dslog systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG  
May 27 14:16:05 dslog systemd[1]: elasticsearch.service: Failed with result 'exit-code'.  
indent preformatted text by 4 spaces

this is content of my elasticsearch.yml file

```
indent preformatted text by 4 spaces

```

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

#node.name: node-1

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1

# 

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

path.data: /var/lib/elasticsearch

# 

# Path to log files:

# 

path.logs: /var/log/elasticsearch

# 

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

network.host: 0.0.0.0

# 

# Set a custom port for HTTP:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when this node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

#discovery.seed\_hosts: ["host1", "host2"]

# 

# Bootstrap the cluster using an initial set of master-eligible nodes:

# 

#cluster.initial\_master\_nodes: ["node-1", "node-2"]

# 

# For more information, consult the discovery and cluster formation module documentation.

# 

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

```
indent preformatted text by 4 spaces

```

Any idea?

---

<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:** [June 24, 2019, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-status-failed-code-exited-status-78/182934/2 "2019-06-24T14:42:51Z")

</div>

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