问题标签 [sonarqube-ops]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
2885 浏览

ssl - 是否有计划将 HTTPS 添加回 SonarQube?

我正在使用反向代理运行 SonarQube。但是,出于安全原因,我还在 SonarQube 和数据库之间使用 X.509 身份验证。从 5.4 升级到 5.6 后,我无法再连接到我的 PostgreSQL 数据库,因为证书没有通过。

  1. 在协商与数据库的 SSL 连接时,是否有另一种方法可以将 SonarQube 配置为使用本地密钥库?
  2. 是否有计划重新添加 SSL 支持?
  3. 是否有计划重新添加 WAR 风格的部署?

我可能会卡在5.4。

0 投票
1 回答
3065 浏览

java - SonarQube 5.5 OutOfMemoryError:GC 开销

自从我们从 Sonar 5.1.2 切换到 5.5 后,我们遇到了内存不足的问题。当同时构建大量项目时,任何项目都会出现崩溃(分析是从 jenkins 构建启动的)。

这是我们现在在 sonar.properties 中使用的参数:

我们还尝试在 wrapper.conf 中进行更改:

但是没有成功(我们只是推迟了问题......)。

我们正在使用以下插件:

这是日志:

知道出了什么问题吗?

0 投票
3 回答
3784 浏览

ldap - sonarqube 5.6 & LDAP 2.0 验证失败

我正在测试升级到 sonarqube 5.6 并安装了 ldap 2.0 插件并将相关配置复制到我的测试 5.6 设置中。

相关配置是

我在 conf/sonar.properties 中有以下设置

在启动时我看到

如果我尝试登录,我会在登录屏幕上看到“身份验证失败”。日志文件除了

相同的配置适用于 sonarqube 4.5.7 和 ldap 1.4

欢迎提出如何进一步调查的想法。

0 投票
2 回答
330 浏览

docker - 使用 Docker Compose 创建多个容器

我对 Docker 完全陌生。我有一个声纳图像。我编写了一个示例 Docker Compose 文件并运行了该映像。一切正常。现在我想使用 Docker Compose 创建 5-6 个容器。

我怎样才能做到这一点?

这是我的示例 YAML 文件:

我也想知道是否可以仅使用我的 docker 配置文件来创建它们。

0 投票
0 回答
126 浏览

sonarqube - 如何在 azure 中为 SonarQube 配置 ssl?

我已经在 azure windows server 2012 中安装了 sonarqube-5.6.1。站点声纳(http)运行良好。但我找不到如何为我的网站配置 ssl (https)。你能告诉我我该怎么做吗?非常感谢。

0 投票
1 回答
1681 浏览

sonarqube - SonarQube: is it possible to change the time zone in the JVM parameters?

I have a machine that runs several different servers and it's in a specific time zone in Central Europe.

I need to run SonarQube (4.5.7) in UTC time.

I uncommented the following line in web/WEB-INF/config/environment.rb and restarted SonarQube but the server still shows the original time zone on the System Info page.

config.time_zone = 'UTC'

Should that be enough to change the time zone in SonarQube? Because that didn't really work.

Is there a way I can pass the user.timezone property to the JVM by editing the wrapper.conf file? Looks like it could work but it doesn't look like I'm supposed to touch that file.

Thanks.

0 投票
1 回答
468 浏览

sonarqube - 无法将 sonar.authenticator.createUsers=false 与 sonarqube 5.6.1 中的 LDAP 插件结合使用

如果我执行以下操作

  • 添加 LDAP 插件并正确配置
  • sonar.authenticator.createUsers=false

然后文档

将此值设置为 false,系统管理员必须首先通过 SonarQube Web 界面声明用户,然后才能允许该用户登录 SonarQube。

但是,如果我转到管理控制台并创建一个用户,那么它会被创建为本地用户,目前无法更改。

有没有办法在 5.6.x 中做到这一点?

0 投票
1 回答
1324 浏览

sql-server - 无法执行从 SonarQube 5.6.1 LTS 到 6.0 的数据库迁移

我最近尝试从 SonarQube 5.6.1 LTS 升级到 6.0。

我使用了升级指南,但我遇到了数据库迁移错误。

无法执行数据库迁移:org.sonar.db.version.v60.CleanUsurperRootComponents com.microsoft.sqlserver.jdbc.SQLServerException:无法解决“SQL_Latin1_General_CP1_CS_AS”和“Latin1_General_CS_AS”在等于操作中的排序规则冲突。

我正在使用带有 SQL_Latin1_General_CP1_CS_AS 的 SQL 2014。

我使用以下指南进行设置:

.Net 用户的 SonarQube 设置指南 v.1.3

Sonar 数据库中有 157 个列的排序规则“Latin1_General_CS_AS”错误。

问候

丹尼尔

0 投票
0 回答
125 浏览

sonarqube - 适用于 SonarQube 的 Azure Active Directory (AAD) 身份验证插件:错误

我使用本指南为 SonarQube(1.1 版)安装并配置了 Azure Active Directory (AAD) 身份验证插件。

当我单击“使用 Azure AD 登录”时,出现此错误:

在此处输入图像描述

这是单击此按钮后浏览器中的 url:

0 投票
3 回答
10889 浏览

docker - 如何在 Sonarqube docker 映像中跨容器调用持久化配置和分析

Sonarqube 官方 docker 镜像,不会保留任何配置更改,例如:creating users, changing root password or even installing new plugins.

一旦容器重新启动,所有配置更改都会消失,安装的插件也会丢失。甚至项目的密钥和它们之前的 QA 分析数据在重新启动后也不可用。

在使用 Sonarqube 的官方 docker 镜像时,我们如何持久化数据?