声纳安装问题

Sah*_*lly 9 sonarqube

有关安装的信息

使用嵌入式数据库Derbis

问题:

我运行bin/windows-x86-32/StartSonar.bat 然后单击http:// localhost:9000

单击此按钮,我收到以下错误:

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 %>
Run Code Online (Sandbox Code Playgroud)

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

Von*_*onC 6

我通常在未正确设置数据库时收到该消息(本地有问题,在这种情况下我尝试全新安装).
或者您可以关联的mysql数据库存在问题(文件中错误的' sonar.jdbc.username'或' sonar.jdbc.password' sonar.properties).
或者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)
Run Code Online (Sandbox Code Playgroud)