Failed to load plugin readonlyrest due to jar hell - 1.16.34.ES


(Ravikanth) #1

Hello ROR Team,

With the latest plugin of ES, we are seeing the below. I am trying to debug this in parallel.

The version of the plugin we have is

readonlyrest-1.16.34_es6.5.4.tar.gz

org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to load plugin readonlyrest due to jar hell
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.4.jar:6.5.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.4.jar:6.5.4]
Caused by: java.lang.IllegalStateException: failed to load plugin readonlyrest due to jar hell
at org.elasticsearch.plugins.PluginsService.checkBundleJarHell(PluginsService.java:517) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:462) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:156) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.node.Node.(Node.java:338) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.node.Node.(Node.java:265) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.4.jar:6.5.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.4.jar:6.5.4]
… 6 more


(Simone Scarduzio) #2

do you have other plugins installed?


(Ravikanth) #3

I dont have any other plugins installed.


(Simone Scarduzio) #4

I cannot reproduce this, just tried. Can you launch this command?

$ find lib plugins
lib
lib/lucene-memory-7.5.0.jar
lib/log4j-api-2.11.1.jar
lib/lucene-grouping-7.5.0.jar
lib/elasticsearch-launchers-6.5.4.jar
lib/tools
lib/tools/security-cli
lib/tools/security-cli/elasticsearch-security-cli-6.5.4.jar
lib/tools/security-cli/bcpkix-jdk15on-1.59.jar
lib/tools/security-cli/bcprov-jdk15on-1.59.jar
lib/tools/plugin-cli
lib/tools/plugin-cli/bcpg-jdk15on-1.59.jar
lib/tools/plugin-cli/elasticsearch-plugin-cli-6.5.4.jar
lib/tools/plugin-cli/bcprov-jdk15on-1.59.jar
lib/lucene-backward-codecs-7.5.0.jar
lib/elasticsearch-core-6.5.4.jar
lib/lucene-misc-7.5.0.jar
lib/jopt-simple-5.0.2.jar
lib/lucene-sandbox-7.5.0.jar
lib/lucene-core-7.5.0.jar
lib/log4j-core-2.11.1.jar
lib/jackson-dataformat-yaml-2.8.11.jar
lib/log4j-1.2-api-2.11.1.jar
lib/elasticsearch-6.5.4.jar
lib/lucene-highlighter-7.5.0.jar
lib/t-digest-3.2.jar
lib/lucene-spatial3d-7.5.0.jar
lib/snakeyaml-1.17.jar
lib/jna-4.5.1.jar
lib/jackson-dataformat-smile-2.8.11.jar
lib/lucene-analyzers-common-7.5.0.jar
lib/lucene-suggest-7.5.0.jar
lib/spatial4j-0.7.jar
lib/hppc-0.7.1.jar
lib/lucene-queries-7.5.0.jar
lib/lucene-queryparser-7.5.0.jar
lib/joda-time-2.10.1.jar
lib/elasticsearch-x-content-6.5.4.jar
lib/HdrHistogram-2.1.9.jar
lib/jackson-dataformat-cbor-2.8.11.jar
lib/lucene-spatial-extras-7.5.0.jar
lib/lucene-spatial-7.5.0.jar
lib/jackson-core-2.8.11.jar
lib/elasticsearch-secure-sm-6.5.4.jar
lib/java-version-checker-6.5.4.jar
lib/plugin-classloader-6.5.4.jar
lib/elasticsearch-cli-6.5.4.jar
lib/lucene-join-7.5.0.jar
lib/jts-core-1.15.0.jar
plugins
plugins/readonlyrest
plugins/readonlyrest/commons-1.16.34.jar
plugins/readonlyrest/commons-logging-1.2.jar
plugins/readonlyrest/jjwt-api-0.10.5.jar
plugins/readonlyrest/reflections-0.9.11.jar
plugins/readonlyrest/gson-2.8.2.jar
plugins/readonlyrest/guava-20.0.jar
plugins/readonlyrest/netty-handler-4.1.30.Final.jar
plugins/readonlyrest/json-path-2.2.0.jar
plugins/readonlyrest/netty-resolver-4.1.30.Final.jar
plugins/readonlyrest/slf4j-api-1.7.25.jar
plugins/readonlyrest/core-1.16.34.jar
plugins/readonlyrest/readonlyrest-1.16.34_es6.5.4.jar
plugins/readonlyrest/jackson-annotations-2.9.0.jar
plugins/readonlyrest/httpclient-4.5.3.jar
plugins/readonlyrest/netty-buffer-4.1.30.Final.jar
plugins/readonlyrest/shaded-guava-21.0.jar
plugins/readonlyrest/json-smart-2.3.jar
plugins/readonlyrest/jool-0.9.12.jar
plugins/readonlyrest/netty-codec-4.1.30.Final.jar
plugins/readonlyrest/jjwt-impl-0.10.5.jar
plugins/readonlyrest/javassist-3.21.0-GA.jar
plugins/readonlyrest/httpasyncclient-4.1.3.jar
plugins/readonlyrest/commons-codec-1.11.jar
plugins/readonlyrest/unboundid-ldapsdk-4.0.9.jar
plugins/readonlyrest/asm-5.0.4.jar
plugins/readonlyrest/accessors-smart-1.2.jar
plugins/readonlyrest/transport-netty4-client-6.5.4.jar
plugins/readonlyrest/ipaddress-5.0.0.jar
plugins/readonlyrest/netty-codec-http-4.1.30.Final.jar
plugins/readonlyrest/jjwt-jackson-0.10.5.jar
plugins/readonlyrest/httpcore-4.4.6.jar
plugins/readonlyrest/slf4j-nop-1.7.25.jar
plugins/readonlyrest/netty-common-4.1.30.Final.jar
plugins/readonlyrest/httpcore-nio-4.4.6.jar
plugins/readonlyrest/jackson-databind-2.9.6.jar
plugins/readonlyrest/plugin-descriptor.properties
plugins/readonlyrest/netty-transport-4.1.30.Final.jar
plugins/readonlyrest/plugin-security.policy