# Starting elasticsearh.service gives : No such file or directory

**URL:** <https://discuss.elastic.co/t/starting-elasticsearh-service-gives-no-such-file-or-directory/180651>\
**Category:** Elasticsearch\
**Created:** [May 11, 2019, 1:11pm UTC](https://discuss.elastic.co/t/starting-elasticsearh-service-gives-no-such-file-or-directory/180651 "2019-05-11T13:11:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RRSR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rrsr/32/27766_2.png) [@RRSR](https://discuss.elastic.co/u/RRSR)\
**Post date:** [May 11, 2019, 1:11pm UTC](https://discuss.elastic.co/t/starting-elasticsearh-service-gives-no-such-file-or-directory/180651/1 "2019-05-11T13:11:35Z")

</div>

Hi all,

My elasticsearch instance crashed all of a sudden and when I try to restart the elasticsearh.service it gives:  
`Redirecting to /bin/systemctl status elasticsearh.service ● elasticsearh.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)`

Also the folder `/etc/elasticsearch/` is empty. But when I try to start it from the location where I downloaded the elasticsearch (`sh /elasticsearch-6.4.0/bin/elastisearch`) it starts.

Now how do I get it as a service again without losing any data & configurations?

Output of starting the elasticsearch.service:

![serive%20not%20found](https://us1.discourse-cdn.com/elastic/original/3X/1/e/1e7cc3f18983ee8823321bb901f8e80754e22ead.png)

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [May 11, 2019, 9:50pm UTC](https://discuss.elastic.co/t/starting-elasticsearh-service-gives-no-such-file-or-directory/180651/2 "2019-05-11T21:50:43Z")

</div>

How did you install Elasticsearch? You mention the systemd service, which currently is only present in the rpm or deb packages, but you also referenced starting elasticsearch via its bin/elasticsearch script. There should definitely be configuration files under /etc/elasticsearch. Is this a production or test system? If the latter, at a glance, I would say try wiping all your installations and installing fresh with a single installation source. Otherwise, please provide some more info about your installation and setup.

---

<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 8, 2019, 9:50pm UTC](https://discuss.elastic.co/t/starting-elasticsearh-service-gives-no-such-file-or-directory/180651/3 "2019-06-08T21:50:56Z")

</div>

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