# Failed to create S3 repository with ES 6.0

**URL:** <https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224>\
**Category:** Elasticsearch\
**Created:** [November 18, 2017, 6:47am UTC](https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224 "2017-11-18T06:47:12Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![outcoldman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/outcoldman/32/20061_2.png) [@outcoldman](https://discuss.elastic.co/u/outcoldman)\
**Post date:** [November 19, 2017, 9:41pm UTC](https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224/7 "2017-11-19T21:41:23Z")

</div>

And I have another guess what can cause it (if I am not right about that this code does not read from the keystore).

With docker (in my case kubernetes) I keep only data folder as stateful. Also I add the keys into keystore after my ES is already started. So there are two issues:

1. Looking on [https://github.com/elastic/elasticsearch/issues/26589](https://github.com/elastic/elasticsearch/issues/26589) - seems like these settings should be set before you start ES.
2. Because of Docker environments - keystore is stored near elasticsearch.yml file, which means that I do not keep it between restarts.

As a workaround I assume I can use `es.allow_insecure_settings` and use old way, but it does not seems like a documented flag, not sure where I can set it.

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-create-s3-repository-with-es-6-0/108224)._
