# Repository exception - doesn't match any of the locations specified by path.repo because this setting is empty

**URL:** <https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860>\
**Category:** Elasticsearch\
**Created:** [April 10, 2017, 5:59pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860 "2017-04-10T17:59:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavithrakc](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Post date:** [April 10, 2017, 5:59pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/1 "2017-04-10T17:59:09Z")

</div>

Hello All,

I would like to setup snapshot repository for my elastic search. The elasticsearch is running as a container. I followed the same process like mentioned in document:

1. Added path

root@elasticsearch-5-elasticsearch-clients-1:/usr/share/elasticsearch# grep path.repo /etc/elasticsearch/elasticsearch.yml  
path.repo: /tmp/elastic\_backup  
root@elasticsearch-5-elasticsearch-clients-1:/usr/share/elasticsearch#

I restarted the elasticsearch.

1. Using Sense to create the repository.  
PUT /\_snapshot/my\_backup  
{  
"type": "fs",  
"settings": {  
"compress" : "true",  
"location" : "/tmp/elastic\_backup"  
}  
}

Fails with the error:

{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_exception",  
"reason": "[my\_backup] location [/tmp/elastic\_backup] doesn't match any of the locations specified by path.repo because this setting is empty"  
}  
],  
"type": "repository\_exception",  
"reason": "[my\_backup] failed to create repository",  
"caused\_by": {  
"type": "repository\_exception",  
"reason": "[my\_backup] location [/tmp/elastic\_backup] doesn't match any of the locations specified by path.repo because this setting is empty"  
}  
},  
"status": 500  
}

One question is where should be this repository location(/tmp/elastic\_backup) present? incase of elasticsearch running inside a docker container.

Any help is much appreciated.

---

<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:** [April 10, 2017, 7:12pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/2 "2017-04-10T19:12:03Z")

</div>

Set path.repo to /tmp in elasticsearch.yml and restart your node

---

<div class="post-metadata">

**Author:** ![pavithrakc](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Post date:** [April 12, 2017, 2:45pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/3 "2017-04-12T14:45:34Z")

</div>

I did that now. Still facing the same issue.

---

<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:** [April 12, 2017, 3:20pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/4 "2017-04-12T15:20:28Z")

</div>

So you did something wrong I believe. May be share your config?

---

<div class="post-metadata">

**Author:** ![pavithrakc](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Post date:** [April 13, 2017, 4:07pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/5 "2017-04-13T16:07:57Z")

</div>

Config means you need which files here?

---

<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:** [April 13, 2017, 4:52pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/6 "2017-04-13T16:52:39Z")

</div>

elasticsearch.yml

---

<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:** [May 11, 2017, 5:03pm UTC](https://discuss.elastic.co/t/repository-exception-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/81860/7 "2017-05-11T17:03:19Z")

</div>

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