声纳5.6:无法更新问题

时间:2017-02-01 10:33:52

标签: sonarqube issue-tracking sonarqube5.6

我尝试更新UI上的问题(指定/设置严重性/打开)。但没有任何补充。 当我看到网络交换机时,我有一个404: {“errors”:[{“msg”:“问题与密钥'76b53a17-fa8f-4d04-b999-1fd5e401fee0'不存在”}]}

但我在我的数据库(mysql)中发现了我的问题:

mysql> select kee from issues where kee='76b53a17-fa8f-4d04-b999-1fd5e401fee0';
+--------------------------------------+
| kee                                  |
+--------------------------------------+
| 76b53a17-fa8f-4d04-b999-1fd5e401fee0 |
+--------------------------------------+
1 row in set (0.00 sec)

我们试图找到执行我的声纳的查询。我们只是在声纳的头版(IssueFinder和IBatis配置)上找到它并且它的工作:

select i.id,
i.kee as kee,
i.rule_id as ruleId,
i.severity as severity,
i.manual_severity as manualSeverity,
i.message as message,
i.line as line,
i.locations as locations,
i.gap as gap,
i.effort as effort,
i.status as status,
i.resolution as resolution,
i.checksum as checksum,
i.assignee as assignee,
i.author_login as authorLogin,
i.tags as tagsString,
i.issue_attributes as issueAttributes,
i.issue_creation_date as issueCreationTime,
i.issue_update_date as issueUpdateTime,
i.issue_close_date as issueCloseTime,
i.created_at as createdAt,
i.updated_at as updatedAt,
r.plugin_rule_key as ruleKey,
r.plugin_name as ruleRepo,
r.language as language,
p.kee as componentKey,
i.component_uuid as componentUuid,
p.module_uuid as moduleUuid,
p.module_uuid_path as moduleUuidPath,
p.path as filePath,
root.kee as projectKey,
i.project_uuid as projectUuid,
i.issue_type as type
from issues i
    inner join rules r on r.id=i.rule_id
    inner join projects p on p.uuid=i.component_uuid
    inner join projects root on root.uuid=i.project_uuid
where i.kee='76b53a17-fa8f-4d04-b999-1fd5e401fee0';

它返回一行。 我能做什么?这是一个错误吗?

1 个答案:

答案 0 :(得分:2)

ES文件夹可能已损坏。以下是清理它的步骤:

  1. 停止SonarQube服务器
  2. 删除{SONARQUBE_INSTALLATION} / data / es文件夹
  3. 重新启动服务器