# ES5 cannot find latest ES2 snapshot

**URL:** https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591
**Category:** Elasticsearch
**Created:** [May 30, 2017, 3:27pm UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591 "2017-05-30T15:27:17Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dvine](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dvine](https://discuss.elastic.co/u/Dvine)
#### Post date: [May 30, 2017, 3:27pm UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/1 "2017-05-30T15:27:17Z")

</div>

Hi,

We are migrating to an ES5.4 cluster from an ES2.4.3 Cluster. Snap shots are in S3 and we want to restore from the ES2.4 repo to our new cluster. We use creator to restore this and take our daily snapshots.

The problem we have is that curator and [http://ES5cluster:9200/\_snapshot/reponame/\_all](http://ES5cluster:9200/_snapshot/reponame/_all) is only finding a latest snapshot from almost 6 months ago. [http://ES2cluster:9200/\_snapshot/reponame/\_all](http://ES2cluster:9200/_snapshot/reponame/_all) successfully finds all the snapshots since last nights successful back up.

If I CURL the correct snapshot from last night ES5 claims it cannot find it. The last ES5 [http://ES5cluster:9200/\_snapshot/reponame/\_all](http://ES5cluster:9200/_snapshot/reponame/_all) returns this one.

```
{"snapshot":"snapshot-20170116010510","uuid":"snapshot-20170116010510","version_id":2040399,"version":"2.4.3","indices":[<ignored for size],"state":"SUCCESS","start_time":"2017-01-16T01:05:25.737Z","start_time_in_millis":1484528725737,"end_time":"2017-01-16T01:24:30.814Z","end_time_in_millis":1484529870814,"duration_in_millis":1145077,"failures":[],"shards":{"total":5822,"failed":0,"successful":5822}}

```

The last ES2 looks like this:

```
{"snapshot":"snapshot-20170530010505","version_id":2040399,"version":"2.4.3","indices":[<index list>],"state":"SUCCESS","start_time":"2017-05-30T01:06:10.523Z","start_time_in_millis":1496106370523,"end_time":"2017-05-30T01:18:46.628Z","end_time_in_millis":1496107126628,"duration_in_millis":756105,"failures":[],"shards":{"total":8336,"failed":0,"successful":8336}}

```

Any reason why this is? Both look to be successful snapshots.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 30, 2017, 3:52pm UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/2 "2017-05-30T15:52:55Z")

</div>

Once you have migrated a repository to a 5.x cluster, you can't and you should not use it anymore with a 2.x cluster.

That might causes issues.

When a repository is created in 5.x, meta data files are updated. Might explain what you are seeing.

---

<div class="post-metadata">

### Author: ![Dvine](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dvine](https://discuss.elastic.co/u/Dvine)
#### Post date: [May 30, 2017, 5:10pm UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/3 "2017-05-30T17:10:16Z")

</div>

The ES5 cluster has a new repository for its snapshots and only uses the old ES2 repo to restore. Would that update the metafiles? And if so why has it only affected the last 6 months (actually 5.5 months) worth or snapshots? As I said the ES2 cluster has no problem using its own snapshot from last night so I don't think the ES5 cluster has changed anything here.

The ES5 cluster can literally not see any snapshots from the middle of Jan (its only been running the last 2 days).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 31, 2017, 9:32am UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/4 "2017-05-31T09:32:16Z")

</div>

If I read correctly your answer, you are still have connected a 2.x cluster on the same repository which is used by the 5.x cluster.

This is not supported. Read [Snapshot And Restore | Elasticsearch Reference [5.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/modules-snapshots.html)

> Note: If a repository is connected to a 2.x cluster, and you want to connect a 5.x cluster to the same repository, you will have to either first set the 2.x repository to readonly mode (see below for details on readonly mode) or create the 5.x repository in readonly mode. A 5.x cluster will update the repository to conform to 5.x specific formats, which will mean that any new snapshots written via the 2.x cluster will not be visible to the 5.x cluster, and vice versa. In fact, as a general rule, only one cluster should connect to the same repository location with write access; all other clusters connected to the same repository should be set to readonly mode. While setting all but one repositories to readonly should work with multiple clusters differing by one major version, it is not a supported configuration.

---

<div class="post-metadata">

### Author: ![Dvine](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@Dvine](https://discuss.elastic.co/u/Dvine)
#### Post date: [June 2, 2017, 9:53am UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/5 "2017-06-02T09:53:28Z")

</div>

More I have connected a 5.x cluster to a 2.x repo. And this seemed to be the cause.

I created a new repo, backed up to that and then managed to restore correctly. Thanks for your help.

---

<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: [June 30, 2017, 9:54am UTC](https://discuss.elastic.co/t/es5-cannot-find-latest-es2-snapshot/87591/6 "2017-06-30T09:54:22Z")

</div>

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