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

**URL:** <https://discuss.elastic.co/t/es-5-2-2-es-datanode-restart-fails-after-repository-s3-plugin-installed/82938>\
**Category:** Elasticsearch\
**Created:** [April 19, 2017, 6:11pm UTC](https://discuss.elastic.co/t/es-5-2-2-es-datanode-restart-fails-after-repository-s3-plugin-installed/82938 "2017-04-19T18:11:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jayanna\_Hallur](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayanna\_Hallur](https://discuss.elastic.co/u/Jayanna_Hallur)\
**Post date:** [April 19, 2017, 6:11pm UTC](https://discuss.elastic.co/t/es-5-2-2-es-datanode-restart-fails-after-repository-s3-plugin-installed/82938/1 "2017-04-19T18:11:08Z")

</div>

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](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"

---

<div class="post-metadata">

**Author:** ![Jayanna\_Hallur](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@Jayanna\_Hallur](https://discuss.elastic.co/u/Jayanna_Hallur)\
**Post date:** [April 19, 2017, 8:35pm UTC](https://discuss.elastic.co/t/es-5-2-2-es-datanode-restart-fails-after-repository-s3-plugin-installed/82938/3 "2017-04-19T20:35:50Z")

</div>

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

---

<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:** [May 17, 2017, 8:39pm UTC](https://discuss.elastic.co/t/es-5-2-2-es-datanode-restart-fails-after-repository-s3-plugin-installed/82938/4 "2017-05-17T20:39:39Z")

</div>

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