Unable to load component class org.sonar.scanner.issue.ModuleIssues : Read timed out

network_error
sonarqube

(Daniel Armijos) #1

Hello I am running Sonarqube 6.4 with the sonar-java-plugin-4.9.0.9858.jar. The server was running OK till this past week. Several coworkers are reporting read timed out errors when they try to run an analysis. We had used both, maven commands and sonar-scanner client (3.0.3) to run them. However, we get the same result.

I already triggered a full SonarQube ES reindex, to try to solve this error: .sonar.api.batch.rule.Rules: Fail to request http://10.12.5.243:9000/api/rules/list.protobuf: Read timed out ->

Unfortunately, the error is not solved. I am attaching the full error stack in DEBUG mode for anyone to guide me.

[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ sri-ict-internet ---
[INFO] Deleting D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ sri-ict-internet ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- jrebel-maven-plugin:1.1.3:generate (generate-rebel-xml) @ sri-ict-internet ---
[INFO] Processing ec.gob.sri.sri-ict:sri-ict-internet with packaging war
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ sri-ict-internet ---
[INFO] Compiling 15 source files to D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ sri-ict-internet ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ sri-ict-internet ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ sri-ict-internet ---
[INFO] Surefire report directory: D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ sri-ict-internet ---
[INFO] Packaging webapp
[INFO] Assembling webapp [sri-ict-internet] in [D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target\sri-ict-internet-3.10.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\src\main\webapp]
[INFO] Webapp assembled in [1284 msecs]
[INFO] Building war: D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target\sri-ict-internet-3.10.0-SNAPSHOT.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ sri-ict-internet ---
[INFO] Installing D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\target\sri-ict-internet-3.10.0-SNAPSHOT.war to D:\Maven\MNV3\apache-maven-3.0.5\repositorio21\ec\gob\sri\sri-ict\sri-ict-internet\3.10.0-SNAPSHOT\sri-ict-internet-3.10.0-SNAPSHOT.war
[INFO] Installing D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018\sri-ict-internet\pom.xml to D:\Maven\MNV3\apache-maven-3.0.5\repositorio21\ec\gob\sri\sri-ict\sri-ict-internet\3.10.0-SNAPSHOT\sri-ict-internet-3.10.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] sri-ict ........................................... SUCCESS [0.287s]
[INFO] sri-ict-servicio .................................. SUCCESS [6.812s]
[INFO] sri-ict-intranet .................................. SUCCESS [6.631s]
[INFO] sri-ict-internet .................................. SUCCESS [3.403s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.302s
[INFO] Finished at: Fri Sep 07 11:46:07 COT 2018
[INFO] Final Memory: 34M/82M
[INFO] ------------------------------------------------------------------------
D:\eclipse\eclipse\workspace\sri-ict-internet-cabeceras-07092018>cd D:\eclipse\eclipse\workspace\certificados-tributario-internet-master

D:\eclipse\eclipse\workspace\certificados-tributario-internet-master>D:\sonar-scanner-3.0.3.778-windows\bin\sonar-scanner -Dsonar.scm.disabled=True -X
13:34:28.942 INFO: Scanner configuration file: D:\sonar-scanner-3.0.3.778-windows\bin\..\conf\sonar-scanner.properties
13:34:28.948 INFO: Project root configuration file: D:\eclipse\eclipse\workspace\certificados-tributario-internet-master\sonar-project.properties
13:34:28.965 INFO: SonarQube Scanner 3.0.3.778
13:34:28.965 INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
13:34:28.965 INFO: Windows 7 6.1 amd64
13:34:29.078 DEBUG: keyStore is :
13:34:29.080 DEBUG: keyStore type is : jks
13:34:29.081 DEBUG: keyStore provider is :
13:34:29.081 DEBUG: init keystore
13:34:29.081 DEBUG: init keymanager of type SunX509
13:34:29.446 INFO: User cache: C:\Users\sjdr060814\.sonar\cache
13:34:29.450 DEBUG: Extract sonar-scanner-api-batch in temp...
13:34:29.456 DEBUG: Get bootstrap index...
13:34:29.457 DEBUG: Download: http://10.12.5.243:9000/batch/index
13:34:29.515 DEBUG: Get bootstrap completed
13:34:29.515 DEBUG: Create isolated classloader...
13:34:29.521 DEBUG: Start temp cleaning...
13:34:29.527 DEBUG: Temp cleaning done
13:34:29.528 DEBUG: Execution getVersion
13:34:29.531 DEBUG: Execution start
13:34:29.893 DEBUG: Publish global mode
13:34:30.221 INFO: Load global settings
13:34:34.636 DEBUG: GET 200 http://10.12.5.243:9000/api/settings/values.protobuf | time=4403ms
13:34:34.652 INFO: Load global settings (done) | time=4431ms
13:34:34.664 INFO: User cache: C:\Users\sjdr060814\.sonar\cache
13:34:36.918 INFO: Load plugins index
13:34:36.985 DEBUG: GET 200 http://10.12.5.243:9000/deploy/plugins/index.txt | time=67ms
13:34:37.009 INFO: Load plugins index (done) | time=92ms
13:34:37.014 DEBUG: Load plugins
13:34:37.618 DEBUG: Load plugins (done) | time=604ms
13:34:37.645 DEBUG: API compatibility mode is enabled on plugin PMD [pmd] (built with API lower than 5.2)
13:34:37.657 DEBUG: API compatibility mode is enabled on plugin Clover [clover] (built with API lower than 5.2)
13:34:37.724 DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
13:34:37.767 DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
13:34:38.197 DEBUG: Plugins:
13:34:38.198 DEBUG:   * Python 1.7.0.1195 (python)
13:34:38.198 DEBUG:   * PMD 2.5 (pmd)
13:34:38.198 DEBUG:   * Clover 3.1 (clover)
13:34:38.198 DEBUG:   * PL/SQL (Community) 2.0.0-SNAPSHOT (plsqlopen)
13:34:38.199 DEBUG:   * SVN 1.4.0.522 (scmsvn)
13:34:38.199 DEBUG:   * SonarJS 3.0.0.4962 (javascript)
13:34:38.199 DEBUG:   * C# 5.10.1.1411 (csharp)
13:34:38.199 DEBUG:   * SonarJava 4.9.0.9858 (java)
13:34:38.199 DEBUG:   * Web 2.5.0.476 (web)
13:34:38.199 DEBUG:   * Flex 2.3 (flex)
13:34:38.200 DEBUG:   * Git 1.2 (scmgit)
13:34:38.200 DEBUG:   * SonarXML 1.4.2.885 (xml)
13:34:38.200 DEBUG:   * SonarPHP 2.10.0.2087 (php)
13:34:38.200 DEBUG:   * Checkstyle 3.7 (checkstyle)
13:34:38.319 DEBUG: Execution getVersion
13:34:38.320 INFO: SonarQube server 6.4.0
13:34:38.320 INFO: Default locale: "es_EC", source code encoding: "windows-1252" (analysis is platform dependent)
13:34:38.321 DEBUG: Work directory: D:\eclipse\eclipse\workspace\certificados-tributario-internet-master\.scannerwork
13:34:38.321 DEBUG: Execution getVersion
13:34:38.321 DEBUG: Execution execute
13:34:47.617 INFO: Process project properties
13:34:47.699 DEBUG: Process project properties (done) | time=82ms
13:34:48.035 INFO: Load project repositories
13:34:55.341 INFO: Load project repositories (done) | time=7306ms
13:34:55.446 DEBUG: Available languages:
13:34:55.446 DEBUG:   * Python => "py"
13:34:55.446 DEBUG:   * PL/SQL => "plsqlopen"
13:34:55.447 DEBUG:   * JavaScript => "js"
13:34:55.447 DEBUG:   * C# => "cs"
13:34:55.447 DEBUG:   * Java => "java"
13:34:55.447 DEBUG:   * Web => "web"
13:34:55.447 DEBUG:   * Flex => "flex"
13:34:55.447 DEBUG:   * XML => "xml"
13:34:55.447 DEBUG:   * PHP => "php"
13:34:55.449 INFO: Load quality profiles
13:35:00.148 INFO: Load quality profiles (done) | time=4699ms
13:35:00.178 INFO: Load active rules
13:35:35.013 INFO: Load active rules (done) | time=34835ms
13:35:35.014 INFO: Load metrics repository
13:35:36.207 INFO: Load metrics repository (done) | time=1193ms
13:35:36.272 DEBUG: SCM Step is disabled by configuration
13:35:36.272 INFO: Publish mode
13:35:36.272 INFO: Project key: certificados-tributarios
13:35:36.272 DEBUG: Start recursive analysis of project modules
13:35:36.274 INFO: -------------  Scan certificados-tributarios
13:35:39.084 INFO: Load server rules
13:36:39.218 INFO: ------------------------------------------------------------------------
13:36:39.219 INFO: EXECUTION FAILURE
13:36:39.219 INFO: ------------------------------------------------------------------------
13:36:39.220 INFO: Total time: 2:10.381s
13:36:39.268 INFO: Final Memory: 45M/136M
13:36:39.269 INFO: ------------------------------------------------------------------------
13:36:39.269 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.sensor.DefaultSensorStorage
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678)
        at org.sonar.core.platform.ComponentContainer.getComponentByType(ComponentContainer.java:283)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:176)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:259)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:254)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:243)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
        at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
        at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:144)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:129)
        at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:118)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:117)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
        at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
        at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.lang.IllegalStateException: Unable to load component class org.sonar.scanner.issue.ModuleIssues
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
        at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
        at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
        at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
        at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
        at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
        at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
        at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
        at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
        at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
        at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
        ... 28 more
Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.api.batch.rule.Rules
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:632)
        at org.picocontainer.parameters.BasicComponentParameter$1.resolveInstance(BasicComponentParameter.java:118)
        at org.picocontainer.parameters.ComponentParameter$1.resolveInstance(ComponentParameter.java:136)
        at org.picocontainer.injectors.SingleMemberInjector.getParameter(SingleMemberInjector.java:78)
        at org.picocontainer.injectors.ConstructorInjector$CtorAndAdapters.getParameterArguments(ConstructorInjector.java:309)
        at org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:335)
        at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
        at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
        at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
        at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
        at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
        ... 42 more
Caused by: java.lang.IllegalStateException: Unable to load component interface org.sonar.api.batch.rule.Rules
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:71)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:621)
        at org.picocontainer.containers.ImmutablePicoContainer.getComponent(ImmutablePicoContainer.java:40)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:718)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
        ... 56 more
Caused by: java.lang.IllegalStateException: Fail to request http://10.12.5.243:9000/api/rules/list.protobuf
        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:176)
        at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:112)
        at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:99)
        at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:73)
        at org.sonar.scanner.rule.DefaultRulesLoader.load(DefaultRulesLoader.java:44)
        at org.sonar.scanner.rule.RulesProvider.load(RulesProvider.java:49)
        at org.sonar.scanner.rule.RulesProvider.provide(RulesProvider.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
        at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39)
        at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:113)
        at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
        at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)
        at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)
        at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
        at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)
        at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
        at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
        at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:69)
        ... 61 more
Caused by: java.net.SocketTimeoutException: timeout
        at okio.Okio$4.newTimeoutException(Okio.java:227)
        at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
        at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)
        at okio.RealBufferedSource.indexOf(RealBufferedSource.java:344)
        at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:216)
        at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
        at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
        at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:75)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at org.sonarqube.ws.client.OkHttpClientBuilder.addUserAgent(OkHttpClientBuilder.java:190)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
        at okhttp3.RealCall.execute(RealCall.java:69)
        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:173)
        ... 82 more
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:171)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at okio.Okio$2.read(Okio.java:138)
        at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
        ... 105 more
13:36:39.423 DEBUG: Execution getVersion
13:36:39.445 DEBUG: Execution stop

Scanner fails with 'Read timed out' (in org.sonar.scanner.issue.ModuleIssues)
(Duarte Meneses) #2

Hi,

It could be an actual timeout downloading the list of rules. I noticed that it takes 34s to download the active rules.
If you try to download the rules using the url from the same machine where you run the scanner (with browser or any other tool), do you succeed? How long does it take?


(Daniel Armijos) #3

Hi Duarte,

By using the browser the file is downloaded in almost 60 seconds sometimes a bit more than a minute.


(Nicolas Bontoux) #4

That seems pretty long to me, and could ultimately explain some intermittent timeouts in your infra. How big is that file you download in ~60 seconds ?


(Daniel Armijos) #5

The file size is 113KB. We did a WEB reindex and the server is responding faster like in 20-30 seconds. However, the error is still appearing in some clients. We activated the sonar server log in TRACE mode and we identified that there is a network fluctuation when querying the “ce_queue”. I am attaching a log image with this fluctuation for you to review. The Networking team is claiming that there is not a network issue, they suggest that it is a sonar bug.