# ElasticSearch Restore "Unknown parameter type"

**URL:** https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125
**Category:** Elasticsearch
**Created:** [December 17, 2017, 5:12pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125 "2017-12-17T17:12:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![0NE](https://avatars.discourse-cdn.com/v4/letter/0/898d66/32.png) [@0NE](https://discuss.elastic.co/u/0NE)
#### Post date: [December 17, 2017, 5:12pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125/1 "2017-12-17T17:12:55Z")

</div>

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](http://127.0.0.1:9200/_snapshot/myrep/snapshot_1/_restore)

I get an error:

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "Unknown parameter type"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "Unknown parameter type"  
> },  
> "status": 400  
> }

Can anyone help?

---

<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: [December 17, 2017, 5:40pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125/2 "2017-12-17T17:40:36Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

---

<div class="post-metadata">

### Author: ![0NE](https://avatars.discourse-cdn.com/v4/letter/0/898d66/32.png) [@0NE](https://discuss.elastic.co/u/0NE)
#### Post date: [December 17, 2017, 6:18pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125/3 "2017-12-17T18:18:08Z")

</div>

I have edited the post, is that better?

---

<div class="post-metadata">

### Author: ![0NE](https://avatars.discourse-cdn.com/v4/letter/0/898d66/32.png) [@0NE](https://discuss.elastic.co/u/0NE)
#### Post date: [December 17, 2017, 9:06pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125/4 "2017-12-17T21:06:23Z")

</div>

Mistake on my behalf. I had a body in my post request which was causing issues.

---

<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: [January 14, 2018, 9:06pm UTC](https://discuss.elastic.co/t/elasticsearch-restore-unknown-parameter-type/112125/5 "2018-01-14T21:06:41Z")

</div>

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