# Problem when create index template

**URL:** <https://discuss.elastic.co/t/problem-when-create-index-template/344302>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [October 3, 2023, 9:50am UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302 "2023-10-03T09:50:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joker\_Thanh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joker_thanh/32/126221_2.png) [@Joker\_Thanh](https://discuss.elastic.co/u/Joker_Thanh)\
**Post date:** [October 3, 2023, 9:50am UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/1 "2023-10-03T09:50:10Z")

</div>

i have seen problem when create index template based endpoint /\_index/c1s-template

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "IOException while reading stopwords_path: /usr/share/elasticsearch/config/stopwords.txt"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "IOException while reading stopwords_path: /usr/share/elasticsearch/config/stopwords.txt",
    "caused_by" : {
      "type" : "no_such_file_exception",
      "reason" : "/usr/share/elasticsearch/config/stopwords.txt"
    }
  },
  "status" : 400
}

```

i dont see stopword.txt file in path in docker  
thanks for any help?

---

<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:** [October 3, 2023, 10:18am UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/2 "2023-10-03T10:18:40Z")

</div>

Welcome!

What is your exact query?  
What is your Elasticsearch version? The output of `GET /`...

---

<div class="post-metadata">

**Author:** ![Joker\_Thanh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joker_thanh/32/126221_2.png) [@Joker\_Thanh](https://discuss.elastic.co/u/Joker_Thanh)\
**Post date:** [October 3, 2023, 10:36am UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/4 "2023-10-03T10:36:51Z")

</div>

hi. thanks. i use v7.17.13. i want to create template index with this json. but it faced above issue. can you help me?

---

<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:** [October 3, 2023, 11:02am UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/5 "2023-10-03T11:02:21Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

Please update your post and provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can **copy and paste in Kibana dev console** , click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Have a look at the [Elastic Stack and Solutions Help · Forums and Slack | Elastic](https://elastic.co/community/help) page. It contains also lot of useful information on how to ask for help.

---

<div class="post-metadata">

**Author:** ![Joker\_Thanh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joker_thanh/32/126221_2.png) [@Joker\_Thanh](https://discuss.elastic.co/u/Joker_Thanh)\
**Post date:** [October 3, 2023, 12:50pm UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/6 "2023-10-03T12:50:16Z")

</div>

yes. i'm sorry

---

<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:** [October 3, 2023, 2:04pm UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/7 "2023-10-03T14:04:38Z")

</div>

> [@Joker\_Thanh](#):
>
> i want to create template index with this json. but it faced above issue. can you help me?

What is the exact request you are sending?  
If you could reproduce with a very simple example, that's even better.

---

<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:** [October 31, 2023, 2:05pm UTC](https://discuss.elastic.co/t/problem-when-create-index-template/344302/8 "2023-10-31T14:05:18Z")

</div>

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