# Unable to create snapshots

**URL:** <https://discuss.elastic.co/t/unable-to-create-snapshots/82601>\
**Category:** Elasticsearch\
**Created:** [April 17, 2017, 4:38pm UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601 "2017-04-17T16:38:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzhang](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jzhang](https://discuss.elastic.co/u/jzhang)\
**Post date:** [April 17, 2017, 4:38pm UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/1 "2017-04-17T16:38:55Z")

</div>

My cluster is on elasticsearch 2.3, with 3 data nodes and 2 none data nodes, on the data nodes, I setup the NFS mount and added the data.repo to the elasticsearch.yml file. when I issue  
PUT /\_snapshot/my\_backup  
{  
"type": "fs",  
"settings": {  
"location": "/mount/esbackup/"  
}  
}  
I got following in return. I am wonder whether I should mount the NFS folder on the nodes that have no data, or is there anything else I need to check.  
Thanks for your help.

{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_exception",  
"reason": "[my\_backup] failed to create repository"  
}  
],  
"type": "repository\_exception",  
"reason": "[my\_backup] failed to create repository",  
"caused\_by": {  
"type": "creation\_exception",  
"reason": "Guice creation errors:\n\n1) Error injecting constructor, RepositoryException[[my\_backup] location [/mount/esbackup/] doesn't match any of the locations specified by path.repo]\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.fs.FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error",  
"caused\_by": {  
"type": "repository\_exception",  
"reason": "[my\_backup] location [/mount/esbackup/] doesn't match any of the locations specified by path.repo"  
}  
}  
},  
"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:** [April 17, 2017, 5:10pm UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/2 "2017-04-17T17:10:03Z")

</div>

Did you mean path.repo?

---

<div class="post-metadata">

**Author:** ![jzhang](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jzhang](https://discuss.elastic.co/u/jzhang)\
**Post date:** [April 17, 2017, 6:27pm UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/3 "2017-04-17T18:27:48Z")

</div>

yes. Sorry

---

<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 17, 2017, 6:38pm UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/4 "2017-04-17T18:38:51Z")

</div>

You need to add this on all nodes and restart your nodes.

---

<div class="post-metadata">

**Author:** ![jzhang](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jzhang](https://discuss.elastic.co/u/jzhang)\
**Post date:** [April 20, 2017, 10:00am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/5 "2017-04-20T10:00:25Z")

</div>

I added the mounting point on every node, checked the file path is accessible, added path:repo to elasticsearch.yml, also restart elasticsearch on every node with no luck. looking at the /var/log/elasticsearch/elasticsearch.log, it says the same error.  
[2017-04-20 05:52:27,041][WARN][repositories] [node-aphdp27] failed to create repository [fs][my\_backup]  
org.elasticsearch.common.inject.CreationException: Guice creation errors:

1. Error injecting constructor, RepositoryException[[my\_backup] location [/mount/esbackup/] doesn't match any of the locations specified by path.repo]  
at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)  
while locating org.elasticsearch.repositories.fs.FsRepository  
while locating org.elasticsearch.repositories.Repository

1 error  
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:360)  
at org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:178)  
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)  
at org.elasticsearch.common.inject.InjectorImpl.createChildInjector(InjectorImpl.java:157)  
...

---

<div class="post-metadata">

**Author:** ![jzhang](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jzhang](https://discuss.elastic.co/u/jzhang)\
**Post date:** [April 20, 2017, 10:13am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/6 "2017-04-20T10:13:43Z")

</div>

double check again there was a mistype in my mounting point, so repo is configured ok after the typo correction.

---

<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 18, 2017, 10:22am UTC](https://discuss.elastic.co/t/unable-to-create-snapshots/82601/7 "2017-05-18T10:22:24Z")

</div>

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