Sonar-scanner timeout while loading rules

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube V 9.6.1.59531.
    sonarscanner V 4.7.0.2747.
    Linux system
    Using mssql db

  • what are you trying to achieve
    make the initial run of sonar-scanner

  • what have you tried so far to achieve this
    I have tried removing the data/es7 folder and increasing the sonar.web.http.keepAliveTimeout
    Restarted the server several times

The server is up and running with no issues, but I keep getting a time out when loading active rules.

Full error log:

14:59:20.277 INFO: Project root configuration file: NONE
14:59:20.344 INFO: SonarScanner 4.7.0.2747
14:59:20.344 INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
14:59:20.344 INFO: Linux 5.4.0-126-generic amd64
14:59:20.800 DEBUG: keyStore is :
14:59:20.800 DEBUG: keyStore type is : pkcs12
14:59:20.800 DEBUG: keyStore provider is :
14:59:20.801 DEBUG: init keystore
14:59:20.802 DEBUG: init keymanager of type SunX509
14:59:21.236 DEBUG: Create: /home/stanley/.sonar/cache
14:59:21.237 INFO: User cache: /home/stanley/.sonar/cache
14:59:21.239 DEBUG: Create: /home/stanley/.sonar/cache/_tmp
14:59:21.243 DEBUG: Extract sonar-scanner-api-batch in temp...
14:59:21.255 DEBUG: Get bootstrap index...
14:59:21.255 DEBUG: Download: http://10.10.174.42:9000/batch/index
14:59:21.384 DEBUG: Get bootstrap completed
14:59:21.392 DEBUG: Create isolated classloader...
14:59:21.439 DEBUG: Start temp cleaning...
14:59:21.455 DEBUG: Temp cleaning done
14:59:21.456 INFO: Scanner configuration file: /home/stanley/sonarqube/sonar-scanner-4.7.0.2747-linux/conf/sonar-scanner.properties
14:59:21.456 INFO: Project root configuration file: NONE
14:59:21.466 DEBUG: Execution getVersion
14:59:21.552 INFO: Analyzing on SonarQube server 9.6.1.59531
14:59:21.554 INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
14:59:21.555 DEBUG: Work directory: /home/stanley/sonarqube/workspace/masimo/.scannerwork
14:59:21.556 DEBUG: Execution execute
14:59:22.681 DEBUG: Developer 9.6.1.59531
14:59:23.548 INFO: Load global settings
14:59:23.823 DEBUG: GET 200 http://10.10.174.42:9000/api/settings/values.protobuf | time=253ms
14:59:23.923 INFO: Load global settings (done) | time=375ms
14:59:23.927 INFO: Server id: CEC5B52C-AYNlYe9vQFymKE7g7lJt
14:59:23.974 INFO: User cache: /home/stanley/.sonar/cache
14:59:23.998 INFO: Load/download plugins
14:59:24.000 INFO: Load plugins index
14:59:24.227 DEBUG: GET 200 http://10.10.174.42:9000/api/plugins/installed | time=227ms
14:59:24.395 INFO: Load plugins index (done) | time=395ms
14:59:25.291 INFO: Load/download plugins (done) | time=1293ms
14:59:25.898 DEBUG: Plugins:
14:59:25.898 DEBUG:   * IaC Code Quality and Security 1.9.2.2279 (iac)
14:59:25.898 DEBUG:   * PL/SQL Code Quality and Security 3.7.0.4372 (plsql)
14:59:25.900 DEBUG:   * Scala Code Quality and Security 1.10.0.3710 (sonarscala)
14:59:25.900 DEBUG:   * C# Code Quality and Security 8.43.0.51858 (csharp)
14:59:25.901 DEBUG:   * Vulnerability Analysis 9.6.1.17278 (security)
14:59:25.902 DEBUG:   * Java Code Quality and Security 7.13.0.29990 (java)
14:59:25.902 DEBUG:   * HTML Code Quality and Security 3.6.0.3106 (web)
14:59:25.903 DEBUG:   * Flex Code Quality and Security 2.7.0.2865 (flex)
14:59:25.903 DEBUG:   * XML Code Quality and Security 2.5.0.3376 (xml)
14:59:25.903 DEBUG:   * Text file Code Quality and Security 1.1.0.282 (text)
14:59:25.903 DEBUG:   * VB.NET Code Quality and Security 8.43.0.51858 (vbnet)
14:59:25.903 DEBUG:   * Swift Code Quality and Security 4.6.1.5444 (swift)
14:59:25.905 DEBUG:   * CFamily Code Quality and Security 6.36.0.52033 (cpp)
14:59:25.905 DEBUG:   * Python Code Quality and Security 3.15.1.9817 (python)
14:59:25.905 DEBUG:   * Dataflow Bug Detection Rules for Python 1.5.0.1969 (dbdpythonfrontend)
14:59:25.905 DEBUG:   * Dataflow Bug Detection 1.5.0.1969 (dbd)
14:59:25.905 DEBUG:   * Go Code Quality and Security 1.10.0.3710 (go)
14:59:25.905 DEBUG:   * JaCoCo 1.1.1.1157 (jacoco)
14:59:25.908 DEBUG:   * Kotlin Code Quality and Security 2.10.0.1456 (kotlin)
14:59:25.908 DEBUG:   * Dataflow Bug Detection Rules for Java 1.5.0.1969 (dbdjavafrontend)
14:59:25.908 DEBUG:   * T-SQL Code Quality and Security 1.6.0.4844 (tsql)
14:59:25.908 DEBUG:   * JavaScript/TypeScript/CSS Code Quality and Security 9.6.0.18814 (javascript)
14:59:25.908 DEBUG:   * Ruby Code Quality and Security 1.10.0.3710 (ruby)
14:59:25.908 DEBUG:   * Vulnerability Rules for C# 9.6.1.17278 (securitycsharpfrontend)
14:59:25.911 DEBUG:   * Vulnerability Rules for Java 9.6.1.17278 (securityjavafrontend)
14:59:25.916 DEBUG:   * Vulnerability Rules for JS 9.6.1.17278 (securityjsfrontend)
14:59:25.917 DEBUG:   * Vulnerability Rules for Python 9.6.1.17278 (securitypythonfrontend)
14:59:25.917 DEBUG:   * PHP Code Quality and Security 3.24.0.8949 (php)
14:59:25.917 DEBUG:   * ABAP Code Quality and Security 3.10.0.3628 (abap)
14:59:25.917 DEBUG:   * Configuration detection fot Code Quality and Security 1.2.0.267 (config)
14:59:25.917 DEBUG:   * Vulnerability Rules for PHP 9.6.1.17278 (securityphpfrontend)
14:59:26.123 INFO: Loaded core extensions: developer-scanner
14:59:26.220 DEBUG: Installed core extension: developer-scanner
14:59:28.362 INFO: Process project properties
14:59:28.419 INFO: Process project properties (done) | time=57ms
14:59:28.446 INFO: Execute project builders
14:59:28.451 DEBUG: Execute project builder: org.sonar.plugins.csharp.CSharpGlobalProtobufFileProcessor
14:59:28.465 DEBUG: Execute project builder: org.sonar.plugins.vbnet.VbNetGlobalProtobufFileProcessor
14:59:28.466 INFO: Execute project builders (done) | time=20ms
14:59:28.484 INFO: Project key: masimo
14:59:28.487 INFO: Base dir: /home/stanley/sonarqube/workspace/masimo
14:59:28.487 INFO: Working dir: /home/stanley/sonarqube/workspace/masimo/.scannerwork
14:59:28.487 DEBUG: Project global encoding: UTF-8, default locale: en
14:59:28.516 INFO: Load project settings for component key: 'masimo'
14:59:28.823 DEBUG: GET 200 http://10.10.174.42:9000/api/settings/values.protobuf?component=masimo | time=302ms
14:59:28.824 INFO: Load project settings for component key: 'masimo' (done) | time=309ms
14:59:29.211 INFO: Load project branches
14:59:29.327 DEBUG: GET 200 http://10.10.174.42:9000/api/project_branches/list?project=masimo | time=110ms
14:59:29.546 INFO: Load project branches (done) | time=335ms
14:59:29.550 INFO: Load project pull requests
14:59:29.708 DEBUG: GET 200 http://10.10.174.42:9000/api/project_pull_requests/list?project=masimo | time=157ms
14:59:29.714 INFO: Load project pull requests (done) | time=164ms
14:59:29.721 INFO: Load branch configuration
14:59:29.726 INFO: Load branch configuration (done) | time=5ms
14:59:29.746 DEBUG: Creating module hierarchy
14:59:29.746 DEBUG:   Init module 'masimo'
14:59:29.749 DEBUG:     Base dir: /home/stanley/sonarqube/workspace/masimo
14:59:29.750 DEBUG:     Working dir: /home/stanley/sonarqube/workspace/masimo/.scannerwork
14:59:29.755 DEBUG:     Module global encoding: UTF-8, default locale: en
14:59:29.884 DEBUG: Available languages:
14:59:29.923 DEBUG:   * Terraform => "terraform"
14:59:29.923 DEBUG:   * CloudFormation => "cloudformation"
14:59:29.923 DEBUG:   * Kubernetes => "kubernetes"
14:59:29.923 DEBUG:   * PL/SQL => "plsql"
14:59:29.923 DEBUG:   * Scala => "scala"
14:59:29.923 DEBUG:   * C# => "cs"
14:59:29.923 DEBUG:   * Java => "java"
14:59:29.923 DEBUG:   * HTML => "web"
14:59:29.924 DEBUG:   * JSP => "jsp"
14:59:29.924 DEBUG:   * Flex => "flex"
14:59:29.924 DEBUG:   * XML => "xml"
14:59:29.924 DEBUG:   * Text => "text"
14:59:29.924 DEBUG:   * VB.NET => "vbnet"
14:59:29.925 DEBUG:   * Swift => "swift"
14:59:29.925 DEBUG:   * C => "c"
14:59:29.925 DEBUG:   * C++ => "cpp"
14:59:29.925 DEBUG:   * Objective-C => "objc"
14:59:29.925 DEBUG:   * Python => "py"
14:59:29.925 DEBUG:   * Go => "go"
14:59:29.925 DEBUG:   * Kotlin => "kotlin"
14:59:29.925 DEBUG:   * T-SQL => "tsql"
14:59:29.925 DEBUG:   * JavaScript => "js"
14:59:29.925 DEBUG:   * TypeScript => "ts"
14:59:29.925 DEBUG:   * CSS => "css"
14:59:29.925 DEBUG:   * Ruby => "ruby"
14:59:29.925 DEBUG:   * PHP => "php"
14:59:29.927 DEBUG:   * ABAP => "abap"
14:59:29.928 DEBUG:   * YAML => "yaml"
14:59:29.928 DEBUG:   * JSON => "json"
14:59:30.123 INFO: Load quality profiles
14:59:30.649 DEBUG: GET 200 http://10.10.174.42:9000/api/qualityprofiles/search.protobuf?project=masimo | time=512ms
14:59:30.715 INFO: Load quality profiles (done) | time=592ms
14:59:30.750 INFO: Load active rules
14:59:31.301 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlei-XJ9pkS2MYbV6B&ps=500&p=1 | time=550ms
14:59:32.165 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlejeVJ9pkS2MYbV7B&ps=500&p=1 | time=678ms
14:59:32.421 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlejsMJ9pkS2MYbV8f&ps=500&p=1 | time=224ms
14:59:32.556 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlej2SJ9pkS2MYbV8_&ps=500&p=1 | time=127ms
15:00:21.635 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlej-aJ9pkS2MYbWED&ps=500&p=1 | time=49077ms
15:00:22.991 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlelR-J9pkS2MYbWNW&ps=500&p=1 | time=1184ms
15:00:23.855 DEBUG: GET 200 http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlelxBJ9pkS2MYbWUm&ps=500&p=1 | time=760ms
15:01:23.998 INFO: ------------------------------------------------------------------------
15:01:23.999 INFO: EXECUTION FAILURE
15:01:23.999 INFO: ------------------------------------------------------------------------
15:01:24.000 INFO: Total time: 2:03.817s
15:01:24.047 INFO: Final Memory: 18M/69M
15:01:24.048 INFO: ------------------------------------------------------------------------
15:01:24.048 ERROR: Error during SonarScanner execution
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@2b662a77-org.sonar.scanner.report.ReportPublisher': Unsatisfied dependency expressed through constructor parameter 7; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@2b662a77-org.sonar.scanner.report.ActiveRulesPublisher': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ActiveRules' defined in org.sonar.scanner.rule.ActiveRulesProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.rule.internal.DefaultActiveRules]: Factory method 'provide' threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:187)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:135)
        at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:188)
        at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:167)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        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:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@2b662a77-org.sonar.scanner.report.ActiveRulesPublisher': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ActiveRules' defined in org.sonar.scanner.rule.ActiveRulesProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.rule.internal.DefaultActiveRules]: Factory method 'provide' threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1607)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1571)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1437)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1347)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 31 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ActiveRules' defined in org.sonar.scanner.rule.ActiveRulesProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.rule.internal.DefaultActiveRules]: Factory method 'provide' threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
        at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
        ... 48 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.rule.internal.DefaultActiveRules]: Factory method 'provide' threw exception; nested exception is java.lang.IllegalStateException: Fail to request url: http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
        ... 62 more
Caused by: java.lang.IllegalStateException: Fail to request url: http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1
        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:205)
        at org.sonarqube.ws.client.HttpConnector.get(HttpConnector.java:124)
        at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:111)
        at org.sonar.scanner.bootstrap.DefaultScannerWsClient.call(DefaultScannerWsClient.java:87)
        at org.sonar.scanner.rule.DefaultActiveRulesLoader.load(DefaultActiveRulesLoader.java:62)
        at org.sonar.scanner.rule.ActiveRulesProvider.load(ActiveRulesProvider.java:98)
        at org.sonar.scanner.rule.ActiveRulesProvider.load(ActiveRulesProvider.java:61)
        at org.sonar.scanner.rule.ActiveRulesProvider.provide(ActiveRulesProvider.java:49)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
        ... 63 more
Caused by: java.net.SocketTimeoutException: timeout
        at okio.SocketAsyncTimeout.newTimeoutException(JvmOkio.kt:143)
        at okio.AsyncTimeout.access$newTimeoutException(AsyncTimeout.kt:162)
        at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:335)
        at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:427)
        at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:320)
        at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
        at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:178)
        at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106)
        at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:222)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
        at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:203)
        ... 75 more
Caused by: java.net.SocketException: Socket closed
        at java.base/java.net.SocketInputStream.read(Unknown Source)
        at java.base/java.net.SocketInputStream.read(Unknown Source)
        at okio.InputStreamSource.read(JvmOkio.kt:90)
        at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:129)
        ... 95 more

What happens when you try to load http://10.10.174.42:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt,updatedAt,deprecatedKeys&activation=true&qprofile=AYNlemQvJ9pkS2MYbWm5&ps=500&p=1 yourself?

1 Like

Running it in the browser, I don’t get anything. Just a blank screen.

Running it from curl I get a few codes:

[1] 525709
[2] 525710
[3] 525711
[4] 525712

But nothing more

Thanks.

Can you make the request and, at the same time, check the logs (specifically es.log, but also web.log) to see if a specific error comes up?