【问题标题】:What is the reason for receiving jdbc error when attempting SonarQube 5.6 install尝试安装 SonarQube 5.6 时收到 jdbc 错误的原因是什么
【发布时间】:2016-10-09 12:17:17
【问题描述】:

我们将从 SonarQube-4.5.7 升级到 SonarQube -5.6。在安装后启动 Sonar 时,sonar.log 会捕获此错误:

ActiveRecord::JDBCError: The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.projects' and the index name 'projects_uuid'. The duplicate key value is (xxxxxxx).: CREATE UNIQUE INDEX [projects_uuid] ON [projects] ([uuid])

我查看了与此错误的第一部分有关的其他问题,但这些问题指向插件的问题。我们已删除插件以排除问题的可能性。它还在查看数据库中的插件信息吗?或者它真的是由于表中的重复键而导致的错误?如果是这样,最好的解决方法是什么?

【问题讨论】:

    标签: installation upgrade sonarqube-4.5 sonarqube5.6


    【解决方案1】:

    此错误是由于未使用 VARCHAR 列的正确排序规则更新数据库。它需要是 Latin1_General_CS_AS。密钥被认为是另一个密钥的副本,而没有使用它需要的区分大小写。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-16
      • 2016-02-15
      • 2022-12-12
      • 2017-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多