# Snapshot Failure

**URL:** <https://discuss.elastic.co/t/snapshot-failure/66895>\
**Category:** Elasticsearch\
**Created:** [November 22, 2016, 4:51pm UTC](https://discuss.elastic.co/t/snapshot-failure/66895 "2016-11-22T16:51:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gnosis](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@Gnosis](https://discuss.elastic.co/u/Gnosis)\
**Post date:** [November 22, 2016, 4:51pm UTC](https://discuss.elastic.co/t/snapshot-failure/66895/1 "2016-11-22T16:51:29Z")

</div>

Hi all,

I'd like to make a snapshot of one index from my three node cluster.  
Each node is on a different computer.  
Each node has the same conf and the same path.repo.  
Each path to the repo is 777 (i know it's bad, one thing at a time) .

I've created my repo on the master node with :

> curl -XPUT '[http://localhost:9200/\_snapshot/bckup?pretty](http://localhost:9200/_snapshot/bckup?pretty)' -d '{  
> "type": "fs",  
> "settings": {  
> "location": "/pfic/elasticsearch/repo/bckup",  
> "compress": true  
> }  
> }'

Here i have the error :

> {  
> "error" : {  
> "root\_cause" : [ {  
> "type" : "repository\_exception",  
> "reason" : "[bckup] failed to create repository"  
> } ],  
> "type" : "repository\_exception",  
> "reason" : "[bckup] failed to create repository",  
> "caused\_by" : {  
> "type" : "creation\_exception",  
> "reason" : "Guice creation errors:\n\n1) Error injecting constructor, java.nio.file.FileSystemException: /pfic/elasticsearch/repo/bckup: No space left on device\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" : "file\_system\_exception",  
> "reason" : "/pfic/elasticsearch/repo/bckup: No space left on device"  
> }  
> }  
> },  
> "status" : 500  
> }

And i've tried to snapshot an index

> curl -XPUT '[http://localhost:9200/\_snapshot/bckup/snapshot2?wait\_for\_completion=true](http://localhost:9200/_snapshot/bckup/snapshot2?wait_for_completion=true)  
> {  
> "indices": "idx\_test",  
> "ignore\_unavailable": "true",  
> "include\_global\_state": false  
> }'

Here i have the error :

> 

> "indices": "idx\_mys\_bad\_pmmqrmys-2016.04.29" --\>   
> --_curl_--[http://localhost:9200/\_snapshot/bckup/snapshot2?pretty&wait\_for\_completion=true](http://localhost:9200/_snapshot/bckup/snapshot2?pretty&wait_for_completion=true)

> "indices": "idx\_mys\_bad\_pmmqrmys-2016.04.29"  
> {  
> "error" : {  
> "root\_cause" : [ {  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> } ],  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> },  
> "status" : 404  
> }

> 

> "ignore\_unavailable": "true" --\>   
> --_curl_--[http://localhost:9200/\_snapshot/bckup/snapshot2?pretty&wait\_for\_completion=true](http://localhost:9200/_snapshot/bckup/snapshot2?pretty&wait_for_completion=true)

> "ignore\_unavailable": "true"  
> {  
> "error" : {  
> "root\_cause" : [ {  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> } ],  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> },  
> "status" : 404  
> }

> 

> "include\_global\_state": false  
> --\>   
> --_curl_--[http://localhost:9200/\_snapshot/bckup/snapshot2?pretty&wait\_for\_completion=true](http://localhost:9200/_snapshot/bckup/snapshot2?pretty&wait_for_completion=true)

> "include\_global\_state": false

> {  
> "error" : {  
> "root\_cause" : [ {  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> } ],  
> "type" : "repository\_missing\_exception",  
> "reason" : "[bckup] missing"  
> },  
> "status" : 404  
> }

Someone could help me ?

Do i have to make the repo on each node ? something else ?

Thx all.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [November 22, 2016, 8:28pm UTC](https://discuss.elastic.co/t/snapshot-failure/66895/2 "2016-11-22T20:28:02Z")

</div>

The repo _must_ be a shared filesystem that is accessible by all master and data nodes. That generally implies NFS in the Linux world.

It is not enough to have similar filesystem paths on separate machines. This is because shards and segments move around, and at snapshot time, any given node must be able to ensure that a segment is not being replicated needlessly, hence the need for a shared filesystem.

---

<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:** [December 20, 2016, 8:28pm UTC](https://discuss.elastic.co/t/snapshot-failure/66895/3 "2016-12-20T20:28:41Z")

</div>

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