# Unknown repository type s3 when creating snapshot in 2.x

**URL:** <https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697>\
**Category:** Elasticsearch\
**Created:** [November 27, 2015, 12:51am UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697 "2015-11-27T00:51:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_snow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy_snow/32/6206_2.png) [@andy\_snow](https://discuss.elastic.co/u/andy_snow)\
**Post date:** [November 27, 2015, 12:51am UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/1 "2015-11-27T00:51:49Z")

</div>

Hi,

I am trying to create an S3 repository using the exact same method (on the exact same server) that works fine on 1.7.

Request:

```
curl -XPUT "http://127.0.0.1:9200/_snapshot/s3autosnapshots" -d '{ "type": "s3", "settings": { "bucket": "xxx", "base_path": "production", "region": "us-west-2" } }'

```

Response:

```
{"error":{"root_cause":[{"type":"repository_exception","reason":"[s3autosnapshots] failed to create repository"}],"type":"repository_exception","reason":"[s3autosnapshots] failed to create repository","caused_by":{"type":"illegal_argument_exception","reason":"Unknown [repository] type [s3]"}},"status":500}

```

Same error in 2.0.1 and 2.1. I have installed the `cloud-aws` plugin in each case.

---

<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:** [November 27, 2015, 1:18am UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/2 "2015-11-27T01:18:49Z")

</div>

Can you share the output of:

```
GET _cat/plugins?v

```

And also your elasticsearch.yml (anonymized)?

---

<div class="post-metadata">

**Author:** ![andy\_snow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy_snow/32/6206_2.png) [@andy\_snow](https://discuss.elastic.co/u/andy_snow)\
**Post date:** [November 27, 2015, 9:45am UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/3 "2015-11-27T09:45:39Z")

</div>

Thanks for your help,

The plugin cat showed up completely blank - even though I was already using the kopf plugin.

I started from scratch with a blank elasticsearch.yml and suddenly it (S3 repository) began working properly, and the plugin list was there too.

There must be some incompatible options from the config I had been using in 1.7, which I'll need to go through now.

---

<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:** [November 27, 2015, 9:57am UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/4 "2015-11-27T09:57:24Z")

</div>

May be you did not restart your node?  
But for sure plugins for 1.7 are incompatibles with 2.0 and you absolutely need to update them as well.

---

<div class="post-metadata">

**Author:** ![andy\_snow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy_snow/32/6206_2.png) [@andy\_snow](https://discuss.elastic.co/u/andy_snow)\
**Post date:** [November 27, 2015, 10:03pm UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/5 "2015-11-27T22:03:51Z")

</div>

Definitely restarted - I saw the correction version displayed in the kopf node list.

Also definitely removed and reinstalled the plugins (new versions)

---

<div class="post-metadata">

**Author:** ![Mukut\_Biharee1](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Mukut\_Biharee1](https://discuss.elastic.co/u/Mukut_Biharee1)\
**Post date:** [February 29, 2016, 2:46pm UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/7 "2016-02-29T14:46:27Z")

</div>

I also got this error, initially I installed aws-cloud plugin only on one node and restated then I got this error.  
After that installed aws-cloud on all nodes then restated all plugins then it worked.

---

<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 5, 2017, 11:12pm UTC](https://discuss.elastic.co/t/unknown-repository-type-s3-when-creating-snapshot-in-2-x/35697/8 "2017-07-05T23:12:51Z")

</div>


