CentOS: Failed to start Elasticsearch 7.3.1

Hi there,
Some time ago I installed ELKB-Stack on CentOS7. It was running great. Everything was working. Unfortunately it was broken about half a year ago, but I did not got time to look after it earlier.
In meantime I think there were some system updates. Maybe the elasticsearch was broken by one, but I'm not sure.
Now I can't start elasticsearch.service anymore and I can't find out why. When starting elasticsearch manually I'm everytime getting following output:

sudo /usr/share/elasticsearch/bin/elasticsearch

A tool for managing settings stored in the elasticsearch keystore

Commands
--------
create - Creates a new elasticsearch keystore
list - List entries in the keystore
add - Add a string setting to the keystore
add-file - Add a file setting to the keystore
remove - Remove a setting from the keystore
upgrade - Upgrade the keystore format

Non-option arguments:
command

Option         Description
------         -----------
-h, --help     show help
-s, --silent   show minimal output
-v, --verbose  show verbose output
ERROR: Unknown command [has-passwd]
Exception in thread "main" java.io.IOException: Is a directory
        at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
        at java.base/sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:48)
        at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
        at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
        at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:229)
        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:107)
        at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:101)
        at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:297)
        at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
        at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:188)
        at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)
        at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
        at java.base/java.io.BufferedReader.readLine(BufferedReader.java:326)
        at java.base/java.io.BufferedReader.readLine(BufferedReader.java:392)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.parse(JvmOptionsParser.java:206)
        at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:64)

Unfortunately I can't remenber which exact version of elasticsearch was installed, but Kibana is 7.7.0.

Update: yum tells that elasticsearch is 7.3.1

Maybe you can give a hint where to search?

Thanks in advance
Tobias

Did you install it with an RPM or a repo? If so use rpm -qi|grep Elasticsearch to show what version is installed.

Great hint, Mark.

We installed with yum. It tells elasticsearch is 7.3.1

What is annoying: We installed in beginning of september 2019. This matches to release time of elasticsearch version. From version history Kibana then also needs to be 7.3.1. But in fact it is 7.7.0 which was released in may 2020. This is also the time where it was broken. So it seems that somebody had his hands on the installation...arghh

So what is the best way to fix a broken/incompatible installation? It would be great to not loose the data and config.

If Kibana is at 7.7 then it'd be best to upgrade Elasticsearch to match.

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