# CentOS: Failed to start Elasticsearch 7.3.1

**URL:** <https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767>\
**Category:** Elasticsearch\
**Created:** [November 9, 2020, 2:26pm UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767 "2020-11-09T14:26:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![obi134](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@obi134](https://discuss.elastic.co/u/obi134)\
**Post date:** [November 9, 2020, 2:26pm UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767/1 "2020-11-09T14:26:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 9, 2020, 9:58pm UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767/2 "2020-11-09T21:58:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![obi134](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@obi134](https://discuss.elastic.co/u/obi134)\
**Post date:** [November 10, 2020, 8:01am UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767/3 "2020-11-10T08:01:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 10, 2020, 7:54pm UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767/4 "2020-11-10T19:54:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2020, 7:54pm UTC](https://discuss.elastic.co/t/centos-failed-to-start-elasticsearch-7-3-1/254767/5 "2020-12-08T19:54:37Z")

</div>

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