Shield Installation issue

I am getting an error when I try to install shield.I am using latest version of ES 2.3.3.

bin/plugin install file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip
-> Installing from file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip...
Trying file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip ...
Downloading .......................DONE
Verifying file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed shield into /usr/local/bin/elasticsearch-2.3.3/plugins/shield
ERROR: Error copying bin directory [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield], cleaning upsticsearch-2.3.3/bin/shield: Operation not permitted]
ERROR: /usr/local/bin/elasticsearch-2.3.3/bin/shield: Operation not permitted

Request your help. Thanks.

Maybe, "sudo" will help you.

2 Likes

I tried with sudo, it still gave errors.

ad_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3> sudo bin/plugin install file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip
which: no java in (/usr/bin:/bin:/usr/sbin:/sbin)
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME


I provided the path and it gave error still.

ad_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3> sudo JAVA_HOME=/usr/local/bin/jdk1.8.0_91/bin/java ; bin/plugin install file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip
usage: sudo -h | -K | -k | -L | -V
usage: sudo -v [-AknS] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] []
usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ...
-> Installing from file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip...
Trying file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip ...
Downloading .......................DONE
Verifying file:////home/ad_aagaiton/installation/Shield/shield-2.3.3.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed shield into /usr/local/bin/elasticsearch-2.3.3/plugins/shield
ERROR: Error copying bin directory [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield], cleaning up, reason: IOException[Could not move [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield]]; nested: AccessDeniedException[/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin -> /usr/local/bin/elasticsearch-2.3.3/bin/shield];
ERROR: Could not move [/usr/local/bin/elasticsearch-2.3.3/plugins/shield/bin] to [/usr/local/bin/elasticsearch-2.3.3/bin/shield]


ad_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3/bin> pwd
/usr/local/bin/elasticsearch-2.3.3/bin
ad_aagaiton@estest:/usr/local/bin/elasticsearch-2.3.3/bin> ls -ltr
total 336
-rw-rw-r-- 1 root 1000 80896 Jan 27 04:53 elasticsearch-service-x86.exe
-rw-rw-r-- 1 root 1000 103936 Jan 27 04:53 elasticsearch-service-x64.exe
-rw-rw-r-- 1 root 1000 104448 Jan 27 04:53 elasticsearch-service-mgr.exe
-rw-rw-r-- 1 root 1000 6501 May 12 06:24 service.bat
-rw-rw-r-- 1 root 1000 1303 May 12 06:24 plugin.bat
-rwxr-xr-x 1 root 1000 2992 May 12 06:24 plugin
-rwxr-xr-x 1 root 1000 2814 May 12 06:24 elasticsearch.in.sh
-rw-rw-r-- 1 root 1000 3307 May 12 06:24 elasticsearch.in.bat
-rw-rw-r-- 1 root 1000 909 May 12 06:24 elasticsearch.bat
-rwxr-xr-x 1 root 1000 5551 May 12 06:24 elasticsearch

It worked with sudo su -

Thanks