Windows ES Errors on 5.3.1 update to 5.4.0


(Landon Edwards) #1

I am doing my first version update on ES and am not able to start Elasticsearch after moving the new 5.4.0 files into my ES directory. I downloaded the new zip file, moved everything except the config folder to my ES directory, and when I run elasticsearch.bat, I get the error below. Am I doing something wrong on the update? Anyone else having this issue?

[2017-05-16T15:13:18,883][ERROR][o.e.b.Bootstrap ] Exception
java.lang.IllegalStateException: c:\elastic\elasticsearch\lib\elasticsearch-5.4.0.jar requires Elasticsearch 5.4.0, your system: 5.3.1
at org.elasticsearch.bootstrap.JarHell.checkManifest(JarHell.java:225) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:178) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:88) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:230) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:58) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) [elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) [elasticsearch-5.3.1.jar:5.3.1]
[2017-05-16T15:13:18,898][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: c:\elastic\elasticsearch\lib\elasticsearch-5.4.0.jar requires Elasticsearch 5.4.0, your system: 5.3.1
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:127) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:58) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.cli.Command.main(Command.java:88) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84) ~[elasticsearch-5.3.1.jar:5.3.1]
Caused by: java.lang.IllegalStateException: c:\elastic\elasticsearch\lib\elasticsearch-5.4.0.jar requires Elasticsearch 5.4.0, your system: 5.3.1
at org.elasticsearch.bootstrap.JarHell.checkManifest(JarHell.java:225) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:178) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:88) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:230) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:360) ~[elasticsearch-5.3.1.jar:5.3.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123) ~[elasticsearch-5.3.1.jar:5.3.1]
... 6 more


(David Pilato) #2

When you moved your files you probably merged 5.3 and 5.4 lib dir.

A better process could be:

  • unzip
  • mv old/config/* new/config
  • mv old/data new

Then launch


(Landon Edwards) #3

That was it, rookie mistake on my part. Thanks for the advice!


(system) #4

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