Unable to uninstall x-pack from elastic search 6.1.2 docker image


(Bobin Jose) #1

I am unable to uninstall x-pack from es 6.1.2 docker image.I have tried with root/elasticsearch user.I am getting the below error message.

[root@e1e91a610ab5 bin]# ./elasticsearch-plugin remove x-pack --purge
-> removing [x-pack]...
Exception in thread "main" java.io.IOException: Could not remove the following files (in the order of attempts):
/usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86_64/bin/autoconfig: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86_64/bin/autoconfig
/usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86_64/bin/autodetect: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/x-pack/platform/darwin-x86_64/bin/autodetect

Even I cannot remove the plugins/x-pack.i am getting the below errors
[root@d4c37e9bb96f elasticsearch]# rm -rf plugins/x-pack/
rm: cannot remove 'plugins/x-pack/platform/darwin-x86_64/bin': Directory not empty
rm: cannot remove 'plugins/x-pack/platform/darwin-x86_64/lib': Directory not empty
rm: cannot remove 'plugins/x-pack/platform/linux-x86_64/bin': Directory not empty
rm: cannot remove 'plugins/x-pack/platform/linux-x86_64/lib': Directory not empty
rm: cannot remove 'plugins/x-pack/platform/windows-x86_64/bin': Directory not empty
rm: cannot remove 'plugins/x-pack/resources': Directory not empty
[root@d4c37e9bb96f elasticsearch]#


(Mark Walkom) #2

You'd be better off just using the non-X-Pack container - https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docker.html#_image_types


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.