# Error while creating snapshot

**URL:** <https://discuss.elastic.co/t/error-while-creating-snapshot/97646>\
**Category:** Elasticsearch\
**Created:** [August 19, 2017, 3:19am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot/97646 "2017-08-19T03:19:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sripathi\_kammari](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sripathi\_kammari](https://discuss.elastic.co/u/sripathi_kammari)\
**Post date:** [August 19, 2017, 3:19am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot/97646/1 "2017-08-19T03:19:07Z")

</div>

I found following error while creating snopshot using URL : [http://192.168.33.10/\_snapshot/temp](http://192.168.33.10/_snapshot/temp)

> {"error":"RepositoryException[[temp] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.common.blobstore.BlobStoreException: Failed to create directory at [backup]\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]; nested: BlobStoreException[Failed to create directory at [backup]]; ","status":500}

Could you please someone look into this and help me

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 19, 2017, 1:28pm UTC](https://discuss.elastic.co/t/error-while-creating-snapshot/97646/2 "2017-08-19T13:28:24Z")

</div>

can you share the Elasticsearch and JVM version, as well as the exception in your log files.

In addition please also show the response of your snapshot operation with the `error_trace=true` parameters and add the full JSON response here.

Thanks.

---

<div class="post-metadata">

**Author:** ![sripathi\_kammari](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sripathi\_kammari](https://discuss.elastic.co/u/sripathi_kammari)\
**Post date:** [September 2, 2017, 10:09am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot/97646/3 "2017-09-02T10:09:30Z")

</div>

Thank for the reply @spinscale

I could resolve this issue by setting up ownership to backup directory  
**chown -R elasticsearch:elasticsearch $BACKUP\_DIR**

---

<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:** [September 30, 2017, 10:09am UTC](https://discuss.elastic.co/t/error-while-creating-snapshot/97646/4 "2017-09-30T10:09:33Z")

</div>

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