声纳安装问题

问题描述 投票:0回答:4

安装信息

使用嵌入式数据库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 %>

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

sonarqube
4个回答
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)

2023 年第 4 季度,Purval Patel 在他的博文的评论中提到:

SonarQube 安装 Ubuntu


3
投票

http://localhost:9000/setup 将初始化数据库并纠正此错误


3
投票

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

干杯..!


2
投票

我的操作系统是

Mac

如果sonar的版本是

6.x
,请尝试运行以下步骤:

  1. 查看日志:
    /Users/test/Downloads/sonarqube-6.0/logs/sonar.log
  2. 是否有ERROR:
    “zh-CN” is not a valid locale
    “en” is not a valid locale
  3. 请运行命令:
    gem uninstall -i /Users/test/.rvm/gems/ruby-2.3.0 i18n

Ruby 的版本是您的默认 ruby。

© www.soinside.com 2019 - 2024. All rights reserved.