# Path.repo not found

**URL:** <https://discuss.elastic.co/t/path-repo-not-found/25035>\
**Category:** Elasticsearch\
**Created:** [July 7, 2015, 12:19pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035 "2015-07-07T12:19:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 7, 2015, 12:19pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/1 "2015-07-07T12:19:05Z")

</div>

Hi All

I am getting the below error while creating repository on windows

CMD  
.......

POST /\_snapshot/backup1  
{  
"type": "fs",  
"settings": {  
"location": "c:\es\_backup\_folder",  
"compress": "true"  
}  
}

Entry in elasticsearch.yml  
......................................  
C:\elasticsearch-1.6.0\config\elasticsearch.yml  
path.repo: c:\es\_backup\_folder

Error  
........  
location [c:\es\_backup\_folder] doesn't match any of the locations specified by path.repo because this setting is empty

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 7, 2015, 12:36pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/2 "2015-07-07T12:36:45Z")

</div>

Replace \ with /

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 7, 2015, 12:42pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/3 "2015-07-07T12:42:29Z")

</div>

Hi David

Its not working

POST [http://localhost:9200/\_snapshot/backup](http://localhost:9200/_snapshot/backup)  
{  
"type": "fs",  
"settings": {  
"location": "c://es\_backup\_folder",  
"compress": "true"  
}  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 7, 2015, 1:13pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/4 "2015-07-07T13:13:54Z")

</div>

Don't put here c:/ and do this also in elasticsearch.yml file

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 7, 2015, 1:15pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/5 "2015-07-07T13:15:29Z")

</div>

Hi David

I am doing it on Windows, so we need to give the drive location

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 7, 2015, 1:42pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/6 "2015-07-07T13:42:53Z")

</div>

Yes. You need to define the drive if elasticsearch is running on another drive. I think it should work otherwise.

If not, try something like /c:/path/to/...

Might work.

---

<div class="post-metadata">

**Author:** ![tanveer3](https://avatars.discourse-cdn.com/v4/letter/t/ecae2f/32.png) [@tanveer3](https://discuss.elastic.co/u/tanveer3)\
**Post date:** [July 7, 2015, 2:11pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/7 "2015-07-07T14:11:42Z")

</div>

Hi David

I am sharing with you below my code.

My code  
.............  
POST \_snapshot/MyRepo  
{"type": "fs","settings": {"location": "c:\MyRepo"}}

Error  
..........  
{  
"error": "RemoteTransportException[[Bes][inet[/10.252.49.110:9300]][cluster:admin/repository/put]]; nested: RepositoryException[[MyRepo] failed to create repository]; nested: CreationException[Guice creation errors:\r\n\r\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [MyRepo] location [c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty\r\n at org.elasticsearch.repositories.fs.FsRepository.()\r\n at org.elasticsearch.repositories.fs.FsRepository\r\n at Key[type=org.elasticsearch.repositories.Repository, annotation=[none]]\r\n\r\n1 error]; nested: RepositoryException[[MyRepo] location [c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty]; ",  
"status": 500  
}

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 7, 2015, 3:06pm UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/8 "2015-07-07T15:06:35Z")

</div>

> [@tanveer3](#):
>
> c:\MyRepo

I think this won't work. Also I think you did not set `path.repo` in `elasticsearch.yml` file or you did not restart your node. `[c:\MyRepo] doesn't match any of the locations specified by path.repo because this setting is empty]`

---

<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 6, 2017, 12:03am UTC](https://discuss.elastic.co/t/path-repo-not-found/25035/9 "2017-07-06T00:03:08Z")

</div>


