# Failed to create repository

**URL:** <https://discuss.elastic.co/t/failed-to-create-repository/380705>\
**Category:** Elasticsearch\
**Created:** [August 4, 2025, 5:15am UTC](https://discuss.elastic.co/t/failed-to-create-repository/380705 "2025-08-04T05:15:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [August 8, 2025, 8:52am UTC](https://discuss.elastic.co/t/failed-to-create-repository/380705/4 "2025-08-08T08:52:25Z")

</div>

Hi @deepakraja,

Looking at the [thread](https://discuss.elastic.co/t/setting-up-snapshot-repository-what-to-set-for-path-repo/257717/2) I posted previously, you need to create the directory manually, apply the required permissions, and then set the `path.repo` option in the `elasticsearch.yml` as I stated above.

Does that make sense?

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-create-repository/380705)._
