在清除$ SONAR_HOME / data / es文件夹后,Sonarqube无法启动

时间:2018-01-16 21:00:16

标签: elasticsearch sonarqube

我在sonarqube日志中收到以下错误消息,并且无法访问sonarqube网页。我找到了清除$ SONAR_HOME / data / es /解决它的解决方案。但它没有。如果还有其他替代方法,请告诉我。

2017.11.30 08:58:51 WARN   es[o.e.index.engine]  [sonar-1511055210245] [tests][2] failed to sync translog
2017.11.30 08:58:56 WARN   es[o.e.indices.cluster]  [sonar-1511055210245] [[tests][2]] marking and sending shard failed due to [failed recovery]
org.elasticsearch.index.gateway.IndexShardGatewayRecoveryException: [tests][2] failed to recover shard
        at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:297) ~[elasticsearch-1.7.2.jar:na]
        at org.elasticsearch.index.gateway.IndexShardGatewayService$1.run(IndexShardGatewayService.java:112) ~[elasticsearch-1.7.2.jar:na]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
Caused by: org.elasticsearch.index.translog.TranslogCorruptedException: translog corruption while reading from stream
        at org.elasticsearch.index.translog.ChecksummedTranslogStream.read(ChecksummedTranslogStream.java:72) ~[elasticsearch-1.7.2.jar:na]
        at org.elasticsearch.index.gateway.local.LocalIndexShardGateway.recover(LocalIndexShardGateway.java:267) ~[elasticsearch-1.7.2.jar:na]
        ... 4 common frames omitted
Caused by: org.elasticsearch.ElasticsearchIllegalArgumentException: No version type match [74]
        at org.elasticsearch.index.VersionType.fromValue(VersionType.java:307) ~[elasticsearch-1.7.2.jar:na]
        at org.elasticsearch.index.translog.Translog$Create.readFrom(Translog.java:376) ~[elasticsearch-1.7.2.jar:na]
        at org.elasticsearch.index.translog.ChecksummedTranslogStream.read(ChecksummedTranslogStream.java:68) ~[elasticsearch-1.7.2.jar:na]
        ... 5 common frames omitted
2017.11.30 08:58:56 WARN   es[o.e.c.action.shard]  [sonar-1511055210245] [tests][2] received shard failed for [tests][2], node[9r3s5guCRgKKQI-_HWik4A], [P], s[INITIALIZING], unassigned_info[[reason=ALLOCATION_FAILED], at[2017-11-30T07:58:48.131Z], details[shard failure [failed recovery][IndexShardGatewayRecoveryException[[tests][2] failed to recover shard]; nested: TranslogCorruptedException[translog corruption while reading from stream]; nested: ElasticsearchIllegalArgumentException[No version type match [74]]; ]]], indexUUID [zxZqVHRoSX-t0EAMHY3Fqg], reason [shard failure [failed recovery][IndexShardGatewayRecoveryException[[tests][2] failed to recover shard]; nested: TranslogCorruptedException[translog corruption while reading from stream]; nested: ElasticsearchIllegalArgumentException[No version type match [74]]; ]]

1 个答案:

答案 0 :(得分:0)

由于权限问题,未删除$ SONAR_HOME / data / es /,但是一旦删除,它便解决了问题。