SonarQube Version - 10.4.1 (Enterprise Edition) - (Self-Hosted)
Jenkins version - 2.426.3
SonarQube scanner plugin version - 2.17.1
We are using Jenkins to run sonar scans for Java and .Net applications.
Often times we are seeing 504 Gateway Timeout and 502 Bad GateWay errors as shown below
we couldn’t find anything relevant in the logs and they are attached to this ticket.
INFO: Analysis report uploaded in 124ms
INFO: ------------- Check Quality Gate status
INFO: Waiting for the analysis report to be processed (max 900s)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:59.154s
INFO: Final Memory: 60M/207M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Failed to get CE Task status - HTTP code 502:
502 Bad Gateway
502 Bad Gateway
Microsoft-Az
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
ERROR: SonarQube scanner exited with non-zero code: 2
These errors are more likely being returned by the Microsoft-Azure-Application-Gateway sitting between the scanner and the SonarQube server. I’m not too familiar with Azure Application Gateways, but if there are logs available at that layer, I suggest starting there.
Thanks for the response Colin.
We tried looking for logs at Application Gateway and couldn’t find anything there.
Is there any way we can monitor SonarQube application/URL health check to see if its Gateway dropping connections or application itself?
Do you find anything relevant error messages from the logs attached ?
You have a striking number of login failures (search web.log for login failure) and overall a lot of login events in just the logs shared, but that’s pretty normal if you’re running analyses which authenticate each API call.