# How to enable script.groovy on es 5.0.0 alpha2 for ubuntu

**URL:** <https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846>\
**Category:** Elasticsearch\
**Created:** [May 12, 2016, 3:41am UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846 "2016-05-12T03:41:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxSeleznov](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@MaxSeleznov](https://discuss.elastic.co/u/MaxSeleznov)\
**Post date:** [May 12, 2016, 3:41am UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/1 "2016-05-12T03:41:09Z")

</div>

i added lines to config/elasticsearch.yml

```
script.inline: true
script.indexed: true

```

restated and got this

```
 * Stopping Elasticsearch Server [OK] 
 * Starting Elasticsearch Server [fail] 

```

i checked log file, it is empty, no errors

HELP ME!!!

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [May 12, 2016, 5:22pm UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/2 "2016-05-12T17:22:28Z")

</div>

`script.indexed` is not a setting in 5.0.0, as per the migration guide it was renamed to `script.stored`

---

<div class="post-metadata">

**Author:** ![MaxSeleznov](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@MaxSeleznov](https://discuss.elastic.co/u/MaxSeleznov)\
**Post date:** [May 12, 2016, 5:45pm UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/3 "2016-05-12T17:45:59Z")

</div>

so what i need to add to config/elasticsearch.yml for start to use groovy?

right now i got error

```
"reason": "scripts of type [inline], operation [search] and lang [groovy] are disabled"

```

elasticsearch crashed if i add this line to config/elasticsearch.yml

```
script.groovy: true

```

this line also doesnt work

```
script.engine.groovy.inline.search: true
```

---

<div class="post-metadata">

**Author:** ![MaxSeleznov](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@MaxSeleznov](https://discuss.elastic.co/u/MaxSeleznov)\
**Post date:** [May 12, 2016, 6:05pm UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/4 "2016-05-12T18:05:29Z")

</div>

why tested groovy on elasticsearch 5.0.0 alpha 2?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [May 12, 2016, 8:19pm UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/5 "2016-05-12T20:19:03Z")

</div>

You just need `script.inline: true`. See the GitHub [issue](https://github.com/elastic/elasticsearch/issues/18297#issuecomment-218872256) you filed for further details.

---

<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, 10:51pm UTC](https://discuss.elastic.co/t/how-to-enable-script-groovy-on-es-5-0-0-alpha2-for-ubuntu/49846/6 "2017-07-05T22:51:58Z")

</div>


