Unable to install watcher

alerting

(Pavel Chernikov) #1

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 ...
Downloading ...............................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip checksums if available ...
Downloading .DONE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

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


(Mark Walkom) #2

Do you have permissions to that directory?


(Pavel Chernikov) #3

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
=->


(Pavel Chernikov) #4

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.


(system) #5