SonarQube Scanner execution execution Error --- Failed to upload report - 500: An error has occurred

 

問題原因:mysql參數設置問題

檢查mysql參數:

mysql> SHOW VARIABLES LIKE 'max_allowed_packet';

修改/etc/my.cnf文件:

[mysqld]

max_allowed_packet = 50M

重啓mysql服務:

[[email protected]]# service mysql restart

重啓sonar服務   這個不重啓不生效,我就犯了這個錯誤

[[email protected]]$ sonar.sh restart

轉載地址  http://www.javashuo.com/article/p-bgocooto-mm.html