java.lang.IllegalStateException: /usr/share/elasticsearch/lib/elasticsearch-5.1.1.jar requires Elasticsearch 5.1.1, your system: 5.1.2

shed some light on this for me...

[2017-01-28T16:58:41,538][ERROR][o.e.b.Bootstrap          ] Exception
java.lang.IllegalStateException: /usr/share/elasticsearch/lib/elasticsearch-5.1.1.jar requires Elasticsearch 5.1.1, your system: 5.1.2
        at org.elasticsearch.bootstrap.JarHell.checkManifest(JarHell.java:225) ~[elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:178) ~[elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:88) ~[elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:202) ~[elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.2.jar:5.1.2]
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.2.jar:5.1.2]

My environment:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.3 (Maipo)
# uname -a
Linux X 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q elasticsearch
elasticsearch-5.1.1-1.noarch
# 

Please advice,
Thanks!

Have you previously installed Elasticsearch 5.1.2 on this server?

I ran yum update to update to latest version (5.1.1 to 5.1.2), but after update elasticsearch won't come up and I'm seeing this error inside of logs...

Can you look through your Elasticsearch directories to confirm that the yum update ran successfully. All files should be placed in their proper locations, and config files should not be overwritten.

# grep elasticsearch- /var/log/yum.log
Jan 28 14:12:05 elasticsearch-5.1.2-1.noarch: 100
# 

yet:

# rpm -q elasticsearch
elasticsearch-5.1.1-1.noarch
# 

also,

# ll /usr/share/elasticsearch/lib/elasticsearch-5.1.*
-rw-r--r--. 1 root root 9511539 Dec  6 07:36 /usr/share/elasticsearch/lib/elasticsearch-5.1.1.jar
-rw-r--r--. 1 root root 9523154 Jan 11 15:18 /usr/share/elasticsearch/lib/elasticsearch-5.1.2.jar
#

FYI,

I re-installed elasticsearch (yum remove elasticsearch && yum install elasticsearch) and now it's all peachy)

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