# Snapshot on S3, unable to change protocol from https to http

**URL:** <https://discuss.elastic.co/t/snapshot-on-s3-unable-to-change-protocol-from-https-to-http/152237>\
**Category:** Elasticsearch\
**Created:** [October 12, 2018, 12:32pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-unable-to-change-protocol-from-https-to-http/152237 "2018-10-12T12:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scch/32/25504_2.png) [@scch](https://discuss.elastic.co/u/scch)\
**Post date:** [October 12, 2018, 12:32pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-unable-to-change-protocol-from-https-to-http/152237/1 "2018-10-12T12:32:19Z")

</div>

Hi I am getting below error while creating repository, the endpoint is http so probable reason looks like protocol i have tried changing with below command  
./elasticsearch-keystore add s3.client.default.protocol

**also, i have tried below as well**

PUT \_snapshot/xxl\_s3\_repo  
{  
"type": "s3",  
"settings": {  
"endpoint":"[xxss-xxdev.xxxxx.com](http://xxss-xxdev.xxxxx.com)",  
"protocol": "http",  
"bucket": "bucket01"

}  
}

**but error remains the same**

"error": {  
"root\_cause": [  
{  
"type": "sdk\_client\_exception",  
"reason": "sdk\_client\_exception: Unable to execute HTTP request: Connect to [bucket01.xxxxxx.xxxxxxxx.com/:443](http://bucket01.xxxxxx.xxxxxxxx.com/:443) [[bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9](http://bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9)] failed: Connection refused (Connection refused)"  
}  
],  
"type": "repository\_exception",  
"reason": "[bl\_s3\_repo] failed to create repository",  
"caused\_by": {  
"type": "sdk\_client\_exception",  
"reason": "sdk\_client\_exception: Unable to execute HTTP request: Connect to [bucket01.xxxxxx.xxxxxxxx.com/:443](http://bucket01.xxxxxx.xxxxxxxx.com/:443) [[bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9](http://bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9)] failed: Connection refused (Connection refused)",  
"caused\_by": {  
"type": "i\_o\_exception",  
"reason": "Connect to [bucket01.xxxxxx.xxxxxxxx.com/:443](http://bucket01.xxxxxx.xxxxxxxx.com/:443) [[bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9](http://bucket01.xxxxxx.xxxxxxxx.com/xx.x.9x.x9)] failed: Connection refused (Connection refused)",  
"caused\_by": {  
"type": "i\_o\_exception",  
"reason": "Connection refused (Connection refused)"  
}  
}  
}  
},  
"status": 500

---

<div class="post-metadata">

**Author:** ![scch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scch/32/25504_2.png) [@scch](https://discuss.elastic.co/u/scch)\
**Post date:** [October 17, 2018, 7:02pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-unable-to-change-protocol-from-https-to-http/152237/2 "2018-10-17T19:02:17Z")

</div>

have done to complete configuration again and it worked...

i followed below document ... and copying it for others reference.....

> <https://github.com/minio/cookbook/blob/master/docs/elasticsearch-snapshots-on-minio.md>

---

<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:** [November 14, 2018, 7:02pm UTC](https://discuss.elastic.co/t/snapshot-on-s3-unable-to-change-protocol-from-https-to-http/152237/3 "2018-11-14T19:02:18Z")

</div>

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