# Issue creating S3 repository on ElasticSearch 1.3

**URL:** <https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626>\
**Category:** Elasticsearch\
**Created:** [September 4, 2014, 3:58pm UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626 "2014-09-04T15:58:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dylan\_Lingelbach](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@Dylan\_Lingelbach](https://discuss.elastic.co/u/Dylan_Lingelbach)\
**Post date:** [September 4, 2014, 3:58pm UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/1 "2014-09-04T15:58:48Z")

</div>

Hi,

We are trying to migrate our data running on ES cluster running version  
1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is  
snapshotted to S3. I would like to restore that snapshot to our cluster  
running 1.3.2. I am unable to create the S3 repository however on my  
cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:

curl 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": {  
"type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } }  
}'  
Here is the response I get:

{"error":"ActionRequestValidationException[Validation Failed: 1: type is  
missing;]","status":500}  
Any tips or suggestions would be appreciated.

Thanks,

Dylan

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [September 5, 2014, 6:46am UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/2 "2014-09-05T06:46:19Z")

</div>

Do you try to create a repo?  
If so, you need to use PUT method. Something like:

$ curl -XPUT '[http://localhost:9200/\_snapshot/my\_s3\_repository](http://localhost:9200/_snapshot/my_s3_repository)' -d '{ "type": "s3", "settings": { "bucket": "my\_bucket\_name", "region": "us-west" } }'

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach [dylan@markitx.com](mailto:dylan@markitx.com) a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is snapshotted to S3. I would like to restore that snapshot to our cluster running 1.3.2. I am unable to create the S3 repository however on my cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:  
curl 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

Here is the response I get:  
{"error":"ActionRequestValidationException[Validation Failed: 1: type is missing;]","status":500}

Any tips or suggestions would be appreciated.

Thanks,

## Dylan

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/A0B4A076-824A-480D-8D46-A41EB8121BFD%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/A0B4A076-824A-480D-8D46-A41EB8121BFD%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Dylan\_Lingelbach](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@Dylan\_Lingelbach](https://discuss.elastic.co/u/Dylan_Lingelbach)\
**Post date:** [September 5, 2014, 12:12pm UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/3 "2014-09-05T12:12:42Z")

</div>

Thanks David. I typed the command I was running to try to create the  
repository incorrectly. I am running  
curl _-XPUT_ 'localhost:9200/\_snapshot/products-v0.2.1' -d '{  
"products-v0.2.1": { "type": "s3", "settings": { "region": "us-east",  
"bucket": "my-bucket" } } }'

So I am using the PUT method. When I do so I get the error I mentioned  
above.

On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:

> Do you try to create a repo?  
> If so, you need to use PUT method. Something like:
> 
> $ curl -XPUT '[http://localhost:9200/\_snapshot/my\_s3\_repository](http://localhost:9200/_snapshot/my_s3_repository)' -d '{ "type": "s3", "settings": { "bucket": "my\_bucket\_name", "region": "us-west" }}'
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 sept. 2014 à 17:58, Dylan Lingelbach \<[dy...@markitx.com](mailto:dy...@markitx.com) \<javascript:\>\>  
> a écrit :
> 
> Hi,
> 
> We are trying to migrate our data running on ES cluster running version  
> 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is  
> snapshotted to S3. I would like to restore that snapshot to our cluster  
> running 1.3.2. I am unable to create the S3 repository however on my  
> cluster running 1.3.2.
> 
> I have installed version 2.3.0 of the aws-cloud plugin.
> 
> Here is the command I am running:
> 
> curl 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": {  
> "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } }  
> }'  
> Here is the response I get:
> 
> {"error":"ActionRequestValidationException[Validation Failed: 1: type is  
> missing;]","status":500}  
> Any tips or suggestions would be appreciated.
> 
> Thanks,
> 
> Dylan
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [September 5, 2014, 3:15pm UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/4 "2014-09-05T15:15:38Z")

</div>

Got it…

You must not repeat the repo name in the JSON doc. It should be:

{  
"type":"s3",  
"settings":{  
"region":"us-east",  
"bucket":"my-bucket"  
}  
}

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr

Le 5 septembre 2014 à 14:12:51, Dylan Lingelbach ([dylan@markitx.com](mailto:dylan@markitx.com)) a écrit:

Thanks David. I typed the command I was running to try to create the repository incorrectly. I am running  
curl -XPUT 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

So I am using the PUT method. When I do so I get the error I mentioned above.

On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:  
Do you try to create a repo?  
If so, you need to use PUT method. Something like:

$ curl -XPUT '[http://localhost:9200/\_snapshot/my\_s3\_repository](http://localhost:9200/_snapshot/my_s3_repository)' -d '{ "type": "s3", "settings": { "bucket": "my\_bucket\_name", "region": "us-west" } }'

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach [dy...@markitx.com](mailto:dy...@markitx.com) a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is snapshotted to S3. I would like to restore that snapshot to our cluster running 1.3.2. I am unable to create the S3 repository however on my cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:  
curl 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

Here is the response I get:  
{"error":"ActionRequestValidationException[Validation Failed: 1: type is missing;]","status":500}

Any tips or suggestions would be appreciated.

Thanks,

## Dylan

## You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com). To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com). For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Dylan\_Lingelbach](https://avatars.discourse-cdn.com/v4/letter/d/71c47a/32.png) [@Dylan\_Lingelbach](https://discuss.elastic.co/u/Dylan_Lingelbach)\
**Post date:** [September 5, 2014, 3:17pm UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/5 "2014-09-05T15:17:38Z")

</div>

Ah, that makes total sense. Thanks David!

On Fri, Sep 5, 2014 at 10:15 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Got it…
> 
> You must not repeat the repo name in the JSON doc. It should be:
> 
> {  
> "type":"s3",  
> "settings":{  
> "region":"us-east",  
> "bucket":"my-bucket"  
> }  
> }
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)
> 
> Le 5 septembre 2014 à 14:12:51, Dylan Lingelbach ([dylan@markitx.com](mailto:dylan@markitx.com)) a  
> écrit:
> 
> Thanks David. I typed the command I was running to try to create the  
> repository incorrectly. I am running  
> curl _-XPUT_ 'localhost:9200/\_snapshot/products-v0.2.1' -d '{  
> "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east",  
> "bucket": "my-bucket" } } }'
> 
> So I am using the PUT method. When I do so I get the error I mentioned  
> above.
> 
> On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:
> 
> > Do you try to create a repo?  
> > If so, you need to use PUT method. Something like:
> > 
> > $ curl -XPUT '[http://localhost:9200/\_snapshot/my\_s3\_repository](http://localhost:9200/_snapshot/my_s3_repository)' -d '{ "type": "s3", "settings": { "bucket": "my\_bucket\_name", "region": "us-west" }}'
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 sept. 2014 à 17:58, Dylan Lingelbach [dy...@markitx.com](mailto:dy...@markitx.com) a écrit :
> > 
> > Hi,
> > 
> > We are trying to migrate our data running on ES cluster running version  
> > 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is  
> > snapshotted to S3. I would like to restore that snapshot to our cluster  
> > running 1.3.2. I am unable to create the S3 repository however on my  
> > cluster running 1.3.2.
> > 
> > I have installed version 2.3.0 of the aws-cloud plugin.
> > 
> > Here is the command I am running:
> > 
> > curl 'localhost:9200/\_snapshot/products-v0.2.1' -d '{ "products-v0.2.1":  
> > { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" }  
> > } }'  
> > Here is the response I get:
> > 
> > {"error":"ActionRequestValidationException[Validation Failed: 1: type is  
> > missing;]","status":500}  
> > Any tips or suggestions would be appreciated.
> > 
> > Thanks,
> > 
> > ## Dylan
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%  
> > [40googlegroups.com](http://40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/uAU8vOuB6wo/unsubscribe](https://groups.google.com/d/topic/elasticsearch/uAU8vOuB6wo/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local](https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local)  
> [https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF32VtrZUbExyahkiDAgQhh0kO2q75uPB5yVq\_R3YHabQfMWjA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF32VtrZUbExyahkiDAgQhh0kO2q75uPB5yVq_R3YHabQfMWjA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:04am UTC](https://discuss.elastic.co/t/issue-creating-s3-repository-on-elasticsearch-1-3/19626/6 "2017-07-06T01:04:04Z")

</div>


