# After creating the snapshot, getting snapshot\_missing\_exception and no\_such\_file\_exception

**URL:** https://discuss.elastic.co/t/after-creating-the-snapshot-getting-snapshot-missing-exception-and-no-such-file-exception/329970
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [April 14, 2023, 6:13am UTC](https://discuss.elastic.co/t/after-creating-the-snapshot-getting-snapshot-missing-exception-and-no-such-file-exception/329970 "2023-04-14T06:13:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ramesh\_Perumal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramesh_perumal/32/98764_2.png) [@Ramesh\_Perumal](https://discuss.elastic.co/u/Ramesh_Perumal)
#### Post date: [April 14, 2023, 6:13am UTC](https://discuss.elastic.co/t/after-creating-the-snapshot-getting-snapshot-missing-exception-and-no-such-file-exception/329970/1 "2023-04-14T06:13:00Z")

</div>

Hi All,

I have created the repository to create snapshot with the following steps in two node (machine) cluster:

1. curl -XPUT "https://:9200$HOSTNAME/\_snapshot/test13?verify=false" -H 'Content-Type: application/json' -d' { "type": "fs", "settings": { "location": "/msv\_backup/ESBackup/counters/", "compress": true } } '  
{"acknowledged":true}

2. curl -X PUT "https://:9200$HOSTNAME/\_snapshot/test13/my\_test13?wait\_for\_completion=true&pretty" -H 'Content-Type: application/json' -d'{ "indices": "counters-2023.04.14-60m,counters-2023.04.14-5m", "ignore\_unavailable": true, "include\_global\_state": false}'  
{  
"snapshot" : {  
"snapshot" : "my\_test13",  
"uuid" : "x\_edhKvJQRyb9TE1nejxrg",  
"version\_id" : 135248427,  
"version" : "1.3.6",  
"indices" : [  
"counters-2023.04.14-60m",  
"counters-2023.04.14-5m"  
],  
"data\_streams" : ,  
"include\_global\_state" : false,  
"state" : "SUCCESS",  
"start\_time" : "2023-04-14T05:50:58.265Z",  
"start\_time\_in\_millis" : 1681451458265,  
"end\_time" : "2023-04-14T05:50:58.265Z",  
"end\_time\_in\_millis" : 1681451458265,  
"duration\_in\_millis" : 0,  
"failures" : ,  
"shards" : {  
"total" : 2,  
"failed" : 0,  
"successful" : 2  
}  
}  
}

3. curl -XGET "https://:9200$HOSTNAME/\_snapshot/test13/my\_test13?pretty"  
{  
"snapshots" : [  
{  
"snapshot" : "my\_test13",  
"uuid" : "x\_edhKvJQRyb9TE1nejxrg",  
"version\_id" : 135248427,  
"version" : "1.3.6",  
"indices" : [  
"counters-2023.04.14-60m",  
"counters-2023.04.14-5m"  
],  
"data\_streams" : ,  
"include\_global\_state" : false,  
"state" : "SUCCESS",  
"start\_time" : "2023-04-14T05:50:58.265Z",  
"start\_time\_in\_millis" : 1681451458265,  
"end\_time" : "2023-04-14T05:50:58.265Z",  
"end\_time\_in\_millis" : 1681451458265,  
"duration\_in\_millis" : 0,  
"failures" : ,  
"shards" : {  
"total" : 2,  
"failed" : 0,  
"successful" : 2  
}  
}  
]  
}

4. curl -XGET "https://:9200$HOSTNAME/\_snapshot/test13/my\_test13/\_status?pretty"  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "snapshot\_missing\_exception",  
"reason" : "[test13:my\_test13/x\_edhKvJQRyb9TE1nejxrg] is missing"  
}  
],  
"type" : "snapshot\_missing\_exception",  
"reason" : "[test13:my\_test13/x\_edhKvJQRyb9TE1nejxrg] is missing",  
"caused\_by" : {  
"type" : "no\_such\_file\_exception",  
"reason" : "/backup/ESBackup/counters/indices/Vrxkp7oiSQ6xwQFMiWTxog/0/snap-x\_edhKvJQRyb9TE1nejxrg.dat"  
}  
},  
"status" : 404  
}  
Due to the above issue, not able to restore the snapshot, since I'm getting file is missing. But file is there in the machine:  
ll /msv\_backup/ESBackup/counters/indices/Vrxkp7oiSQ6xwQFMiWTxog/0/snap-x\_edhKvJQRyb9TE1nejxrg.dat  
-rw-r--r--. 1 elasticsearch elasticsearch 1286 Apr 14 07:50 /msv\_backup/ESBackup/counters/indices/Vrxkp7oiSQ6xwQFMiWTxog/0/snap-x\_edhKvJQRyb9TE1nejxrg.dat

Please share your expertise.

Regards,  
Ramesh P

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [April 14, 2023, 6:27am UTC](https://discuss.elastic.co/t/after-creating-the-snapshot-getting-snapshot-missing-exception-and-no-such-file-exception/329970/3 "2023-04-14T06:27:48Z")

</div>

> [@Ramesh\_Perumal](#):
>
> curl -XPUT "https://:9200$HOSTNAME/\_snapshot/test13?verify=false"

Why are you setting verify to false? Is this a shared filesystem, e.g. an NFS mount?

---

<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 12, 2023, 6:28am UTC](https://discuss.elastic.co/t/after-creating-the-snapshot-getting-snapshot-missing-exception-and-no-such-file-exception/329970/4 "2023-05-12T06:28:14Z")

</div>

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