# Unable to repository for snapshot

**URL:** <https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738>\
**Category:** Elasticsearch\
**Created:** [April 10, 2017, 3:48am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738 "2017-04-10T03:48:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [April 10, 2017, 3:48am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/1 "2017-04-10T03:48:31Z")

</div>

I am using Elasticsearch 2.3.4

PUT http://:9200/\_snapshot/my-repo-1  
{  
"type": "fs",  
"settings": {  
"location": "/home/mystorage/mt",  
"compress": true  
}  
}

"reason": "[my-repo-1] location [/home/mystorage/mt] doesn't match any of the locations specified by path.repo because this setting is empty"

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 10, 2017, 3:53am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/2 "2017-04-10T03:53:46Z")

</div>

Did you add that setting to your config file as well?

---

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [April 10, 2017, 5:34am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/3 "2017-04-10T05:34:36Z")

</div>

Added

---

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [April 10, 2017, 6:45am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/4 "2017-04-10T06:45:20Z")

</div>

path.repo: ["/home/mystoreage/mt"]

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 10, 2017, 10:02am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/5 "2017-04-10T10:02:48Z")

</div>

Does it work now?

---

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [April 10, 2017, 10:29am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/6 "2017-04-10T10:29:33Z")

</div>

no. it doesn't

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 10, 2017, 10:32am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/7 "2017-04-10T10:32:13Z")

</div>

Did you restart ES?

---

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [April 11, 2017, 1:01am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/8 "2017-04-11T01:01:00Z")

</div>

Restarted ES and restarted server

---

<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 9, 2017, 1:03am UTC](https://discuss.elastic.co/t/unable-to-repository-for-snapshot/81738/9 "2017-05-09T01:03:41Z")

</div>

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