【发布时间】:2016-02-06 16:38:36
【问题描述】:
我正在尝试将 SonarQube v5.1 升级到 v5.2,但失败并出现以下错误:
ERROR web[o.s.s.d.m.DatabaseMigrator] Fail to execute database migration: org.sonar.db.version.v52.RemoveDuplicatedComponentKeys
java.lang.IllegalStateException: Error during processing of row:..................................................................
Caused by: java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@7f872fa8 is still active. No statements may be issued when any streaming result sets are open and in use on a given connection. Ensure that you have called .close() on any active streaming result sets before attempting more queries.
2015.11.05 09:08:32 INFO web[o.s.s.d.m.PlatformDatabaseMigration] DB migration failed | time=6911ms
2015.11.05 09:08:32 ERROR web[o.s.s.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, all later migrations canceled:
Fail to execute database migration: org.sonar.db.version.v52.RemoveDuplicatedComponentKeys
【问题讨论】:
-
这个问题有什么进展吗?我从 5.0 升级到 5.2 时遇到同样的问题。
-
我以后没有尝试升级。 SonarQube 发布了 5.3 版,看起来这个问题在升级中得到了解决。 jira.sonarsource.com/browse/SONAR-7137