# Elasticsearch does not start after changing data path?

**URL:** <https://discuss.elastic.co/t/elasticsearch-does-not-start-after-changing-data-path/62107>\
**Category:** Elasticsearch\
**Created:** [October 3, 2016, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start-after-changing-data-path/62107 "2016-10-03T21:08:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)\
**Post date:** [October 3, 2016, 9:08pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start-after-changing-data-path/62107/1 "2016-10-03T21:08:46Z")

</div>

I configured Elasticsearch with Search Guard SSL and Search Guard and am able to run it correctly with the default data path setting, i.e., path.data commented out in elasticsearch.yml. The default data path is /var/lib/elasticsearch, and i see that it creates a nodes directory in there.

Now if I uncomment out the path.data line in elasticsearch.yml, set it to a new path, and restart elasticsearch, I get "search guard index not healthy yet".

If I change it back to the default, that is comment out the path.data in elasticsearch.yml, and restart elasticsearch, it works again.

The new path is owned by elasticsearch user and group.

Is there something else I need to do if I change the data path than just restarting elasticsearch?

I search the forum, and the only clue I got was file permissions, which I don't think I have problems with because I see a nodes directory created in the new path.

---

<div class="post-metadata">

**Author:** ![ZillaG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zillag/32/10505_2.png) [@ZillaG](https://discuss.elastic.co/u/ZillaG)\
**Post date:** [October 6, 2016, 5:35pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start-after-changing-data-path/62107/2 "2016-10-06T17:35:43Z")

</div>

This seems to be fixed in v2.4.1

---

<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:** [July 5, 2017, 10:14pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start-after-changing-data-path/62107/3 "2017-07-05T22:14:13Z")

</div>


