# Failed to stop elasticsearch.service: Unit elasticsearch.service not loaded

**URL:** <https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 24, 2022, 3:26pm UTC](https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824 "2022-08-24T15:26:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boodle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boodle/32/86046_2.png) [@Boodle](https://discuss.elastic.co/u/Boodle)\
**Post date:** [August 24, 2022, 3:26pm UTC](https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824/1 "2022-08-24T15:26:38Z")

</div>

Following [this](https://www.elastic.co/guide/en/elastic-stack/8.0/upgrading-elasticsearch.html) to upgrade Elasticsearch. When shutting down the single node with 'sudo service elasticsearch stop' gets error: "Failed to stop elasticsearch.service: Unit elasticsearch.service not loaded."

Upgrading Elasticsearch 7.10 to 7.17 and installed it as docker compose.  
In case it is being run as Daemon, 'stop by killing as a PID'.  
How to determine PID of each node to stop.

---

<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:** [August 24, 2022, 3:26pm UTC](https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824/2 "2022-08-24T15:26:39Z")

</div>

Elasticsearch 7.10 is [EOL](https://www.elastic.co/support/eol) and no longer supported. Please upgrade ASAP.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 24, 2022, 10:21pm UTC](https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824/3 "2022-08-24T22:21:35Z")

</div>

What do the Elasticsearch logs show?

---

<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:** [September 21, 2022, 10:22pm UTC](https://discuss.elastic.co/t/failed-to-stop-elasticsearch-service-unit-elasticsearch-service-not-loaded/312824/4 "2022-09-21T22:22:23Z")

</div>

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