coming from: elasticsearch failed recover after crash , delete project sonarqube
i deleted project , went cli , did restart , fialed :
2015.05.08 15:10:57 info es[o.s.p.processentrypoint] starting search 2015.05.08 15:10:57 info es[o.s.s.searchserver] starting elasticsearch[sonarqube] on port 9001 2015.05.08 15:10:58 info es[o.elasticsearch.node] [sonar-1431061857323] version[1.4.4], pid[6991], build[c88f77f/2015-02-19t13:05:36z] 2015.05.08 15:10:58 info es[o.elasticsearch.node] [sonar-1431061857323] initializing ... 2015.05.08 15:10:58 info es[o.e.plugins] [sonar-1431061857323] loaded [], sites [] 2015.05.08 15:10:59 info es[o.elasticsearch.node] [sonar-1431061857323] initialized 2015.05.08 15:10:59 info es[o.elasticsearch.node] [sonar-1431061857323] starting ... 2015.05.08 15:11:00 info es[o.e.transport] [sonar-1431061857323] bound_address {inet[/0.0.0.0:9001]}, publish_address {inet[/192.168.78.76:9001]} 2015.05.08 15:11:00 info es[o.e.discovery] [sonar-1431061857323] sonarqube/kkvxwlqcrlgbdsgjzt90ua 2015.05.08 15:11:03 info es[o.e.cluster.service] [sonar-1431061857323] new_master [sonar-1431061857323][kkvxwlqcrlgbdsgjzt90ua][java-ci.gbst.net][inet[/192.168.78.76:9001]]{rack_id=sonar-1431061857323}, reason: zen-disco-join (elected_as_master) 2015.05.08 15:11:03 info es[o.elasticsearch.node] [sonar-1431061857323] started 2015.05.08 15:11:04 info es[o.e.gateway] [sonar-1431061857323] recovered [6] indices cluster_state 2015.05.08 15:11:45 warn es[o.e.indices.cluster] [sonar-1431061857323] [sourcelines][0] failed start shard org.elasticsearch.index.gateway.indexshardgatewayrecoveryexception: [sourcelines][0] failed recover shard @ org.elasticsearch.index.gateway.local.localindexshardgateway.recover(localindexshardgateway.java:287) ~[elasticsearch-1.4.4.jar:na] @ org.elasticsearch.index.gateway.indexshardgatewayservice$1.run(indexshardgatewayservice.java:132) ~[elasticsearch-1.4.4.jar:na] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [na:1.7.0_75] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [na:1.7.0_75] @ java.lang.thread.run(thread.java:745) [na:1.7.0_75] caused by: org.elasticsearch.index.translog.translogcorruptedexception: translog corruption while reading stream @ org.elasticsearch.index.translog.checksummedtranslogstream.read(checksummedtranslogstream.java:70) ~[elasticsearch-1.4.4.jar:na] @ org.elasticsearch.index.gateway.local.localindexshardgateway.recover(localindexshardgateway.java:257) ~[elasticsearch-1.4.4.jar:na] ... 4 common frames omitted caused by: org.elasticsearch.elasticsearchillegalargumentexception: no version type match [34] @ org.elasticsearch.index.versiontype.fromvalue(versiontype.java:307) ~[elasticsearch-1.4.4.jar:na] @ org.elasticsearch.index.translog.translog$create.readfrom(translog.java:374) ~[elasticsearch-1.4.4.jar:na] @ org.elasticsearch.index.translog.checksummedtranslogstream.read(checksummedtranslogstream.java:68) ~[elasticsearch-1.4.4.jar:na] ... 5 common frames omitted 2015.05.08 15:11:45 warn es[o.e.c.action.shard] [sonar-1431061857323] [sourcelines][0] sending failed shard [sourcelines][0], node[kkvxwlqcrlgbdsgjzt90ua], [p], s[initializing], indexuuid [ppjsirsgt4smdwdqigkhga], reason [failed start shard, message [indexshardgatewayrecoveryexception[[sourcelines][0] failed recover shard]; nested: translogcorruptedexception[translog corruption while reading stream]; nested: elasticsearchillegalargumentexception[no version type match [34]]; ]] 2015.05.08 15:11:45 warn es[o.e.c.action.shard] [sonar-1431061857323] [sourcelines][0] received shard failed [sourcelines][0], node[kkvxwlqcrlgbdsgjzt90ua], [p], s[initializing], indexuuid [ppjsirsgt4smdwdqigkhga], reason [failed start shard, message [indexshardgatewayrecoveryexception[[sourcelines][0] failed recover shard]; nested: translogcorruptedexception[translog corruption while reading stream]; nested: elasticsearchillegalargumentexception[no version type match [34]]; ]]
how able restart. need clean translog cant seem find how can that.
edit: deleted non 0 translog file , restarted , gave same error , recreated 17b translog file again. didnt help.
thanks syed
it seems embedded elasticsearch index corrupt. have stop server, remove contents of directory $sq_home/data/es
, restart server. should build es index clean.
Comments
Post a Comment