# Snapshot not listed after nodes are restarted

**URL:** <https://discuss.elastic.co/t/snapshot-not-listed-after-nodes-are-restarted/17240>\
**Category:** Elasticsearch\
**Created:** [April 28, 2014, 4:03pm UTC](https://discuss.elastic.co/t/snapshot-not-listed-after-nodes-are-restarted/17240 "2014-04-28T16:03:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasitha](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@Hasitha](https://discuss.elastic.co/u/Hasitha)\
**Post date:** [April 28, 2014, 4:03pm UTC](https://discuss.elastic.co/t/snapshot-not-listed-after-nodes-are-restarted/17240/1 "2014-04-28T16:03:04Z")

</div>

Hi

I've a 5 node cluster ( all master and data). I took a snaphot with 9GB  
worth of data. I had to restart all the nodes due to a few issues.  
I'm now trying to restore data from that snapshot after restarting all  
nodes but the snapshots are not listed in the curl command although I see  
the physical files on the file server.

Note: At the time of snapshot, node1 was the elected master. After  
restarting, Node 3 is the elected master.

_Before restarting the nodes:_  
curl -XGET '[http://localhost:9200/\_snapshot/\_all?pretty](http://localhost:9200/_snapshot/_all?pretty)'  
{  
"device\_bkp" : {  
"type" : "fs",  
"settings" : {  
"compress" : "true",  
"location" : "/var/lib/elasticsearch/backups/device\_bkp"  
}  
}  
}

curl -XGET "localhost:9200/\_snapshot/device\_bkp/\_all?pretty"  
{  
"snapshots" : [ {  
"snapshot" : "snapshot\_9g",  
"indices" : ["device"],  
"state" : "SUCCESS",  
"start\_time" : "2014-04-28T15:37:17.112Z",  
"start\_time\_in\_millis" : 1398699437112,  
"end\_time" : "2014-04-28T15:39:05.964Z",  
"end\_time\_in\_millis" : 1398699545964,  
"duration\_in\_millis" : 108852,  
"failures" : [],  
"shards" : {  
"total" : 5,  
"failed" : 0,  
"successful" : 5  
}  
} ]  
}

_After restarting the nodes :_  
curl -XGET '[http://localhost:9200/\_snapshot/\_all?pretty](http://localhost:9200/_snapshot/_all?pretty)'  
{  
"device\_bkp" : {  
"type" : "fs",  
"settings" : {  
"compress" : "true",  
"location" : "/var/lib/elasticsearch/backups/device\_bkp"  
}  
}  
}

curl -XGET "localhost:9200/\_snapshot/device\_bkp/\_all?pretty"  
{  
"snapshots" : []  
}

As you can see above, the snapshots are not listed in the second curl  
command. I then restarted the nodes until node1 becomes the elected master  
and the snapshots are recognized.  
Unless Node 1 becomes the elected master, the snapshots are not recognized.  
Is this expected? Am I missing something here?

Thanks,  
Hasitha,.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [May 5, 2014, 10:12am UTC](https://discuss.elastic.co/t/snapshot-not-listed-after-nodes-are-restarted/17240/2 "2014-05-05T10:12:53Z")

</div>

Hey,

did you make sure, that every node has access to that directory specified  
in the repository settings. This has to be a network share, where every  
node in your running cluster is allowed to write to.

--Alex

On Mon, Apr 28, 2014 at 6:03 PM, Hasitha [hasitha.rg@gmail.com](mailto:hasitha.rg@gmail.com) wrote:

> Hi
> 
> I've a 5 node cluster ( all master and data). I took a snaphot with 9GB  
> worth of data. I had to restart all the nodes due to a few issues.  
> I'm now trying to restore data from that snapshot after restarting all  
> nodes but the snapshots are not listed in the curl command although I see  
> the physical files on the file server.
> 
> Note: At the time of snapshot, node1 was the elected master. After  
> restarting, Node 3 is the elected master.
> 
> _Before restarting the nodes:_  
> curl -XGET '[http://localhost:9200/\_snapshot/\_all?pretty](http://localhost:9200/_snapshot/_all?pretty)'  
> {  
> "device\_bkp" : {  
> "type" : "fs",  
> "settings" : {  
> "compress" : "true",  
> "location" : "/var/lib/elasticsearch/backups/device\_bkp"  
> }  
> }  
> }
> 
> curl -XGET "localhost:9200/\_snapshot/device\_bkp/\_all?pretty"  
> {  
> "snapshots" : [ {  
> "snapshot" : "snapshot\_9g",  
> "indices" : ["device"],  
> "state" : "SUCCESS",  
> "start\_time" : "2014-04-28T15:37:17.112Z",  
> "start\_time\_in\_millis" : 1398699437112,  
> "end\_time" : "2014-04-28T15:39:05.964Z",  
> "end\_time\_in\_millis" : 1398699545964,  
> "duration\_in\_millis" : 108852,  
> "failures" : ,  
> "shards" : {  
> "total" : 5,  
> "failed" : 0,  
> "successful" : 5  
> }  
> } ]  
> }
> 
> _After restarting the nodes :_  
> curl -XGET '[http://localhost:9200/\_snapshot/\_all?pretty](http://localhost:9200/_snapshot/_all?pretty)'  
> {  
> "device\_bkp" : {  
> "type" : "fs",  
> "settings" : {  
> "compress" : "true",  
> "location" : "/var/lib/elasticsearch/backups/device\_bkp"  
> }  
> }  
> }
> 
> curl -XGET "localhost:9200/\_snapshot/device\_bkp/\_all?pretty"  
> {  
> "snapshots" :   
> }
> 
> As you can see above, the snapshots are not listed in the second curl  
> command. I then restarted the nodes until node1 becomes the elected master  
> and the snapshots are recognized.  
> Unless Node 1 becomes the elected master, the snapshots are not  
> recognized. Is this expected? Am I missing something here?
> 
> Thanks,  
> Hasitha,.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/72ca2546-c459-42fd-b46f-db95e81d7cc3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8VCpPUCdNpe38VePKbgJtg0kzMQtR3hb2EY0AVSneoDg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8VCpPUCdNpe38VePKbgJtg0kzMQtR3hb2EY0AVSneoDg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:31am UTC](https://discuss.elastic.co/t/snapshot-not-listed-after-nodes-are-restarted/17240/3 "2017-07-06T01:31:47Z")

</div>

Closed on July 6, 2017, 1:31am UTC


