# Unable to install watcher

**URL:** <https://discuss.elastic.co/t/unable-to-install-watcher/56568>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 27, 2016, 10:06pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568 "2016-07-27T22:06:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pchernik](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pchernik](https://discuss.elastic.co/u/pchernik)\
**Post date:** [July 27, 2016, 10:06pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568/1 "2016-07-27T22:06:52Z")

</div>

While trying to install the watcher plugin for elasticsearch 2.3.4 I get the following:

=-\>bin/plugin install elasticsearch/watcher/latest  
-\> Installing elasticsearch/watcher/latest...  
Trying [https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip](https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip) ...  
Downloading ...............................................................................................DONE  
Verifying [https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip](https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip) checksums if available ...  
Downloading .DONE  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
@ WARNING: plugin requires additional permissions @  
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

- java.lang.RuntimePermission getClassLoader
- java.lang.RuntimePermission setContextClassLoader
- java.lang.RuntimePermission setFactory  
See [http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html](http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html)  
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y  
Installed watcher into /home/elk/elasticsearch-2.3.4/plugins/watcher  
ERROR: Error copying bin directory [/home/elk/elasticsearch-2.3.4/plugins/watcher/bin] to [/home/elk/elasticsearch-2.3.4/bin/watcher], cleaning up, reason: FileSystemException[/home/elk/elasticsearch-2.3.4/bin/watcher: Operation not permitted]  
ERROR: /home/elk/elasticsearch-2.3.4/bin/watcher: Operation not permitted

---

<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:** [July 27, 2016, 10:28pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568/2 "2016-07-27T22:28:22Z")

</div>

Do you have permissions to that directory?

---

<div class="post-metadata">

**Author:** ![pchernik](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pchernik](https://discuss.elastic.co/u/pchernik)\
**Post date:** [July 27, 2016, 10:51pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568/3 "2016-07-27T22:51:46Z")

</div>

Hi Mark. Thanks for the reply. I do have perms to that directory:

elk[]:/home/elk/elasticsearch-2.3.4  
=-\>whoami  
elk  
elk[]:/home/elk/elasticsearch-2.3.4  
=-\>pwd  
/home/elk/elasticsearch-2.3.4  
elk[]:/home/elk/elasticsearch-2.3.4  
=-\>touch /home/elk/elasticsearch-2.3.4/bin/test  
elk[]:/home/elk/elasticsearch-2.3.4  
=-\>rm /home/elk/elasticsearch-2.3.4/bin/test  
elk[]:/home/elk/elasticsearch-2.3.4  
=-\>ls -ld /home/elk/elasticsearch-2.3.4/bin  
drwxr-xr-x 2 elk 40074 4096 Jul 27 18:50 /home/elk/elasticsearch-2.3.4/bin  
elk[]:/home/elk/elasticsearch-2.3.4  
=-\>

---

<div class="post-metadata">

**Author:** ![pchernik](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@pchernik](https://discuss.elastic.co/u/pchernik)\
**Post date:** [July 27, 2016, 10:55pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568/4 "2016-07-27T22:55:17Z")

</div>

I removed the elasticsearch-2.3.4 directory, reinstalled ElasticSearch, and now am able to install the plugin. Not sure what would have caused this issue.

---

<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:44pm UTC](https://discuss.elastic.co/t/unable-to-install-watcher/56568/5 "2017-07-06T13:44:06Z")

</div>


