Getting Error in ElasticSearch


(Amit) #1

Hi Guys,

I am unable to run ElasticSearch. Getting error like this -

Not able to open Kibana also.

Kindly suggest me solution.


(Mark Walkom) #2

Can you please post the text rather than a screenshot of it, it's impossible to read.


(Amit) #3

[2015-12-07 10:03:54,865][INFO ][node ] [Elasticsearch_Amit] version[1.7.2], pid[4088], build[e43676b/2015-09-14T09:49:53Z]
[2015-12-07 10:03:54,865][INFO ][node ] [Elasticsearch_Amit] initializing ...
[2015-12-07 10:03:54,975][INFO ][plugins ] [Elasticsearch_Amit] loaded [marvel], sites [marvel, head]
[2015-12-07 10:03:55,015][INFO ][env ] [Elasticsearch_Amit] using [1] data paths, mounts [[(C:)]], net usable_space [30.4gb], net total_space [99.7gb], types [NTFS]
[2015-12-07 10:03:59,986][INFO ][node ] [Elasticsearch_Amit] initialized
[2015-12-07 10:03:59,986][INFO ][node ] [Elasticsearch_Amit] starting ...
[2015-12-07 10:04:00,328][INFO ][transport ] [Elasticsearch_Amit] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.0.107:9300]}
[2015-12-07 10:04:00,758][INFO ][discovery ] [Elasticsearch_Amit] Testing/QvoK3iT9TtuuVYJyTefnCg
[2015-12-07 10:04:04,588][INFO ][cluster.service ] [Elasticsearch_Amit] new_master [Elasticsearch_Amit][QvoK3iT9TtuuVYJyTefnCg][IGB-PC][inet[/192.168.0.107:9300]], reason: zen-disco-join (elected_as_master)
[2015-12-07 10:04:05,412][INFO ][gateway ] [Elasticsearch_Amit] recovered [91] indices into cluster_state
[2015-12-07 10:04:05,444][INFO ][http ] [Elasticsearch_Amit] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.0.107:9200]}
[2015-12-07 10:04:05,447][INFO ][node ] [Elasticsearch_Amit] started
[2015-12-07 10:04:13,169][INFO ][cluster.metadata ] [Elasticsearch_Amit] [.marvel-2015.12.07] creating index, cause [auto(bulk api)], templates [marvel], shards [1]/[1], mappings [default, shard_event, index_event, index_stats, node_event, routing_event, cluster_event, cluster_state, cluster_stats, node_stats, indices_stats]
[2015-12-07 10:04:13,698][WARN ][indices.cluster ] [Elasticsearch_Amit] [[.marvel-2015.12.04][0]] marking and sending shard failed due to [failed recovery]
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException: [.marvel-2015.12.04][0] failed recovery
at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.elasticsearch.index.engine.EngineCreationFailureException: [.marvel-2015.12.04][0] failed to open reader on writer
at org.elasticsearch.index.engine.InternalEngine.createSearcherManager(InternalEngine.java:201)
at org.elasticsearch.index.engine.InternalEngine.(InternalEngine.java:146)
at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:32)
at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1355)
at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1350)
at org.elasticsearch.index.shard.IndexShard.prepareForTranslogRecovery(IndexShard.java:870)
at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:233)
at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:112)
... 3 more
Caused by: java.nio.file.NoSuchFileException: C:\elasticsearch-1.7.2\elasticsearch-1.7.2\data\Testing\nodes\0\indices.marvel-2015.12.04\0\index_wv_Lucene41_0.tip


(Amit) #4

Please give some solution, ES and Kibana is not working. In logs file its size in MB, continuously its fail.


(Vincent Tran) #5

This doesn't seem like a fresh ES startup. The ES cluster is recovering from an outage (node restart, ES service restart) and is unable to find the data files. Please provide us with some history / background. What were you doing before? What are you trying to do now. ES cluster topology, etc.

Otherwise, you can simply check to see why C:\elasticsearch-1.7.2\elasticsearch-1.7.2\data\Testing\nodes\0\indices.marvel-2015.12.04\0\index_wv_Lucene41_0.tip cannot be found on this particular ES node, and investigate from there yourself.


(Amit) #6

Hi,

I have imported data using python scripts and developed charts and dashboards. from 5th Dec I am facing issue. I havn't changed any configuration or anything.

today also getting logs like:

[2015-12-10 11:25:22,329][INFO ][node ] [Elasticsearch_Amit] version[1.7.2], pid[5308], build[e43676b/2015-09-14T09:49:53Z]
[2015-12-10 11:25:22,338][INFO ][node ] [Elasticsearch_Amit] initializing ...
[2015-12-10 11:25:22,480][INFO ][plugins ] [Elasticsearch_Amit] loaded [marvel], sites [marvel, head]
[2015-12-10 11:25:22,528][INFO ][env ] [Elasticsearch_Amit] using [1] data paths, mounts [[(C:)]], net usable_space [24.7gb], net total_space [99.7gb], types [NTFS]
[2015-12-10 11:25:27,935][INFO ][node ] [Elasticsearch_Amit] initialized
[2015-12-10 11:25:27,935][INFO ][node ] [Elasticsearch_Amit] starting ...
[2015-12-10 11:25:28,255][INFO ][transport ] [Elasticsearch_Amit] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.0.105:9300]}
[2015-12-10 11:25:28,685][INFO ][discovery ] [Elasticsearch_Amit] Testing/cgpJGCnfQe279H_pT3rmpA
[2015-12-10 11:25:32,491][INFO ][cluster.service ] [Elasticsearch_Amit] new_master [Elasticsearch_Amit][cgpJGCnfQe279H_pT3rmpA][IGB-PC][inet[/192.168.0.105:9300]], reason: zen-disco-join (elected_as_master)
[2015-12-10 11:25:32,921][INFO ][http ] [Elasticsearch_Amit] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.0.105:9200]}
[2015-12-10 11:25:32,921][INFO ][node ] [Elasticsearch_Amit] started
[2015-12-10 11:25:33,171][INFO ][gateway ] [Elasticsearch_Amit] recovered [83] indices into cluster_state
[2015-12-10 11:25:38,840][WARN ][indices.cluster ] [Elasticsearch_Amit] [[.marvel-2015.12.07][0]] marking and sending shard failed due to [failed recovery]
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException: [.marvel-2015.12.07][0] failed recovery
at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:162)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.elasticsearch.index.engine.EngineCreationFailureException: [.marvel-2015.12.07][0] failed to open reader on writer
at org.elasticsearch.index.engine.InternalEngine.createSearcherManager(InternalEngine.java:201)
at org.elasticsearch.index.engine.InternalEngine.(InternalEngine.java:146)
at org.elasticsearch.index.engine.InternalEngineFactory.newReadWriteEngine(InternalEngineFactory.java:32)
at org.elasticsearch.index.shard.IndexShard.newEngine(IndexShard.java:1355)
at org.elasticsearch.index.shard.IndexShard.createNewEngine(IndexShard.java:1350)
at org.elasticsearch.index.shard.IndexShard.prepareForTranslogRecovery(IndexShard.java:870)
at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:233)
at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:112)
... 3 more
Caused by: java.nio.file.NoSuchFileException: C:\elasticsearch-1.7.2\elasticsearch-1.7.2\data\Testing\nodes\0\indices.marvel-2015.12.07\0\index_2d_Lucene41_0.tip
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:79)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:115)
at java.nio.channels.FileChannel.open(FileChannel.java:287)
at java.nio.channels.FileChannel.open(FileChannel.java:335)
at org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:196)
at org.apache.lucene.store.FilterDirectory.openInput(FilterDirectory.java:80)
at org.apache.lucene.store.FilterDirectory.openInput(FilterDirectory.java:80)
at org.apache.lucene.store.FilterDirectory.openInput(FilterDirectory.java:80)
at org.elasticsearch.index.store.Store$StoreDirectory.openInput(Store.java:733)


(Amit) #7

Can anyone help??? Still getting same error, not able to attach logs here.


(Isaac Perez Moncho) #8

Do you need the above index?


(Amit) #9

No I don't need mentioned index.


(Isaac Perez Moncho) #10

This is very cowboy like, but you can try to move the folder of the index, indices.marvel-2015.12.04, to another location and start ES.
I had a similar problem with an index before and this made ES start.


(system) #11