Sonar analysis looking for infinite number of rules page

Hi, we’re having a problem with SonarQube server.
The analysis suddenly started to take longer (from 10 minutes to more than an hour) and quickly we could not run any analysis.

The scan are running from out Gitlab CI using various clients (Gradle, Maven and Sonar CLI), they’re all hanging forever at the same step : Load active rules
Most are killed after an hour by the Gitlab CI timeout but some scans exit before with a stacktrace such as this:

14:36:02.796 INFO  Load active rules
14:44:40.908 ERROR Error during SonarScanner Engine execution
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@1e4bccdf-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 'jdk.internal.loader.ClassLoaders$AppClassLoader@1e4bccdf-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: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:224)
	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:955)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:929)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:225)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
	at org.sonar.scanner.bootstrap.SpringGlobalContainer.doAfterStart(SpringGlobalContainer.java:144)
	at org.sonar.core.platform.SpringComponentContainer.startComponents(SpringComponentContainer.java:226)
	at org.sonar.core.platform.SpringComponentContainer.execute(SpringComponentContainer.java:205)
	at org.sonar.scanner.bootstrap.ScannerMain.runScannerEngine(ScannerMain.java:149)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:66)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:52)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@1e4bccdf-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: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:224)
	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:1609)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1573)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1439)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1349)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:911)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:788)
	... 20 common frames omitted
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: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:633)
	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:1391)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:911)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:788)
	... 37 common frames omitted
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: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
	... 51 common frames omitted
Caused by: java.lang.IllegalStateException: Fail to request url: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
	at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:217)
	at org.sonarqube.ws.client.HttpConnector.executeRequest(HttpConnector.java:132)
	at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:118)
	at org.sonar.scanner.http.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)
	... 52 common frames omitted
Caused by: java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
	at java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source)
	at java.base/java.net.Socket$SocketInputStream.read(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
	at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379)
	at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
	at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
	at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
	at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
	at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
	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.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:221)
	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:215)
	... 64 common frames omitted
	Suppressed: java.io.IOException: unexpected end of stream on https://REDACTED_SONAR_URL/...
		at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:210)
		at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:110)
		at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:93)
		at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
		at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:263)
		at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
		at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
		... 76 common frames omitted
	Caused by: java.io.EOFException: \n not found: limit=0 content=…
		at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:339)
		at okhttp3.internal.http1.HeadersReader.readLine(HeadersReader.kt:29)
		at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:180)
		... 82 common frames omitted
14:44:40.998 INFO  EXECUTION FAILURE

The suspicious part here is in the URL being requested: Caused by: java.lang.IllegalStateException: Fail to request url: https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=32820
We see this p parameter being set to a huge number. This is unexpected as this would suggest 500*32820 = 16 410 000 rules being fetched…
When I try that API call for the same qProfile I see a total of 193 rules.

> curl --header 'Authorization: Bearer BEARER_TOKEN' 'https://REDACTED_SONAR_URL/api/rules/list?qprofile
=AWGPam72kJDgE3w7B5zL&ps=500' | jq '.paging'

{
  "pageIndex": 1,
  "pageSize": 192,
  "total": 193
}

It seems to me like there’s somehow a bug in all our Sonar analysis clients where they suddenly started to disregard paging information and keep hammering at the Sonar server until it stops responding. We’ve confirmed that all the various clients follow that same pattern in the HTTP access logs from the server.

Did anyone else encounter this? Other than the analysis the web interface is all working well and we couldn’t find any log reporting an error on the server side.

System information:

  • Server version: SonarQube Server Enterprise 10.6.0
  • Deployment: Docker version 26.1.0, build 9714adc
  • Plugins:
    • checkstyle-sonar-plugin-10.12.3.jar
    • sonar-dependency-check-plugin-4.0.0.jar

Looking at the paging information between different profiles it seems that some of them are corrupted.

Working profile (pageSize = total):

{
  "pageIndex": 1,
  "pageSize": 24,
  "total": 24
}

Broken profile (pageSize < total)

{
  "pageIndex": 1,
  "pageSize": 192,
  "total": 193
}

Is there a way for us to fix this? Like reset the Quality Profiles to the provided Sonar defaults?

Hi,

Could you upgrade to 10.7 and see if this is still an issue?

And if so, could you provide a full, debug analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

Hi,

We’re looking at the upgrade to 10.7, I’ll update when it’s done. In the meantime here’s an analysis trace log.

PS C:\Users\user\code> ..\..\sonar-scanner-6.2.1.4610-windows-x64\bin\sonar-scanner.bat -D sonar.token=$SONAR_TOKEN -D sonar.log.level=TRACE
13:54:20.294 INFO  Scanner configuration file: C:\Users\user\code\sonar-scanner-6.2.1.4610-windows-x64\bin\..\conf\sonar-scanner.properties
13:54:20.299 INFO  Project root configuration file: C:\Users\user\code\sonar-project.properties
13:54:20.313 INFO  SonarScanner CLI 6.2.1.4610
13:54:20.314 INFO  Java 17.0.12 Eclipse Adoptium (64-bit)
13:54:20.315 INFO  Windows 11 10.0 amd64
13:54:20.320 DEBUG Scanner max available memory: 7 GB
13:54:20.329 DEBUG Create: C:\Users\user\.sonar\cache
13:54:20.330 INFO  User cache: C:\Users\user\.sonar\cache
13:54:20.330 DEBUG Create: C:\Users\user\.sonar\cache\_tmp
13:54:20.464 DEBUG Successfully loaded KeyStore of the type [Windows-ROOT] having [75] entries
13:54:20.465 DEBUG Failed to load KeyStore of the type [Windows-ROOT-LOCALMACHINE]
13:54:20.493 DEBUG Successfully loaded KeyStore of the type [Windows-ROOT-CURRENTUSER] having [75] entries
13:54:20.494 DEBUG Successfully loaded KeyStore of the type [Windows-MY] having [0] entries
13:54:20.494 DEBUG Successfully loaded KeyStore of the type [Windows-MY-CURRENTUSER] having [0] entries
13:54:20.496 DEBUG Failed to load KeyStore of the type [Windows-MY-LOCALMACHINE]
13:54:20.497 DEBUG Loaded [150] system trusted certificates
13:54:20.642 DEBUG --> GET https://REDACTED_SONAR_URL/api/v2/analysis/version
13:54:20.892 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/v2/analysis/version (248ms, 12-byte body)
13:54:20.894 INFO  JRE provisioning: os[windows], arch[amd64]
13:54:20.898 DEBUG --> GET https://REDACTED_SONAR_URL/api/v2/analysis/jres?os=windows&arch=amd64
13:54:20.935 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/v2/analysis/jres?os=windows&arch=amd64 (37ms, unknown-length body)
13:54:20.963 DEBUG Executing: C:\Users\user\.sonar\cache\4bafe2e94439c8193fc8c68247cb0dbaf4e80265b903288f63f128304f129bbe\OpenJDK17U-jre_x64_windows_hotspot_17.0.11_9.zip_extracted\jdk-17.0.11+9-jre\bin\java.exe --version
13:54:21.025 DEBUG openjdk 17.0.11 2024-04-16
13:54:21.025 DEBUG OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
13:54:21.025 DEBUG OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode, sharing)
13:54:21.051 DEBUG --> GET https://REDACTED_SONAR_URL/api/v2/analysis/engine
13:54:21.090 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/v2/analysis/engine (38ms, unknown-length body)
13:54:21.094 INFO  Communicating with SonarQube Server 10.6.0.92116
13:54:21.095 DEBUG Work directory: C:\Users\user\code\.scannerwork
13:54:21.100 DEBUG Executing: C:\Users\user\.sonar\cache\4bafe2e94439c8193fc8c68247cb0dbaf4e80265b903288f63f128304f129bbe\OpenJDK17U-jre_x64_windows_hotspot_17.0.11_9.zip_extracted\jdk-17.0.11+9-jre\bin\java.exe -jar C:\Users\user\.sonar\cache\a86f18d343a1c4d6d5e36f4282340f26a6298dcf88ccf2d9b1dcdd68e4230954\scanner-enterprise-10.6.0.92116-all.jar
13:54:21.358 INFO  Starting SonarScanner Engine...
13:54:21.358 INFO  Java 17.0.11 Eclipse Adoptium (64-bit)
13:54:21.376 DEBUG JVM max available memory: 7 GB
13:54:21.501 DEBUG Enterprise 10.6.0.92116
13:54:21.581 DEBUG Sonar User Home: C:\Users\user\.sonar
13:54:21.718 DEBUG Successfully loaded KeyStore of the type [Windows-ROOT] having [75] entries
13:54:21.719 DEBUG Failed to load KeyStore of the type [Windows-ROOT-LOCALMACHINE]
13:54:21.753 DEBUG Successfully loaded KeyStore of the type [Windows-ROOT-CURRENTUSER] having [75] entries
13:54:21.754 DEBUG Successfully loaded KeyStore of the type [Windows-MY] having [0] entries
13:54:21.754 DEBUG Successfully loaded KeyStore of the type [Windows-MY-CURRENTUSER] having [0] entries
13:54:21.755 DEBUG Failed to load KeyStore of the type [Windows-MY-LOCALMACHINE]
13:54:21.756 DEBUG Loaded [150] system trusted certificates
13:54:21.895 INFO  Load global settings
13:54:21.905 DEBUG --> GET https://REDACTED_SONAR_URL/api/settings/values.protobuf
13:54:22.168 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/settings/values.protobuf (261ms, unknown-length body)
13:54:22.191 INFO  Load global settings (done) | time=295ms
13:54:22.193 INFO  Server id: 7790179B-AWAnQNrLHSnDQxNpt3DX
13:54:22.195 DEBUG User cache: C:\Users\user\.sonar\cache
13:54:22.199 INFO  Loading required plugins
13:54:22.199 INFO  Load plugins index
13:54:22.199 DEBUG --> GET https://REDACTED_SONAR_URL/api/plugins/installed
13:54:22.246 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/plugins/installed (46ms, unknown-length body)
13:54:22.253 INFO  Load plugins index (done) | time=53ms
13:54:22.253 INFO  Load/download plugins
13:54:22.303 INFO  Load/download plugins (done) | time=50ms
13:54:22.303 DEBUG Plugins not loaded because they are optional: [abap, sonarapex, csharp, cpp, cfamilydependencies, cobol, dbd, dbdjavafrontend, dbdpythonfrontend, flex, go, web, jcl, javasymbolicexecution, java, javascript, kotlin, php, pli, plsql, rpg, ruby, sonarscala, swift, tsql, vbnet, vb, security, securitycsharpfrontend, securityjsfrontend, securityjavafrontend, securityphpfrontend, securitypythonfrontend]
13:54:22.348 DEBUG Plugins loaded:
13:54:22.348 DEBUG   * Text Code Quality and Security 2.12.1.2905 (textenterprise)
13:54:22.349 DEBUG   * Dependency-Check 4.0.0 (dependencycheck)
13:54:22.349 DEBUG   * Python Code Quality and Security 4.19.0.15616 (python)
13:54:22.349 DEBUG   * Clean as You Code 2.3.0.1782 (cayc)
13:54:22.350 DEBUG   * XML Code Quality and Security 2.10.0.4108 (xml)
13:54:22.350 DEBUG   * JaCoCo 1.3.0.1538 (jacoco)
13:54:22.350 DEBUG   * IaC Code Quality and Security 1.31.0.10579 (iac)
13:54:22.350 DEBUG   * Text Code Quality and Security 2.12.1.2905 (text)
13:54:22.351 DEBUG   * Checkstyle 10.12.3 (checkstyle)
13:54:22.379 INFO  Loaded core extensions: developer-scanner
13:54:22.391 DEBUG Installed core extension: developer-scanner
13:54:22.484 DEBUG register org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$346/0x00000141422afd70@7bb004b8 with shutdown hook
13:54:22.564 INFO  Process project properties
13:54:22.565 INFO  Process project properties (done) | time=0ms
13:54:22.574 INFO  Project key: code-project
13:54:22.575 INFO  Base dir: C:\Users\user\code
13:54:22.575 INFO  Working dir: C:\Users\user\code\.scannerwork
13:54:22.576 DEBUG Project global encoding: UTF-8, default locale: fr_FR
13:54:22.583 INFO  Load project settings for component key: 'code-project'
13:54:22.585 DEBUG --> GET https://REDACTED_SONAR_URL/api/settings/values.protobuf?component=code-project
13:54:22.628 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/settings/values.protobuf?component=code-project (43ms, unknown-length body)
13:54:22.630 INFO  Load project settings for component key: 'code-project' (done) | time=47ms
13:54:22.650 INFO  Load project branches
13:54:22.654 DEBUG --> GET https://REDACTED_SONAR_URL/api/project_branches/list?project=code-project
13:54:22.690 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/project_branches/list?project=code-project (39ms, unknown-length body)
13:54:22.702 INFO  Load project branches (done) | time=52ms
13:54:22.702 INFO  Load branch configuration
13:54:22.702 INFO  Load branch configuration (done) | time=0ms
13:54:22.710 DEBUG Creating module hierarchy
13:54:22.710 DEBUG   Init module 'Code project'
13:54:22.710 DEBUG     Base dir: C:\Users\user\code
13:54:22.710 DEBUG     Working dir: C:\Users\user\code\.scannerwork
13:54:22.714 DEBUG     Module global encoding: UTF-8, default locale: fr_FR
13:54:22.718 INFO  Load quality profiles
13:54:22.718 DEBUG --> GET https://REDACTED_SONAR_URL/api/qualityprofiles/search.protobuf?project=code-project
13:54:22.781 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/qualityprofiles/search.protobuf?project=code-project (59ms, 4368-byte body)
13:54:22.796 INFO  Load quality profiles (done) | time=77ms
13:54:22.810 DEBUG SCM Step is disabled by configuration
13:54:22.813 INFO  Load active rules
13:54:22.814 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYR270kp2rzOOnmNkQAv&ps=500&p=1
13:54:22.865 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYR270kp2rzOOnmNkQAv&ps=500&p=1 (50ms, 4223-byte body)
13:54:22.944 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJGvgRjp0K8DmuAI&ps=500&p=1
13:54:22.992 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJGvgRjp0K8DmuAI&ps=500&p=1 (48ms, 8094-byte body)
13:54:22.998 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJKdgRjp0K8DmuBl&ps=500&p=1
13:54:23.051 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJKdgRjp0K8DmuBl&ps=500&p=1 (52ms, unknown-length body)
13:54:23.057 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJMigRjp0K8DmuCF&ps=500&p=1
13:54:23.088 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJMigRjp0K8DmuCF&ps=500&p=1 (30ms, 12-byte body)
13:54:23.089 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAsa7DcMaSkg78dONyg&ps=500&p=1
13:54:23.262 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAsa7DcMaSkg78dONyg&ps=500&p=1 (174ms, unknown-length body)
13:54:23.341 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPaoCMkJDgE3w7B52L&ps=500&p=1
13:54:23.559 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPaoCMkJDgE3w7B52L&ps=500&p=1 (218ms, unknown-length body)
13:54:23.607 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJWlgRjp0K8DmuKm&ps=500&p=1
13:54:23.665 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJWlgRjp0K8DmuKm&ps=500&p=1 (59ms, unknown-length body)
13:54:23.668 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYvuCwnA-lj3OEXaeOhs&ps=500&p=1
13:54:23.731 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYvuCwnA-lj3OEXaeOhs&ps=500&p=1 (62ms, unknown-length body)
13:54:23.734 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPcTFgkVMehPHtyP&ps=500&p=1
13:54:23.823 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPcTFgkVMehPHtyP&ps=500&p=1 (88ms, unknown-length body)
13:54:23.834 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=4219d982-8b05-4c22-aec7-891e152bc53f&ps=500&p=1
13:54:23.906 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=4219d982-8b05-4c22-aec7-891e152bc53f&ps=500&p=1 (72ms, 3387-byte body)
13:54:23.907 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAnQQLXHSnDQxNpt3O9&ps=500&p=1
13:54:24.130 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAnQQLXHSnDQxNpt3O9&ps=500&p=1 (222ms, unknown-length body)
13:54:24.200 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAnQQLXHSnDQxNpt3O9&ps=500&p=2
13:54:24.292 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAnQQLXHSnDQxNpt3O9&ps=500&p=2 (92ms, unknown-length body)
13:54:24.298 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJvhgRjp0K8Dmuqi&ps=500&p=1
13:54:24.358 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJvhgRjp0K8Dmuqi&ps=500&p=1 (59ms, unknown-length body)
13:54:24.361 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJ0UgRjp0K8DmutF&ps=500&p=1
13:54:24.411 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmJ0UgRjp0K8DmutF&ps=500&p=1 (50ms, unknown-length body)
13:54:24.412 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAsa670MaSkg78dONts&ps=500&p=1
13:54:24.462 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWAsa670MaSkg78dONts&ps=500&p=1 (49ms, 6849-byte body)
13:54:24.463 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-Swx-DBIJqN2j_-p&ps=500&p=1
13:54:24.498 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-Swx-DBIJqN2j_-p&ps=500&p=1 (33ms, 12-byte body)
13:54:24.499 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYR274yE2rzOOnmNkQQo&ps=500&p=1
13:54:24.539 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYR274yE2rzOOnmNkQQo&ps=500&p=1 (39ms, 326-byte body)
13:54:24.539 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsP5pFgkVMehPHt22&ps=500&p=1
13:54:24.640 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsP5pFgkVMehPHt22&ps=500&p=1 (100ms, unknown-length body)
13:54:24.659 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-Sx6-DBIJqN2j__h&ps=500&p=1
13:54:24.715 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-Sx6-DBIJqN2j__h&ps=500&p=1 (55ms, unknown-length body)
13:54:24.716 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsQDpFgkVMehPHt6P&ps=500&p=1
13:54:24.783 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsQDpFgkVMehPHt6P&ps=500&p=1 (65ms, unknown-length body)
13:54:24.786 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-SzG-DBIJqN2j__9&ps=500&p=1
13:54:24.821 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-t-SzG-DBIJqN2j__9&ps=500&p=1 (34ms, 12-byte body)
13:54:24.821 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPCoFgkVMehPHtlW&ps=500&p=1
13:54:25.027 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPCoFgkVMehPHtlW&ps=500&p=1 (205ms, unknown-length body)
13:54:25.066 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPIcFgkVMehPHtqn&ps=500&p=1
13:54:25.196 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPIcFgkVMehPHtqn&ps=500&p=1 (131ms, unknown-length body)
13:54:25.209 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKL0gRjp0K8Dmu44&ps=500&p=1
13:54:25.261 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKL0gRjp0K8Dmu44&ps=500&p=1 (52ms, 7267-byte body)
13:54:25.263 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKHwgRjp0K8Dmu3e&ps=500&p=1
13:54:25.344 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKHwgRjp0K8Dmu3e&ps=500&p=1 (83ms, unknown-length body)
13:54:25.358 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPMHFgkVMehPHttM&ps=500&p=1
13:54:25.407 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPMHFgkVMehPHttM&ps=500&p=1 (48ms, unknown-length body)
13:54:25.410 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWJCwkCakCDU6J-fiQgy&ps=500&p=1
13:54:25.454 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWJCwkCakCDU6J-fiQgy&ps=500&p=1 (44ms, 758-byte body)
13:54:25.455 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPY-FgkVMehPHtwN&ps=500&p=1
13:54:25.513 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPY-FgkVMehPHtwN&ps=500&p=1 (58ms, 5315-byte body)
13:54:25.516 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPXEFgkVMehPHtvM&ps=500&p=1
13:54:25.596 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPXEFgkVMehPHtvM&ps=500&p=1 (80ms, unknown-length body)
13:54:25.598 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPVHFgkVMehPHtuD&ps=500&p=1
13:54:25.659 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPVHFgkVMehPHtuD&ps=500&p=1 (60ms, 7169-byte body)
13:54:25.664 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYvuCzHw-lj3OEXaeOkq&ps=500&p=1
13:54:25.733 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AYvuCzHw-lj3OEXaeOkq&ps=500&p=1 (70ms, unknown-length body)
13:54:25.736 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKUDgRjp0K8Dmu6w&ps=500&p=1
13:54:25.786 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKUDgRjp0K8Dmu6w&ps=500&p=1 (50ms, unknown-length body)
13:54:25.789 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKYwgRjp0K8DmvDx&ps=500&p=1
13:54:26.007 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AX-tmKYwgRjp0K8DmvDx&ps=500&p=1 (217ms, unknown-length body)
13:54:26.047 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPvuFgkVMehPHt1J&ps=500&p=1
13:54:26.114 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWRvsPvuFgkVMehPHt1J&ps=500&p=1 (66ms, unknown-length body)
13:54:26.115 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=1
13:54:26.235 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=1 (119ms, unknown-length body)
13:54:26.245 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=2
13:54:26.288 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=2 (46ms, 13-byte body)
13:54:26.292 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=3
13:54:26.336 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=3 (43ms, 13-byte body)
13:54:26.336 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=4
13:54:26.385 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=4 (47ms, 13-byte body)
13:54:26.386 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=5
13:54:26.433 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=5 (47ms, 13-byte body)
13:54:26.434 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=6
13:54:26.480 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=6 (45ms, 13-byte body)
13:54:26.480 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=7
13:54:26.524 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=7 (43ms, 13-byte body)
13:54:26.524 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=8
13:54:26.565 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=8 (40ms, 13-byte body)
13:54:26.565 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=9
13:54:26.609 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=9 (43ms, 13-byte body)
13:54:26.610 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=10
13:54:26.649 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=10 (38ms, 13-byte body)
13:54:26.650 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=11
13:54:26.725 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=11 (75ms, 13-byte body)
13:54:26.725 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=12
13:54:26.778 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=12 (53ms, 13-byte body)
13:54:26.778 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=13
13:54:26.832 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=13 (52ms, 13-byte body)
13:54:26.833 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=14
13:54:26.876 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=14 (44ms, 13-byte body)
13:54:26.876 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=15
13:54:26.925 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=15 (47ms, 13-byte body)
13:54:26.925 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=16
13:54:26.981 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=16 (53ms, 13-byte body)
13:54:26.981 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=17
13:54:27.045 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=17 (64ms, 13-byte body)
13:54:27.045 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=18
13:54:27.106 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=18 (61ms, 13-byte body)
13:54:27.106 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=19
13:54:27.156 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=19 (46ms, 13-byte body)
13:54:27.157 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=20
13:54:27.206 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=20 (49ms, 13-byte body)
13:54:27.207 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=21
13:54:27.253 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=21 (45ms, 13-byte body)
13:54:27.253 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=22
13:54:27.310 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=22 (58ms, 13-byte body)
13:54:27.314 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=23
13:54:27.366 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=23 (52ms, 13-byte body)
13:54:27.367 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=24
13:54:27.423 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=24 (55ms, 13-byte body)
13:54:27.424 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=25
13:54:27.476 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=25 (54ms, 13-byte body)
13:54:27.479 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=26
13:54:27.526 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=26 (46ms, 13-byte body)
13:54:27.526 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=27
13:54:27.573 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=27 (45ms, 13-byte body)
13:54:27.573 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=28
13:54:27.646 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=28 (72ms, 13-byte body)
13:54:27.647 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=29
13:54:27.718 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=29 (71ms, 13-byte body)
13:54:27.718 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=30
13:54:27.772 DEBUG <-- 200 https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=30 (55ms, 13-byte body)
13:54:27.776 DEBUG --> GET https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=31
[...] Killed the scan here

Hi,

This goes sideways on this profile:

I don’t think this is a problem with the scanners, but with the data being returned from the server for this profile. Can you call https://REDACTED_SONAR_URL/api/rules/list.protobuf?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=1 manually and post the pagination data that should be at the top of the response? I believe there’s going to be an absurdly large number in the total field.

And can you double-check whatever profile that is via the UI to make sure it does only have a reasonable number of rules? It will also be useful to know what language it’s for. (Full disclosure: I doubt your 3rd-party plugins are relevant here, but it will be good to eliminate them.)

 
Thx,
Ann

Sure,

That profile is for the PHP language, it’s the built-in Sonar way and the paging data block is the following:

curl --silent --header 'Authorization: Bearer [...]' \
'https://REDACTED_SONAR_URL/api/rules/list?qprofile=AWGPam72kJDgE3w7B5zL&ps=500' | jq .paging

{
  "pageIndex": 1,
  "pageSize": 192,
  "total": 193
}

Another broken profile is the Kotlin one (Sonar way built-in):

{
  "pageIndex": 1,
  "pageSize": 122,
  "total": 124
}

Looking at a diff between the API and DB I found that the rule missing from the API is the php:S5855.

Hi,

I suppose the problem is caused by that 1-off difference between the pageSize and the total. But just to make sure, could you pull page 2, and make sure the pagination data still looks reasonable (other than the obvs 1-off problem)?

Meanwhile, I’m going to flag this for more expert eyes.

 
Ann

Hi,
We also believe it’s that desync between pageSize and total that’s causing our scanners to loop forever.

Here’s the response for page 2:

curl --silent --header 'Authorization: Bearer [...]' \
'https://REDACTED_SONAR_URL/api/rules/list?qprofile=AWGPam72kJDgE3w7B5zL&ps=500&p=2' | jq .paging


{
  "pageIndex": 2,
  "pageSize": 0,
  "total": 193
}
1 Like

Hi,

We found a fix for this issue!

After reviewing the actions with our DB team we found out there was an intervention scheduled the day our incident began. The PostgreSQL DB used by Sonar was moved to another server.

It seems that this somehow messed things up but we managed to recover by:

  1. Stopping Sonarqube server
  2. Deleting the data/es8 folder
  3. Rolling back the database to before the incident (might not have been needed after all)
  4. Rebuilding the database’s index: REINDEX DATABASE "SONAR";
  5. Restarting Sonarqube

After that the API started to return the correct pagination data for all profiles:

curl --silent --header 'Authorization: Bearer [...]' \
'https://REDACTED_SONAR_URL/api/rules/list?qprofile=AWGPam72kJDgE3w7B5zL&ps=500' | jq .paging

{
  "pageIndex": 1,
  "pageSize": 193,
  "total": 193
}

Thanks for your help @ganncamp :smiley:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.