Elasticsearch snapshot does not exist


(ONE) #1

I am trying to restore my elasticsearch on a new machine.

I copied the backup across, set up a new repo with the same name (called myrep). I have check if this works by doing:

> `GET http://127.0.0.1:9200/_snapshot`

which returned:

{
"myrep": {
"type": "fs",
"settings": {
"compress": "true",
"location": "myrep"
}
}
}

When I try to do a restore doing:

POST http://127.0.0.1:9200/_snapshot/myrep/snapshot_1/_restore

I get an error:

{
"error": {
"root_cause": [
{
"type": "snapshot_restore_exception",
"reason": "[myrep:snapshot_1]snapshot does not exist"
}
],
"type": "snapshot_restore_exception",
"reason": "[myrep:snapshot_1]snapshot does not exist"
},
"status": 500
}

More info:

When I do

GET http://127.0.0.1:9200/_snapshot/myrep/_all

I only see indices that the machine already had, not the ones that I want restored...

Can anyone help?


Edit: I believe this problem is occuring because im coming from 1.7 to 5.0+, right? Can someone confirm?


(ONE) #2

I have confirmed that the issue is because the instance I am trying to restore to a 6.0 cluster.

A snapshot of an index created in 5.x can be restored to 6.x.
A snapshot of an index created in 2.x can be restored to 5.x.
A snapshot of an index created in 1.x can be restored to 2.x. 

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html

I did read this before, I just forgot that my new instance was 6.0


(system) #3

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