SonarQube timeout during analysis in pipeline and infinite loading screen

Hello everyone!
Me and my team are facing a annoying issue. Sonarqube sometimes (about once every two weeks) simply stops analyzing and gives timeout responses in our Azure Pipelines, also, when we try to access the portal, we get almost an infinite loading screen (we can log on, but it takes forever to load).

Everyday our SonarQube runs about 20+ analysis.

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
My team is using version 10.1 Community

how is SonarQube deployed: zip, Docker, Helm
Deployed via .zip, in a Azure VM having these settings:

  • 4 vCPU
  • 16GB RAM
  • 30GB disk

what are you trying to achieve
A system stability.

what have you tried so far to achieve this
We have tried using ping/tracert/iperf3 the machine, the database (we are using a remote SQL Server instance for our database) and every test was succesful, we are not getting a issue on network.

This is the log from our Azure Pipelines:

   at SonarScanner.MSBuild.PreProcessor.PreProcessor.DoExecute(ProcessedArgs localSettings)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.Execute(IEnumerable`1 args)
   at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
   at SonarScanner.MSBuild.BootstrapperClass.Execute()
   at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger)
   at SonarScanner.MSBuild.Program.Execute(String[] args)
   at SonarScanner.MSBuild.Program.Main(String[] args)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
 ---> System.TimeoutException: The operation was canceled.
 ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
 ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
 ---> System.Net.Sockets.SocketException (125): Operation canceled
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
   at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Security.SslStream.ReadAsyncInternal[TIOAdapter](Memory`1 buffer, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.GetAsync(String url)
   at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.Download(String url, Boolean logPermissionDenied)
   at SonarScanner.MSBuild.PreProcessor.WebServer.SonarWebServer.DownloadRules(String qProfile)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.FetchArgumentsAndRuleSets(ISonarWebServer server, ProcessedArgs args, BuildSettings settings)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.DoExecute(ProcessedArgs localSettings)
   at SonarScanner.MSBuild.PreProcessor.PreProcessor.Execute(IEnumerable`1 args)
   at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
   at SonarScanner.MSBuild.BootstrapperClass.Execute()
   at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger)
   at SonarScanner.MSBuild.Program.Execute(String[] args)
   at SonarScanner.MSBuild.Program.Main(String[] args)
   at SonarScanner.MSBuild.Program.<Main>(String[] args)
##[error]The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code null

Hey there.

First things first, SonarQube v10.1 is EOL now. You should upgrade to v10.3, the latest version of SonarQube (and only v10.x series supported).

Secondly – anything in the logs of your SonarQube instance?

I didn’t know that 10.1 was EOL… Well I’ll have to schedule a upgrade to 10.3 with my team then.

About the logs: no, the logs from es.log and sonar.log don’t show anything, onlý that Sonar is up and operational.
However, web.log gives me a log showing that it’s trying to download plugins but it fails todo so:

2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'text' version : 2.1.0.1163 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'vbnet' version : 9.3.0.71466 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'web' version : 3.8.0.3510 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'xml' version : 2.8.1.4006 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'cayc' version : 2.0.0.334 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'communityBranchPlugin' version : 1.15.0-SNAPSHOT has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'config' version : 1.2.0.267 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'csharp' version : 9.3.0.71466 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'flex' version : 2.9.0.3375 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'go' version : 1.13.0.4374 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'iac' version : 1.17.0.3976 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'jacoco' version : 1.3.0.1538 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'java' version : 7.20.0.31692 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'javascript' version : 10.3.1.21905 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'kotlin' version : 2.15.0.2579 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'php' version : 3.30.0.9766 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'python' version : 4.3.0.11660 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'ruby' version : 1.13.0.4374 has not been found on the update center.
2023.12.28 09:59:34 INFO  web[AYyRsrVImXMYePXJAKwp][o.s.u.c.UpdateCenter] The plugin 'sonarscala' version : 1.13.0.4374 has not been found on the update center.

Hello @Colin , any updates of this?