# Cross cluster indice migration issue

**URL:** <https://discuss.elastic.co/t/cross-cluster-indice-migration-issue/2150>\
**Category:** Elasticsearch\
**Created:** [June 8, 2015, 4:13pm UTC](https://discuss.elastic.co/t/cross-cluster-indice-migration-issue/2150 "2015-06-08T16:13:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![odauby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/odauby/32/563_2.png) [@odauby](https://discuss.elastic.co/u/odauby)\
**Post date:** [June 8, 2015, 4:13pm UTC](https://discuss.elastic.co/t/cross-cluster-indice-migration-issue/2150/1 "2015-06-08T16:13:46Z")

</div>

Hi \*,

We are currently using several Elasticsearch clusters for our customers.  
For one of our customers I have to perform a data migration from PROD to QA environment. We do this from time to time, without any issue, but this customer is using Elasticsearch on Windows and I did not manage to migrate the data from the PROD cluster to the QA cluster.

Process goes like this:

- A snapshot is taken on the PROD cluster
- The snapshot directory is zipped, transferred to the QA area and decompressed.
- A migration repository is created on QA Elasticsearch pointing to this new location.
- A snapshot restore is triggered on QA Elasticsearch cluster.

This is this last step that fails miserably. WHen I check the available snapshots in the repository, I get this error message:

> Invoke-RestMethod [http://localhost:9200/\_snapshot/elasticsearch\_fromprod/\_all](http://localhost:9200/_snapshot/elasticsearch_fromprod/_all)

Error message:  
Invoke-RestMethod : {"error":"ElasticsearchParseException[Failed to derive xcontent from (offset=0, length=0):  
]","status":400}  
At line:1 char:1

- Invoke-RestMethod [http://localhost:9200/\_snapshot/elasticsearch\_fromprod/\_all](http://localhost:9200/_snapshot/elasticsearch_fromprod/_all)
- 

```auto
  + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
 eption
  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

```

- Java 7u71 and Elasticsearch 1.3.2 are the same versions on PROD and QA ES nodes
- I gave full rights and even ownership to the QA user running Elasticsearch service on the snapshot repository.
- Snapshot and restore work like a charm on the other repositories of the QA cluster.

Any idea what the issue could be ?

Kind Regards,

O.

---

<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, 12:08am UTC](https://discuss.elastic.co/t/cross-cluster-indice-migration-issue/2150/2 "2017-07-06T00:08:59Z")

</div>


