SonarQube安装中碰到的问题

1、SonarQube部署成功后,更新配置为mysql,重启后提示upgrade database and browser /setup

解决:在浏览器中输入 http://localhost:9000/setup

2、SonarQube7.3在http://localhost:9000/setup中提示upgrade失败

解决:查看Log显示为mysql语句错误,怀疑版本不稳定,重新下载sonarqube-6.7.5安装解决

3、使用sonar-scanner时,扫描结束后提示Failed to upload report - 500: An error has occurred. Please contact your administrator

解决:

原因是mysql的参数max_allowed_packet设置太小,打开mysql控制台,show VARIABLES like ‘%max_allowed_packet%’;

在mysql 命令行中运行 set global max_allowed_packet = 5*1024*1024*10  -- 50M

猜你喜欢

转载自www.cnblogs.com/wanbao/p/9629283.html