Hello
We initially had an issue with the sonar scan running out of memory which we fixed but now we are getting this new error “ANALYSIS_MODE_INELIGIBLE”.
appreciate the help.
below is my config and logs:
sonar.organization=pizzahutuk
sonar.projectKey=pizzahutuk_dv-commerce
sonar.javascript.lcov.reportPaths=**/lcov.info
sonar.sources=apps,libs
sonar.language=ts
sonar.javascript.node.maxspace=4096
# added for when sonar scans break
sonar.verbose=true
# IMPORTANT - this means only code and files that are in the src folder will be part of sonarcloud scans and results
sonar.inclusions=**/apps/**,**/libs/**
# ignore all coverage on these
sonar.coverage.exclusions=**/.git/**,**/.circleci/**,**/.cm/**,**/.github/**,**/.vscode/**,**/mocks/**,**/__mocks__/**,**/tools/*,**/scripts/*,**/graphql/*,**/*.spec.*,**/*.test.*,**/__mock__/*.*,**/__mocks__/*.*,**/__test__/*.*
sonar.exclusions=**/.git/**,**/.circleci/**,**/.cm/**,**/.github/**,**/.vscode/**,**/mocks/**,**/__mocks__/**,**/tools/*,**/scripts/*,**/graphql/*,**/*.spec.*,**/*.test.*,**/__mock__/*.*,**/__mocks__/*.*,**/__test__/*.*
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-footer.spec.ts'
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/market/response-mappers/map-header.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-header.spec.ts'
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/env.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets/ca.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets/fr.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets/in.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets/pe.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets/uk.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/environments.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/configuration/markets.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/config.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/config/src/index.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/market/response-mappers/map-meta.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/market/response-mappers/map-home-page.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-home-page.spec.ts'
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-image.spec.ts'
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/market/response-mappers/map-informational-page.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-informational-page.spec.ts'
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-meta.spec.ts'
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/market/response-mappers/map-translations.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/market/response-mappers/__tests__/map-translations.spec.ts'
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/shared/graphql/graphql.ts'
10:41:46.945 DEBUG: File already analyzed: '/home/circleci/project/libs/contentful/src/shared/response-mappers/map-translations.ts'. Check your project configuration to avoid files being part of multiple projects.
10:41:46.945 DEBUG: File not part of the project: '/home/circleci/project/libs/contentful/src/shared/response-mappers/__tests__/map-translations.spec.ts'
10:41:46.945 INFO: Analyzed 0 file(s) with current program
10:41:46.962 INFO: Creating TypeScript program
10:41:46.962 INFO: TypeScript configuration file /home/circleci/project/libs/core/tsconfig.lib.json
10:41:53.169 ERROR: Failure during analysis
java.lang.IllegalStateException: The bridge server is unresponsive
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:403)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.createProgram(BridgeServerImpl.java:490)
at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:79)
at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
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 jdk.proxy1/jdk.proxy1.$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:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)
... 37 common frames omitted
Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes
at java.net.http/jdk.internal.net.http.common.Utils.wrapWithExtraDetail(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.onReadError(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.checkForErrors(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: EOF reached while reading
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver$Http1TubeSubscriber.onComplete(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(Unknown Source)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(Unknown Source)
10:41:53.169 INFO: Hit the cache for 0 out of 1173
10:41:53.171 INFO: Miss the cache for 1173 out of 1173: ANALYSIS_MODE_INELIGIBLE [1173/1173]
10:41:54.118 INFO: ------------------------------------------------------------------------
10:41:54.119 INFO: EXECUTION FAILURE
10:41:54.119 INFO: ------------------------------------------------------------------------
10:41:54.119 INFO: Total time: 3:06.271s
10:41:54.159 INFO: Final Memory: 19M/74M
10:41:54.159 INFO: ------------------------------------------------------------------------
10:41:54.159 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: Analysis of JS/TS files failed
at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:102)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:192)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:188)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:159)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:397)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:125)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
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 jdk.proxy1/jdk.proxy1.$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:126)
at org.sonarsource.scanner.cli.Main.execute(Main.java:81)
at org.sonarsource.scanner.cli.Main.main(Main.java:62)
Caused by: java.lang.IllegalStateException: The bridge server is unresponsive
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:403)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.createProgram(BridgeServerImpl.java:490)
at org.sonar.plugins.javascript.bridge.AnalysisWithProgram.analyzeFiles(AnalysisWithProgram.java:79)
at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:132)
at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:79)
... 33 more
Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(Unknown Source)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)
... 37 more
Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes
at java.net.http/jdk.internal.net.http.common.Utils.wrapWithExtraDetail(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.onReadError(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.checkForErrors(Unknown Source)
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: EOF reached while reading
at java.net.http/jdk.internal.net.http.Http1AsyncReceiver$Http1TubeSubscriber.onComplete(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(Unknown Source)
at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(Unknown Source)
at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(Unknown Source)
at java.base/java.util.ArrayList.forEach(Unknown Source)
at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(Unknown Source)
10:41:54.160 ERROR:
10:41:54.160 ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Exited with code exit status 1