Hi there,
am getting an ElasticsearchUncaughtExceptionHandler error and not able to start elasticsearch. All I know was there was there was an abrupt shutdown of my server and since then am not able to start the elasticsearch node. The log files are below
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.11.0.jar:7.11.0]
Caused by: java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:276) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:184) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:75) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:201) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.0.jar:7.11.0]
... 6 more
uncaught exception in thread [main]
java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:276)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:184)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:75)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:201)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116)
at org.elasticsearch.cli.Command.main(Command.java:79)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81)
For complete error details, refer to the log at /Users/anandgavai/Documents/elasticDevelopment/elasticsearch-7.11.0/logs/elasticsearch.log
Hi @warkolm,
Thanks for responding, here is what I have located in the logs folder elasticsearch.log file ?
[2023-02-24T11:42:32,899][ERROR][o.e.b.Bootstrap ] [Mac-Studio-84] Exception
java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:276) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:184) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:75) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:201) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) [elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) [elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) [elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.cli.Command.main(Command.java:79) [elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) [elasticsearch-7.11.0.jar:7.11.0]
[2023-02-24T11:42:32,934][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [Mac-Studio-84] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:75) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:116) ~[elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.cli.Command.main(Command.java:79) ~[elasticsearch-cli-7.11.0%202.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:81) ~[elasticsearch-7.11.0.jar:7.11.0]
Caused by: java.lang.IllegalStateException: jar hell!
class: org.elasticsearch.tools.java_version_checker.JavaVersion
jar1: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0.jar
jar2: /Users/anandgavai/Documents/elasticDevelopment/zelasticsearch-7.11.0_bak/lib/java-version-checker-7.11.0 2.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:276) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:184) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:75) ~[elasticsearch-core-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:201) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:387) ~[elasticsearch-7.11.0.jar:7.11.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.11.0.jar:7.11.0]
... 6 more
This indicates that you (or something on your system) has modified the contents of /lib/, breaking this installation. It's probably best to do a clean reinstall.
Thanks @DavidTurner. Actually I did try to setup another installation when I moved to my data and config directory back to the this new installation the new installation is still not able to start elasticsearch ? Any leads would really help in me getting this data back ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.