# Failure creation s3 repository

**URL:** <https://discuss.elastic.co/t/failure-creation-s3-repository/29414>\
**Category:** Elasticsearch\
**Created:** [September 16, 2015, 2:30pm UTC](https://discuss.elastic.co/t/failure-creation-s3-repository/29414 "2015-09-16T14:30:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alonavioz](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@alonavioz](https://discuss.elastic.co/u/alonavioz)\
**Post date:** [September 16, 2015, 2:30pm UTC](https://discuss.elastic.co/t/failure-creation-s3-repository/29414/1 "2015-09-16T14:30:05Z")

</div>

Hi everyone,

I was trying to create and configure S3 repository and got an error creating it.  
I have installed the elasticsearch-aws-plugin-2.7.1.

My query is:  
curl -XPUT '[http://localhost:9200/\_snapshot/s3-backup](http://localhost:9200/_snapshot/s3-backup)' -d '{"type": "s3", "settings": {"bucket": "_ **","region": "us-west-2", "access\_key": "**", "secret\_key": "_\*\*"}}'

The error recieved:  
"error":"RepositoryException[[s3-backup] failed to create repository]; nested: NoClassSettingsException[failed to load class with value [s3]; tried [s3, org.elasticsearch.repositories.S3RepositoryModule, org.elasticsearch.repositories.s3.S3RepositoryModule, org.elasticsearch.repositories.s3.S3RepositoryModule]]; nested: ClassNotFoundException[org.elasticsearch.repositories.s3.S3RepositoryModule]; ","status":500}

Any help?  
thanks.

---

<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:50pm UTC](https://discuss.elastic.co/t/failure-creation-s3-repository/29414/2 "2017-07-05T23:50:00Z")

</div>


