Not able to start the elasticsearch service

Hi Team,

Getting below error while starting the elastic service for version
elasticsearch-7.8.1-amd64.deb
elasticsearch-7.7.0-amd64.deb
on ubuntu system and getting below error.

Please do the needful.

[2020-10-20T17:25:43,876][INFO ][o.e.e.NodeEnvironment ] [utl00tar01vm] using [1] data paths, mounts [[/ (/dev/sdb1)]], net usable_space [3.3gb], net total_space [28.9gb], types [ext4]
[2020-10-20T17:25:43,879][INFO ][o.e.e.NodeEnvironment ] [utl00tar01vm] heap size [1gb], compressed ordinary object pointers [true]
[2020-10-20T17:25:44,148][ERROR][o.e.b.Bootstrap ] [utl00tar01vm] Exception
org.elasticsearch.ElasticsearchException: failed to bind service
at org.elasticsearch.node.Node.(Node.java:638) ~[elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.node.Node.(Node.java:264) ~[elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:227) ~[elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:227) ~[elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:393) [elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:170) [elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:161) [elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127) [elasticsearch-cli-7.7.0.jar:7.7.0]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:126) [elasticsearch-7.7.0.jar:7.7.0]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.7.0.jar:7.7.0]
Caused by: org.apache.lucene.index.IndexFormatTooNewException: Format version is not supported (resource BufferedChecksumIndexInput(SimpleFSIndexInput(path="/var/lib/elasticsearch/nodes/0/_state/segments_sy"))): 10 (needs to be between 7 and 9)
at org.apache.lucene.codecs.CodecUtil.checkHeaderNoMagic(CodecUtil.java:216) ~[lucene-core-8.5.1.jar:8.5.1 edb9fc409398f2c3446883f9f80595c884d245d0 - ivera - 2020-04-08 08:55:42]
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:305) ~[lucene-core-8.5.1.jar:8.5.1 edb9fc409398f2c3446883f9f80595c884d245d0 - ivera - 2020-04-08 08:55:42]
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:289) ~[lucene-core-8.5.1.jar:8.5.1 edb9fc409398f2c3446883f9f80595c884d245d0 - ivera - 2020-04-08 08:55:42]
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:64) ~[lucene-core-8.5.1.jar:8.5.1 edb9fc409398f2c3446883f9f80595c884d245d0 - ivera - 2020-04-08 08:55:42]
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:61) ~[lucene-core-8.5.1.jar:8.5.1 edb9fc409398f2c3446883f9f80595c884d245d0 - ivera - 2020-04-08 08:55:42]

Thanks
Sanjeev Kumar N

How did you create these indices that you are trying to read - using which version? The exception is a IndexFormatTooNewException - basically a complaint that the data you are trying to read is too new and written with another major version of Elasticsearch and Lucene.

Hi Spinscale,

Thanks issue is resolved.

Steps taken.

Add the below config to /etc/elasticsearch/elasticsearch.yml
network.host: 127.0.0.1
http.host: 0.0.0.0

restart elasticsearch.

Happy to hear you resolved your issue. However I am not sure sure that those two configuration are linked in any way to indices, so please take a look at your logs over the next couple of days to make sure everything works as expected.

Thanks!

Sure let me monitor and update you. Thanks

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