[ERROR][o.e.b.Bootstrap ] [X.Y.Z] Exception

Hello World!

My environment:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.6 (Maipo)
# uname -a
Linux X 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux
# 
# rpm -q elasticsearch
elasticsearch-6.7.1-1.noarch
# 

I'm trying to start elasticsearch, yet as soon as elasticsearch.service service starts, it fails...

# cat /var/log/elasticsearch/X.log 
[2019-04-17T11:56:48,317][INFO ][o.e.e.NodeEnvironment    ] [X.Y.Z using [1] data paths, mounts [[/ (rootfs)]], net usable_space [35.7gb], net total_space [59.7gb], types [rootfs]
[2019-04-17T11:56:48,320][INFO ][o.e.e.NodeEnvironment    ] [X.Y.Z] heap size [7.8gb], compressed ordinary object pointers [true]
[2019-04-17T11:56:48,322][INFO ][o.e.n.Node               ] [X.Y.Z] node name [X.Y.Z], node ID [CJZde1tkTISJdjg-yw-Ymg]
[2019-04-17T11:56:48,322][INFO ][o.e.n.Node               ] [X.Y.Z] version[6.7.1], pid[16877], build[default/rpm/2f32220/2019-04-02T15:59:27.961366Z], OS[Linux/3.10.0-957.5.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_201/25.201-b09]
[2019-04-17T11:56:48,322][INFO ][o.e.n.Node               ] [X.Y.Z JVM arguments [-Xms8g, -Xmx8g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=rpm]
[2019-04-17T11:56:48,349][ERROR][o.e.b.Bootstrap          ] [X.Y.Z] Exception
java.lang.IllegalStateException: Duplicate key org.elasticsearch.plugins.PluginsService$Bundle@dfcd13ae
	at java.util.stream.Collectors.lambda$throwingMerger$0(Collectors.java:133) ~[?:1.8.0_201]
	at java.util.HashMap.merge(HashMap.java:1254) ~[?:1.8.0_201]
	at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) ~[?:1.8.0_201]
	at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:1.8.0_201]
	at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_201]
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[?:1.8.0_201]
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_201]
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_201]
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_201]
	at org.elasticsearch.plugins.PluginsService.sortBundles(PluginsService.java:420) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:466) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:163) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.node.Node.<init>(Node.java:339) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.node.Node.<init>(Node.java:266) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.7.1.jar:6.7.1]
	at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:116) [elasticsearch-6.7.1.jar:6.7.1]
	at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.7.1.jar:6.7.1]

Please advise.

Hmm, that's not a very useful error message is it? It's telling us that you have two plugins with the same name installed, but JDK 8 doesn't tell us the name of the plugin. Can you tell us what plugins you have installed? Can you use a more recent JDK? I checked JDK 11 and it looks like it'll give a more helpful message.

Is this an installation from scratch or is it an upgrade? If it's an upgrade, can you make sure that all the plugins are upgraded to the right version too?

Where plug-ins are located? or how do I delete it completely?

I've tried "yum remove elasticsearch" and then "yum install elasticsearch", but apparently there was something left...

I think you can get a list with bin/elasticsearch-plugin list (run from wherever Elasticsearch is installed).

I'm not sure if elasticsearch-plugin list would work even when elasticsearch down, so I went slightly different route:

# yum remove elasticsearch filebeat kibana logstash metricbeat
# rm -rf /usr/share/{elasticsearch,filebeat,kibana,logstash,metricbeat}
# rm -rf /etc/{elasticsearch,filebeat,kibana,logstash,metricbeat
# yum install --assumeyes elasticsearch filebeat kibana logstash metricbeat
# 

although, removing double plug-in probably a better idea) I'm at my test environment, so I don't really care...

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