站点图标 高效码农

SonarQube报错汇总

一、报错信息:Unable to load component class org.sonar.scanner.report.MetadataPublisher

解决方案:

1、清空数据库,重启SonarQube
2、更换sonar-scanner版本,(所有版本地址:https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/

如果执行sonar-scanner命令时提示:

与本机安装的jdk版本不一致,就要更换sonar-scanner版本

二、SonarQube与jdk版本

亲测得知:

SonarQube JDK
7.8以上 JDK11
7.7以下 JDK8

三、项目扫描分析到一半时结束

解决方案: 打开SCM

四、Failed to upload report – An error has occurred. Please contact your administrator

解决方案:

修改mysql的max_allowed_packet值

max_allowed_packet = 150M

重启Mysql和SonarQube
重启Mysql和SonarQube
重启Mysql和SonarQube

退出移动版