ES: 5.2.2 ES datanode restart fails after repository-s3 plugin installed

root@ip-205-2-177:~# /usr/share/elasticsearch/bin/elasticsearch -version
Version: 5.2.2, Build: f9d9b74/2017-02-24T17:26:45.835Z, JVM: 1.8.0_73
root@ip-205-2-177:~#

My ES cluster is up and running fine. I want validate the backup to S3. Hence as per the steps mentioned in
https://www.elastic.co/guide/en/elasticsearch/plugins/5.2/repository-s3.html , I downloaded the repository-s3-5.2.2.zip file and installed with the command (as root user)
/usr/share/elasticsearch/bin/elasticsearch-plugin install file:///root/repository-s3-5.2.2.zip

Then again started the ES with service elasticsearch start, but ES failed to start with the following exception in the log file.


[2017-04-19T17:51:51,958][INFO ][o.e.n.Node ] [10.205.2.177] initializing ...
[2017-04-19T17:51:52,025][INFO ][o.e.e.NodeEnvironment ] [10.205.2.177] using [1] data paths, mounts [[/opt/elasticsearch (/dev/xvdg)]], net usable_space [93.2gb], net total_space [98.3gb], spins? [no], types [ext4]
[2017-04-19T17:51:52,025][INFO ][o.e.e.NodeEnvironment ] [10.205.2.177] heap size [13.9gb], compressed ordinary object pointers [true]
[2017-04-19T17:51:52,069][INFO ][o.e.n.Node ] [10.205.2.177] node name [10.205.2.177], node ID [Ar-ZNoXLRPuwbBZu4wHACA]
[2017-04-19T17:51:52,071][INFO ][o.e.n.Node ] [10.205.2.177] version[5.2.2], pid[27027], build[f9d9b74/2017-02-24T17:26:45.835Z], OS[Linux/3.13.0-110-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_73/25.73-b02]
[2017-04-19T17:51:52,955][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [repository-s3]. Was the plugin built before 2.0?
at org.elasticsearch.plugins.PluginsService.getPluginBundles(PluginsService.java:295) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:131) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.node.Node.(Node.java:297) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.node.Node.(Node.java:232) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.bootstrap.Bootstrap$6.(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:241) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.2.2.jar:5.2.2]

Why is the exception describing as the plugin built before 2.0?
[2017-04-19T17:51:52,955][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalStateException: Could not load plugin descriptor for existing plugin [repository-s3]. Was the plugin built before 2.0?

The steps I followed.

  1. service elasticsearch stop
  2. /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///root/repository-s3-5.2.2.zip
  3. service elasticsearch start

Am I missing something there?

The installation command was success and it return the message " Installed repository-s3"

Solution : Found that the repository directory didnt had read permission for other users . Since ES runs as elasticsearch user, hence it failed...

1 Like

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