sonarqube-ops

How to persist configuration & analytics across container invocations in Sonarqube docker image

依然范特西╮ 提交于 2019-12-18 16:54:16
问题 Sonarqube official docker image, is not persisting any configuration changes like: creating users, changing root password or even installing new plugins . Once the container is restarted, all the configuration changes disappear and the installed plugins are lost. Even the projects' keys and their previous QA analytics data is unavailable after a restart. How can we persist the data when using Sonarqube's official docker image? 回答1: Sonarqube image comes with a temporary h2 database engine

SonarQube default credentials for internal H2 db?

六眼飞鱼酱① 提交于 2019-12-13 14:12:26
问题 I'm running SonarQube 5.6.1 and am trying to save a view that I created. To do that, I want to take a peek at H2 DB that Sonar (according to it's own readme) uses for internal embedded DB. I've ran the H2 jar file and in console was able to log in to dummy DB. If SonarQUbe is running, I can't connect. So, what are default credentials for that DB? Tried my user credentials and admin/admin, none work. Admin/admin is default for SonarQube administrator user. 回答1: The default values are sonar

Sonar setup with MySql

孤人 提交于 2019-12-12 08:54:14
问题 Iam trying to change the sonar Qube 5.5 default database to Mysql.But it is still connecting to default H2 DB. Configuration as below. I have run the below scripts in Mysql DB # Create SonarQube database and user. # # Command: mysql -u root -p < create_database.sql # CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE USER 'sonar' IDENTIFIED BY 'sonar'; GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar'; GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY

IllegalStateException when migrating databases from SonarQube 5.3 to 5.6.2 (and 5.5)

萝らか妹 提交于 2019-12-12 03:35:20
问题 While trying to upgrade databases from SonarQube 5.3 to SonarQube 5.6.2, I am getting a "java.lang.IllegalStateException" with the message "Fail to decompress and deserialize source data" (originally caused by com.google.protobuf.InvalidProtocolBufferException: Stream is corrupted). I have tried this with several different databases (we have something like 40 teams using SonarQube 5.3 and wanting to upgrade) and with both 5.5 (in case a smaller step would have worked) and 5.6.2. I get the

SonarQube service not starting

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:25:20
问题 We are seeing below error while starting SonarQube service. Looks like there is a duplicate entry while registering Quality Profile but I am not sure on the table. Since the service is not started, we cannot verify it from web. Can someone please advise. The issue occurred post creation of a new DB and copy of tables data from old DB. We are performing this to check new collation which is required for Sonar. 2016.04.26 15:41:53 INFO web[o.s.s.s.RegisterDebtModel] Register technical debt model

SonarQube won't display System Info

*爱你&永不变心* 提交于 2019-12-12 00:52:13
问题 When I try to display the system info for my SonarQube 5.6 server I get an exception in the logs on the page. Any idea what could be causing this? This question (Getting an error as "Could not initialize class sun.net.www.protocol.http.HttpURLConnection" in ZK Framework) implies that the jar is missing from the jdk. Is that possible? I'm using java-1.8.0-openjdk-1.8.0.151-1.b12.el6_9.x86_64. Has the HttpUrlConnection implementation been changed? 2018.04.23 12:12:15 ERROR web[rails] Java:

How to configue SMTP in sonar.properties?

时间秒杀一切 提交于 2019-12-11 08:40:58
问题 SonarQube's SMTP settings can be changed in the web UI. How can I set those SMTP settings in the sonar.properties configuration file? 回答1: You can also use sonar.properties to define the smtp settings. But this approach is not recommended and therefore barely documented. However, there is a little of documentation in the sources. An example: email.smtp_host.secured=my.smtp.server email.smtp_port.secured=9918 email.smtp_secure_connection.secured=true email.smtp_username.secured=slartidan email

Can SonarQube notification email quantity be reduced via batching?

烈酒焚心 提交于 2019-12-11 05:24:28
问题 We've been doing a bunch of bulk fixing of issues in our codebase (deprecated code usage, mostly) and every time the analysis kicks off next, everyone gets 10-100-1000 individual emails detailing the status changes that occurred. Is there any way to consolidate all this information into a single email so users don't end up being unable to tell what's going on due to sheer bulk of repetitive information? I really don't want to have to turn off the notification emails and implement my own email

SonarQube does not come back up after I enable PostGres and set sonar.properties

与世无争的帅哥 提交于 2019-12-08 10:17:38
问题 Setup SonarQube Version 6.4 (build 25310) and have it running after having issue not opening 9000 from previous question: Setting up SonarQube on AWS using EC2 Now I am trying to setup PostGres via AWS RDS: Setup PostgreSQL 9.6.2 Configure security for Sonar EC2 instance to allow inbound rules: PostGreSQl/TCP/5432/0.0.0.0/0, ::/0 PostGreSQl/TCP/5432/Anywhere/0.0.0.0/0, ::/0 PostGreSQl/TCP/5432/Custom/Sonar Security group --> group for the sonar instance VI sonar.properties file sonar.jdbc

Sonarqube background tasks running forever

自作多情 提交于 2019-12-08 05:10:03
问题 We have running SonarQube 5.6.4 for a while now. Then we observed suddenly that the queue of background tasks is increasing. In the logs we see messages like that: 2017.07.24 13:56:10 INFO [o.s.s.es.BulkIndexer] 0 requests processed (0 items/sec) Every minute one log entry. Other tasks started then are failing with: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes were available: [[sonar-1498219166409][3QkGfCI8RUSn6vapRi5SSg][a2d477fdfe7a][inet[/127.0