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

**URL:** <https://discuss.elastic.co/t/location-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/182061>\
**Category:** Elasticsearch\
**Created:** [May 21, 2019, 4:17pm UTC](https://discuss.elastic.co/t/location-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/182061 "2019-05-21T16:17:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hanneu](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hanneu](https://discuss.elastic.co/u/Hanneu)\
**Post date:** [May 21, 2019, 4:17pm UTC](https://discuss.elastic.co/t/location-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/182061/1 "2019-05-21T16:17:55Z")

</div>

Hi,  
I am trying to create snapshot and hence I set path.repo as /data/backup-5.6.3-prod-052019 in elasticsearch.yml configuration. While running below command to create snapshot  
PUT /\_snapshot/my\_backup  
{  
"type" : "fs",  
"settings":  
{  
"location": "/data/backup-5.6.3-prod-052019",  
"compress": true  
}  
}

gives this error message:-{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_exception",  
"reason": "[my\_backup] location [/data/backup-5.6.3-prod-052019] 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 [/data/backup-5.6.3-prod-052019] doesn't match any of the locations specified by path.repo because this setting is empty"  
}  
},  
"status": 500  
}

Attached is elasticsearch.yml and elasticsearch logs. Any help is greatly appreciated.

---

<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:** [June 18, 2019, 4:18pm UTC](https://discuss.elastic.co/t/location-doesnt-match-any-of-the-locations-specified-by-path-repo-because-this-setting-is-empty/182061/2 "2019-06-18T16:18:05Z")

</div>

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