Error during SonarQube Scanner execution max_allowed_packet


(Sebastian Peter) #1

Hi Team We are getting the below error while building the code in Jenkins and pushing the code to SonarQube

INFO: Analysis report generated in 5499ms, dir size=28 MB
INFO: Analysis reports compressed in 3555ms, zip size=9 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:21.408s
INFO: Final Memory: 64M/1941M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Failed to upload report - 500: An error has occurred. Please contact your administrator
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
[Pipeline] }
[Pipeline] // withSonarQubeEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE

As from the google we increased the max_allowed_packet to 16 Mb but not worked.

Can you please help me to resolve this issue.


(G Ann Campbell) #2

Hi,

I don’t see anything in the log snippet you provided that refers to the max_allowed_packet. Where did that come from? What it in your server logs? Also, your analysis log seems to indicate that a 500 was returned from the analysis report upload. That means there is/should be an error in your web.log. Can you share it?

 
Ann