Sonarqube 声纳安装问题

Sonarqube 声纳安装问题,sonarqube,Sonarqube,有关安装的信息 使用嵌入式数据库Derbis 问题: 我运行bin/windows-x86-32/StartSonar.bat,然后单击 单击此按钮时,出现以下错误: We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists. <%= link_to "Go back to the homepage", home_pa

有关安装的信息

使用嵌入式数据库Derbis

问题:

我运行
bin/windows-x86-32/StartSonar.bat
,然后单击

单击此按钮时,出现以下错误:

We're sorry, but something went wrong.
Please try back in a few minutes and contact support if the problem persists.
<%= link_to "Go back to the homepage", home_path %>
很抱歉,出了点问题。
请在几分钟后重试,如果问题仍然存在,请联系支持人员。

您知道如何处理该错误消息。

当数据库设置不正确时,我通常会收到该消息(或者本地有问题,在这种情况下,我尝试重新安装)。
或者您可以关联的mysql数据库有问题(错误的“
sonar.jdbc.username
”或
sonar.properties
文件中的“
sonar.jdbc.password
”。
或嵌入式数据库的默认端口(
jdbc:derby://localhost:1527/sonar;create=true
)在服务器/工作站上不可用


如果您使用的是Mysql数据库(不是您的案例),则需要首先创建它:

mysql [localhost] {root} ((none)) > CREATE DATABASE IF NOT EXISTS sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.01 sec)

mysql [localhost] {root} ((none)) > grant all privileges on sonar.* to 'sonar'@'localhost' identified by 'sonar';
Query OK, 0 rows affected (0.00 sec)

mysql [localhost] {root} ((none)) > flush privileges;
Query OK, 0 rows affected (0.00 sec)

将初始化数据库并更正此错误

检查声纳日志文件以查找您面临的问题。从日志文件中找出错误并尝试解决它


干杯

我的操作系统是
Mac

如果sonar的版本为
6.x
,请尝试运行以下步骤:

  • 检查日志:
    /Users/test/Downloads/sonarqube-6.0/logs/sonar.log
  • 是否有错误:
    “zh CN”不是有效的区域设置
    “en”不是有效的区域设置
  • 请运行命令:
    gem uninstall-i/Users/test/.rvm/gems/ruby-2.3.0 i18n

  • Ruby的版本是默认的Ruby。

    确保用户名和密码符合sonar配置文件中的说明。