# Snapshot with s3 not working

**URL:** <https://discuss.elastic.co/t/snapshot-with-s3-not-working/128489>\
**Category:** Elasticsearch\
**Created:** [April 18, 2018, 8:59am UTC](https://discuss.elastic.co/t/snapshot-with-s3-not-working/128489 "2018-04-18T08:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreejiths](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sreejiths](https://discuss.elastic.co/u/sreejiths)\
**Post date:** [April 18, 2018, 8:59am UTC](https://discuss.elastic.co/t/snapshot-with-s3-not-working/128489/1 "2018-04-18T08:59:53Z")

</div>

I am trying to set up a SNAPSHOT BACKUP through S3 on my development Elastisearch (on Centos 7.0) for which i fail to create S3 repo on the VM

I have S3 been set up as a mountpoint as below and i can access the S3 from ELK VM itself

s3fs 256T 0 256T 0% /mnt/s3elk

I am using below curl comamnd to set up the repository

curl -XPUT -u XXXX:XXX '[http://localhost:9200/\_snapshot/elkbackup](http://localhost:9200/_snapshot/elkbackup)' -d '{  
"type": "s3",  
"settings": {  
"access\_key":["XXXXX"],  
"secret\_key":["XXXXX"],  
"bucket":["XXXXX"],  
"base\_path":["elasticsearch"],  
"max\_retries": 3  
}  
}'

which gives me below error eventhough i had made sure i am using correct access/secret key and there is no connectivity issue for to S3

{"error":{"root\_cause":[{"type":"repository\_exception","reason":"[elkbackup] failed to create repository"}],"type":"repository\_exception","reason":"[elkbackup] failed to create repository","caused\_by":{"type":"sdk\_client\_exception","reason":"Unable to load credentials from service endpoint","caused\_by":{"type":"socket\_timeout\_exception","reason":"connect timed out"}}},"status":500}

---

<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:** [May 16, 2018, 9:00am UTC](https://discuss.elastic.co/t/snapshot-with-s3-not-working/128489/2 "2018-05-16T09:00:22Z")

</div>

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