# Installing Watcher -- pitfall to avoid

**URL:** <https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 29, 2015, 2:53pm UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264 "2015-10-29T14:53:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielsoncr](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nielsoncr](https://discuss.elastic.co/u/nielsoncr)\
**Post date:** [October 29, 2015, 2:53pm UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264/1 "2015-10-29T14:53:09Z")

</div>

Just ran into this issue installing Watcher and want to get this out there to help someone else who might be having the same problem. The situation looks like a successful Watcher install -- ie  
GET /\_watcher returns something like  
{  
"version": {  
"name": "1.0.0",  
"number": "1.0.0",  
"build\_hash": "29acda792846b0a35ca224181e8999266f223fb3",  
"build\_timestamp": "2015-06-26T14:05:54Z",  
"build\_snapshot": false  
}  
}

but the following exception is returned when attempting to create a watch

IndexMissingException[[.watches] missing

What I found was the elasticsearch.yml file contained the setting

action.auto\_create\_index: false

If this setting is false when Watcher is installed the .watches index doesn't seem to get created successfully. The workaround used to resolve the problem was uninstall Watcher, change this setting to true (or just remove it), restart ES, then repeat the steps for installing Watcher. Hope this helps someone else.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 30, 2015, 7:32am UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264/2 "2015-10-30T07:32:46Z")

</div>

Thanks for sharing this, I will pass it onto the Watcher team to see if we can make it easier moving forward!

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [October 30, 2015, 8:12am UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264/3 "2015-10-30T08:12:48Z")

</div>

From 2.0 Watcher won't start if the `action.auto_create_index` setting is too restrictive:  
[https://www.elastic.co/guide/en/watcher/current/release-notes.html#\_2\_0\_0](https://www.elastic.co/guide/en/watcher/current/release-notes.html#_2_0_0)

---

<div class="post-metadata">

**Author:** ![nielsoncr](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@nielsoncr](https://discuss.elastic.co/u/nielsoncr)\
**Post date:** [October 30, 2015, 1:01pm UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264/4 "2015-10-30T13:01:24Z")

</div>

Thank you for the information. A previous version of Watcher was being installed so the descriptive message wasn't returned. Looking forward to trying 2.0

---

<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 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/installing-watcher-pitfall-to-avoid/33264/5 "2017-07-06T13:48:17Z")

</div>


