sonarqube 6.6升级:不可恢复的索引失败

时间:2017-10-24 16:48:23

标签: sonarqube sonarqube-ops

在sonarqube 6.6从6.5(使用Debian软件包)升级后,声纳无法启动。我没有在升级之前更新插件。我只是让标准的Debian包升级了。我正在使用外部数据库(Postgresql)。 我在web.log中发现了以下错误:


    2017.10.24 18:12:34 ERROR web[][o.s.s.es.BulkIndexer] index [components], type [component], id [AVgpp1_-x6lKXwnU0BYQ], message [java.lang.IllegalArgumentException: can't specify parent if no parent field has been configured]
    2017.10.24 18:12:34 ERROR web[][o.s.s.p.Platform] Background initialization failed. Stopping SonarQube
    java.lang.IllegalStateException: Unrecoverable indexation failures
            at org.sonar.server.es.IndexingListener$1.onFinish(IndexingListener.java:39)
            at org.sonar.server.es.BulkIndexer.stop(BulkIndexer.java:117)
            at org.sonar.server.component.index.ComponentIndexer.doIndexByProjectUuid(ComponentIndexer.java:149)
            at org.sonar.server.component.index.ComponentIndexer.indexOnStartup(ComponentIndexer.java:71)
            at org.sonar.server.es.IndexerStartupTask.indexUninitializedTypes(IndexerStartupTask.java:68)
            at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
            at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
            at org.sonar.server.es.IndexerStartupTask.execute(IndexerStartupTask.java:55)
            at java.util.Optional.ifPresent(Optional.java:159)
            at org.sonar.server.platform.platformlevel.PlatformLevelStartup$1.doPrivileged(PlatformLevelStartup.java:91)
            at org.sonar.server.user.DoPrivileged.execute(DoPrivileged.java:45)
            at org.sonar.server.platform.platformlevel.PlatformLevelStartup.start(PlatformLevelStartup.java:87)
            at org.sonar.server.platform.Platform.executeStartupTasks(Platform.java:196)
            at org.sonar.server.platform.Platform.access$400(Platform.java:46)
            at org.sonar.server.platform.Platform$1.lambda$doRun$1(Platform.java:121)
            at org.sonar.server.platform.Platform$AutoStarterRunnable.runIfNotAborted(Platform.java:371)
            at org.sonar.server.platform.Platform$1.doRun(Platform.java:121)
            at org.sonar.server.platform.Platform$AutoStarterRunnable.run(Platform.java:355)
            at java.lang.Thread.run(Thread.java:748)

任何线索或解决方法?

1 个答案:

答案 0 :(得分:4)

我设法通过尝试另一次升级(恢复声纳6.5之后)和

来克服此错误
  • 升级前升级插件
  • 删除data / es5文件夹 遇到相同的错误并重新启动声纳。