"The bridge server is unresponsive" error while scanning Typescript project

Leaving this doc for future users:

Thanks for your response, but we are unable to make this work with those instructions. We are not using bitbucket, we are using Github actions. Is there a way to to define the docker memory and extra args for GitHub actions? Like I said, if I set the “definitions docker memory” value like you suggested, the whole Sonarcloud action stops running on Github.

EDIT: I just want to add that we have been using SonarCloud for at least a year. For some reason it suddenly stopped working 2 days ago. So the error is not happening because we have setup the SonarCloud incorrectly, something has broken the system on your part.

For those who run SonarCloud in Bitbucket pipeline:
After hours of troubleshooting this issue with support from Sonar folks, I found out the only way that can make my sonarcloud-scan work in Bitbucket pipeline is increasing service container (docker) memory to 4096 as below:

definitions:
  services:
    docker:
      memory: 4096

Keep in mind that Bitbucket Cloud allocates total 8192MB RAM to build step which is distributed to the build container and any service containers defined in the build step.

  • The build container executes the scripts defined in the build step.
  • The service containers run the services, if there are any.

Back to our case, we must allocate 4096MB RAM for service container (docker) in order to have sonarcloud-scan working OK. So we only have remaining 4096MB RAM for build container.
Make sure your scripts defined in the build step won’t consume too much memory, otherwise it will be killed by Bitbucket Cloud because of Out of Memory issue.

Ref: Databases and service containers | Bitbucket Cloud | Atlassian Support
Section: Service memory limits

Best regards,
Thai Nguyen

2 Likes

Our problem with Bitbucket pipelines was resolved by allowing 4GB for the scanner like this:

- pipe: sonarsource/sonarcloud-scan:2.0.0
  variables:
    EXTRA_ARGS: '-Dsonar.javascript.node.maxspace=4096'
2 Likes

Hi @os-tohe,

You need to use the args option. you can read more details the github action repo.

- name: SonarCloud Scan
  uses: sonarsource/sonarcloud-github-action@master
  with:
    args: >
      -Dsonar.javascript.node.maxspace=4096

Please, let me know if that helps.

Thanks, but unfortunately that did not help. With that argument the error looks like this:

INFO: Load metrics repository
INFO: Load metrics repository (done) | time=231ms
INFO: Sensor cache enabled
INFO: Load sensor cache
INFO: Load sensor cache (4 KB) | time=1264ms
INFO: Sensor HTML [web]
INFO: Sensor HTML is restricted to changed files only
INFO: Sensor HTML [web] (done) | time=7ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
INFO: Sensor IaC CloudFormation Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=72ms
INFO: Sensor IaC AzureResourceManager Sensor [iac]
INFO: Sensor IaC AzureResourceManager Sensor is restricted to changed files only
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=78ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: Sensor TextAndSecretsSensor is restricted to changed files only
INFO: Sensor TextAndSecretsSensor [text] (done) | time=489ms
INFO: Sensor JavaScript/TypeScript analysis [javascript]
INFO: Detected os: Linux arch: amd64 alpine: true. Platform: UNSUPPORTED
INFO: Configured Node.js --max-old-space-size=4096.
INFO: Using Node.js executable: 'node'.
INFO: Memory configuration: OS (6921 MB), Node.js (4144 MB).
INFO: Found 1 tsconfig.json file(s): [/github/workspace/tsconfig.json]
WARN: Could not find tsconfig.json: /node_modules/@vue/tsconfig/tsconfig.dom.json/tsconfig.json; falling back to an empty configuration.
INFO: Analyzing 237 files using tsconfig: /github/workspace/tsconfig.json
INFO: 238 source files to be analyzed
ERROR: Failed to analyze file [src/services/backend/index.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/composables/mediaQuery.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/management/tabs/ReportManagement.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/services/bicharts.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/mainsite/ReportListItem.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/stores/reportpage.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/types/rapogen.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/views/NotFound.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/bipagestructure/sidenavbars/param/BIParamMenuRightNavbar.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 9/238 files analyzed, current file: /github/workspace/src/components/bipagestructure/sidenavbars/param/BIParamMenuRightNavbar.vue
ERROR: Failed to analyze file [src/services/eventlogs.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/colors/ColorChart.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/sidenavbars/settings/ReportSettingMenuFooter.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/services/loginusers.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/common/ReportTitle.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/__tests__/util/index.test.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/tooltip.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/bipagestructure/sidenavbars/param/BIParamMenuRightNavbarFilterItem.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/demodata/tempParameterData.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/colors/ColorSaveButton.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/bipagestructure/menu/BIPageMenuWhiteBgIcon.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/bipagestructure/sidenavbars/param/BIParamMenuCloseButton.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 21/238 files analyzed, current file: /github/workspace/src/components/bipagestructure/sidenavbars/param/BIParamMenuCloseButton.vue
ERROR: Failed to analyze file [src/types/oil.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/mainsite/modals/ReportDetailsModal.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/bipagestructure/modals/DefaultSelectionModal.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/mainsidenavbar/UserInfo.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/wrapper/oscomponents/OsCheckboxWrapper.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/types/cloud.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/mainsite/modals/common/ReportModalModifyLayout.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/common/TabWindow.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/formulasettings/FormulaTextArea.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/stores/color.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/sidenavbars/settings/chart/ReportSettingMenuChartOptionsExpression.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/util/test/setup.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/types/printout.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 34/238 files analyzed, current file: /github/workspace/src/types/printout.ts
ERROR: Failed to analyze file [src/types/logging.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/services/authentication/index.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/sidenavbars/settings/ReportSettingMenuTitle.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/stores/printout.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/ReportPageMenuReportName.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/services/printouts.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/ReportPageMenuSearch.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/common/ModalWindow.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/colors/ColorPageChart.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/composables/errorHandler.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 44/238 files analyzed, current file: /github/workspace/src/composables/errorHandler.ts
ERROR: Failed to analyze file [src/demodata/chartTableTestData.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/util/colors/index.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/types/common.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/stores/modal.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/common/mainNavbar/MainNavbarIcon.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/main.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/charts/ChartMenuButtons.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/reportpage/menu/sidenavbars/settings/chart/ReportSettingMenuChartOrder.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/__tests__/util/chart/settings.test.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/views/MainPage.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 54/238 files analyzed, current file: /github/workspace/src/views/MainPage.vue
ERROR: Failed to analyze file [src/composables/routeHandler.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/common/BackToHomeMenu.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/printoutpage/menu/PrintoutPageChosenPrintoutMenu.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/types/main.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/services/bilicenseusages.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/util/constants.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 60/238 files analyzed, current file: /github/workspace/src/util/constants.ts
ERROR: Failed to analyze file [src/components/mainsite/modals/PublishReportModal.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/components/mainsidenavbar/VersionInfo.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: Failed to analyze file [src/util/common/index.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
INFO: 63/238 files analyzed, current file: /github/workspace/src/util/common/index.ts
ERROR: Failed to analyze file [src/util/reportpage/menu.ts]: File '@vue/tsconfig/tsconfig.dom.json' not found.
ERROR: The analysis will stop due to the Node.js process running out of memory (heap size limit 4144 MB)
ERROR: You can see how Node.js heap usage evolves during analysis with "sonar.javascript.node.debugMemory=true"
ERROR: Try setting "sonar.javascript.node.maxspace" to a higher value to increase Node.js heap size limit
ERROR: If the problem persists, please report the issue at https://community.sonarsource.com
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.analyzeTypeScript(BridgeServerImpl.java:367)
INFO: Hit the cache for 0 out of 65
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:156)
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeTsConfig(AnalysisWithWatchProgram.java:130)
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeFiles(AnalysisWithWatchProgram.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:185)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:181)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:152)
	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(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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(HttpClientImpl.java:586)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)
	... 39 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(Utils.java:348)
	at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.onReadError(Http1Response.java:675)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.checkForErrors(Http1AsyncReceiver.java:302)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Http1AsyncReceiver.java:268)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(SequentialScheduler.java:205)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.EOFException: EOF reached while reading
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver$Http1TubeSubscriber.onComplete(Http1AsyncReceiver.java:596)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion(SocketTube.java:640)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(SocketTube.java:845)
	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(SocketTube.java:181)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:303)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:256)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(SocketTube.java:774)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(SocketTube.java:957)
	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(SocketTube.java:253)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:979)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:934)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:934)

INFO: Miss the cache for 65 out of 65: FILE_CHANGED [65/65]
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:47.761s
INFO: Final Memory: 19M/70M
ERROR: Error during SonarScanner execution
INFO: ------------------------------------------------------------------------
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:185)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:181)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:152)
	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(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	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.analyzeTypeScript(BridgeServerImpl.java:367)
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:156)
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeTsConfig(AnalysisWithWatchProgram.java:130)
	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeFiles(AnalysisWithWatchProgram.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(HttpClientImpl.java:586)
	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)
	... 39 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(Utils.java:348)
	at java.net.http/jdk.internal.net.http.Http1Response$HeadersReader.onReadError(Http1Response.java:675)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.checkForErrors(Http1AsyncReceiver.java:302)
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver.flush(Http1AsyncReceiver.java:268)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$LockingRestartableTask.run(SequentialScheduler.java:205)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:149)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.EOFException: EOF reached while reading
	at java.net.http/jdk.internal.net.http.Http1AsyncReceiver$Http1TubeSubscriber.onComplete(Http1AsyncReceiver.java:596)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion(SocketTube.java:640)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read(SocketTube.java:845)
	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowTask.run(SocketTube.java:181)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:230)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:303)
	at java.net.http/jdk.internal.net.http.common.SequentialScheduler.runOrSchedule(SequentialScheduler.java:256)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable(SocketTube.java:774)
	at java.net.http/jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent(SocketTube.java:957)
	at java.net.http/jdk.internal.net.http.SocketTube$SocketFlowEvent.handle(SocketTube.java:253)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent(HttpClientImpl.java:979)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3(HttpClientImpl.java:934)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.net.http/jdk.internal.net.http.HttpClientImpl$SelectorManager.run(HttpClientImpl.java:934)

I also tried increasing the maxspace to 8192, but after 20 minutes of scanning it was still analyzing the file number 122/238 so I stopped the scan.

Hi @os-tohe,

can you install dependencies in a previous step:

      - name: Install dependencies
        run: npm install
      - name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@master
        with:
          args: >
            -Dsonar.javascript.node.maxspace=4096

Now it functions correctly again, thank you very much!

1 Like

Hi Team,

We are also facing the similar problem as Nam Ho, Environment is as below information. Kindly help with any known workarounds / solutions to overcome this issue.

  • CI system used: Azure DevOps Cloud
  • Scanner command used: SonarCloud: SonarCloud
    organization: ‘xxx’
    cliprojectKey: xxx
    cliprojectName: xxx
    scannerMode: CLI
    configMode: manual
    extraProperties: |
    # Additional properties that will be passed to the scanner,
    # Put one key=value per line, example:
    sonar.sources=./src
    sonar.javascript.exclusions =“/*.spec.js",“src/app.js”,“src/api/controller/camundaController.js”,“src/api/controller/kafkaConsumer.js”,“src/api/controller/serviceTaskController.js”,"src/api/handler/.js”,“src/api/model/.js","src/api/socket/.js”,“src/api/utils/awsSecretsManagerService.js”,“src/api/utils/commonFunctions.js”,“src/api/utils/emailListners/.js",“src/api/utils/schedular.js”,"src/libs/dbSchema/.js”
    sonar.language=js
    sonar.sourceEncoding=UTF-8
    sonar.javascript.lcov.reportPaths=/coverage/lcov.info
    sonar.host.url=https://sonarcloud.io
    sonar.javascript.node.maxspace=4096
  • Languages of the repository: NodeJS
  • Error observed: Enclosed error log
    Concierto-SonarCloud-Error-05-Feb-24.txt (16.9 KB)

Hello @PremKumarTrz,

can you please enable debug logs (sonar.verbose=true) and share them?

Cheers,
Victor

After you made the last update, all the analyzes of our projects began to fail due to the management of virtual memory.
The solution I found was to sequentialize the analysis by the code, but in short-lived branches it is not cumulative but rather the previous analysis is deleted, and only the last analysis remains.
For example in this case, with 3 sequential executions SonarCloud gets dizzy and does not save anything:
image
However, in a case like this:
image

 - step: &sonar-cloud3
        name: Runs Sonar Cloud Tools pages Folder
        script:
          - pipe: sonarsource/sonarcloud-scan:2.0.0
            variables:
              SONAR_SCANNER_OPTS: -Xmx32768m
              EXTRA_ARGS: '-Dsonar.sources=pages -Dsonar.javascript.node.maxspace=32768 -Dsonar.verbose=true' 
          - pipe: sonarsource/sonarcloud-quality-gate:0.1.6

Only the analysis of the specific folder remains, without having the possibility of putting other folders and the result being cumulative.
And that is clearly a problem with “sonarcloud-scan:2.0.0” since before the same projects could be analyzed without problems and without doing these maneuvers and manipulation of memory. I think you should take this problem seriously, since it is starting to be cumbersome for those of us who work with your product all day, it is very annoying to be having to modify the pipelines, the code and the branches to achieve a code analysis.

2 Likes

The memory definitely not a problem here. For example, the scanner in all of our projects stopped working on 29 January. Increasing memory doesn’t help and it also sounds strange, because there’s no reason to use 4 GB of memory for a few TypeScript files. Also, it works locally with even 1024 MB perfectly, but in the GitLab CI, it’s failing even with 4 GB set as node memory.

What I can add for our specific case is that the possible problem can be related to the inability to find a tsconfig.json defined in the extends inside another tsconfig.json.

21:28:50.202 ERROR: Failed to analyze file [Component.vue]: File '@vue/tsconfig/tsconfig.dom.json' not found.

Before 29.01 it wasn’t a problem. The scanner reported the same error, but the result has been still generated.

After 29.01 Node.js process crashed with the “out of memory” problem on the same code.

Adding the missed config fixed the problem mentioned here without increasing memory, but it looks like you need to look into the issue closely. Suggesting increasing memory to X GB can be also pricy for some customers and it’s just masking the actual problem.

1 Like

Thanks for the feedback @Ky6uk and @Maria_Jose_Adrian,

we are aware of those issues and we are monitoring them closely. Since the last release indeed there has been a big impact on used memory. We are keeping a close eye and try to improve the analysis performance in the coming months. In the meantime increasing the memory is the solution for these cases.

Thanks again,
Victor

Hi All,
can anyone help me here , struggling from 1day
20:14:21.942 DEBUG: Analysis of unchanged files will not be skipped (current analysis requires all files to be analyzed)
Cannot contact maven: java.lang.InterruptedException
20:20:13.117 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.initLinter(BridgeServerImpl.java:352)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.initLinter(BridgeServerImpl.java:320)
at org.sonar.plugins.javascript.bridge.JsTsSensor.analyzeFiles(JsTsSensor.java:107)
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(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
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.net.http.HttpTimeoutException: request timed out
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:571)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)
… 37 common frames omitted

20:20:19.591 INFO: Hit the cache for 0 out of 0
20:20:33.702 INFO: Miss the cache for 0 out of 0
20:21:13.143 ERROR: isAlive was interrupted
java.lang.InterruptedException: null
at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:386)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2073)
at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:553)
at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.isAlive(BridgeServerImpl.java:433)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.heartbeat(BridgeServerImpl.java:145)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)

20:21:23.324 DEBUG: The worker thread exited with code 1
20:21:23.333 DEBUG: The bridge server shut down
20:21:27.760 INFO: ------------------------------------------------------------------------
20:21:27.760 INFO: EXECUTION FAILURE
20:21:27.760 INFO: ------------------------------------------------------------------------ please let me know if you need more details please help me on this

I got this working by increasing the docker memory size as discussed previously but also had to increase the amount of memory for sonar using:

SONAR_SCANNER_OPTS: -Xmx512m

1 Like

Hello @RishabhA,

have you tried the proposed solutions about increasing memory for Node.js and Docker (if you are on Bitbucket pipelines)?

Cheers,
Victor

Hi, I have a couple of repos and setup all with same configuration with increasing memory in Bitbucket Pipeline.

  - pipe: sonarsource/sonarcloud-scan:2.0.0
            variables:
              SONAR_SCANNER_OPTS: -Xmx32768m
              EXTRA_ARGS: '-Dsonar.sources=./ -Dsonar.language=js -Dsonar.tests=./ -Dsonar.test.inclusions="**/*.spec.js" -Dsonar.javascript.node.maxspace=32768'

Still don’t work all repos that I have it and it happened all of sudden. (approx. 3 weeks ago)
I tried all solution here and nothing works for me. I am a paid user and it’s big problem for us at the moment.


INFO: Loading required plugins

INFO: Load plugins index

INFO: Load plugins index (done) | time=245ms

INFO: Load/download plugins

INFO: Load/download plugins (done) | time=542ms

INFO: Found an active CI vendor: 'Bitbucket Pipelines'

INFO: Detected project key '*******-new_red-v2-fe' from 'Bitbucket Cloud Pipelines'

INFO: Detected organization key '*******-new' from 'Bitbucket Cloud Pipelines'

INFO: Load project settings for component key: '*******-new_red-v2-fe'

INFO: Load project settings for component key: '*******-new_red-v2-fe' (done) | time=236ms

INFO: Process project properties

INFO: Project key: *******-new_red-v2-fe

INFO: Base dir: /opt/atlassian/pipelines/agent/build

INFO: Working dir: /opt/atlassian/pipelines/agent/build/.scannerwork

INFO: Load project branches

INFO: Load project branches (done) | time=249ms

INFO: Check ALM binding of project '*******-new_red-v2-fe'

INFO: Detected project binding: BOUND

INFO: Check ALM binding of project '*******-new_red-v2-fe' (done) | time=211ms

INFO: Load project pull requests

INFO: Load project pull requests (done) | time=223ms

INFO: Load branch configuration

INFO: Detected analysis for pull request '232' targeting 'dev'

INFO: Auto-configuring pull request 232

INFO: Load branch configuration (done) | time=741ms

INFO: Load quality profiles

INFO: Load quality profiles (done) | time=288ms

INFO: Load active rules

INFO: Load active rules (done) | time=9448ms

INFO: Organization key: *******-new

INFO: Pull request 232 for merge into dev from chore/add-bitbucket-pipeline

INFO: Preprocessing files...

INFO: 4 languages detected in 3575 preprocessed files

INFO: 65159 files ignored because of inclusion/exclusion patterns

INFO: 61584 files ignored because of scm ignore settings

INFO: Loading plugins for detected languages

INFO: Load/download plugins

INFO: Load/download plugins (done) | time=742ms

INFO: Load project repositories

INFO: Load project repositories (done) | time=252ms

INFO: SCM collecting changed files in the branch

INFO: SCM collecting changed files in the branch (done) | time=193ms

INFO: Indexing files...

INFO: Project configuration:

INFO:   Excluded sources: **/build-wrapper-dump.json, **/*.spec.js

INFO:   Included tests: **/*.spec.js

INFO: 3564 files indexed

INFO: Quality profile for css: Sonar way

INFO: Quality profile for js: Sonar way

INFO: Quality profile for json: Sonar way

INFO: Quality profile for yaml: Sonar way

INFO: ------------- Run sensors on module *******-new_red-v2-fe

INFO: Load metrics repository

INFO: Load metrics repository (done) | time=229ms

INFO: Sensor cache enabled

INFO: Load sensor cache

INFO: Load sensor cache (404) | time=402ms

INFO: Sensor HTML [web]

INFO: Sensor HTML is restricted to changed files only

INFO: Sensor HTML [web] (done) | time=20ms

INFO: Sensor JaCoCo XML Report Importer [jacoco]

INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml

INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer

INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms

INFO: Sensor IaC CloudFormation Sensor [iac]

INFO: 0 source files to be analyzed

INFO: 0/0 source files have been analyzed

INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=84ms

INFO: Sensor IaC Kubernetes Sensor [iac]

INFO: 0 source files to be analyzed

INFO: 0/0 source files have been analyzed

INFO: Sensor IaC Kubernetes Sensor [iac] (done) | time=92ms

INFO: Sensor IaC AzureResourceManager Sensor [iac]

INFO: Sensor IaC AzureResourceManager Sensor is restricted to changed files only

INFO: 0 source files to be analyzed

INFO: 0/0 source files have been analyzed

INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=118ms

INFO: Sensor TextAndSecretsSensor [text]

INFO: Sensor TextAndSecretsSensor is restricted to changed files only

INFO: 2 source files to be analyzed

INFO: 2/2 source files have been analyzed

INFO: Sensor TextAndSecretsSensor [text] (done) | time=642ms

INFO: Sensor JavaScript/TypeScript analysis [javascript]

INFO: Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64

INFO: Configured Node.js --max-old-space-size=32768.

INFO: Using embedded Node.js runtime

INFO: Using Node.js executable: '/root/.sonar/js/node-runtime/node'.

INFO: Memory configuration: OS (31292 MB), Node.js (32816 MB).

WARN: Node.js heap size limit 32816 is higher than available memory 31292. Check your configuration of sonar.javascript.node.maxspace

INFO: Found 1 tsconfig.json file(s): [/opt/atlassian/pipelines/agent/build/tsconfig.json]

INFO: Analyzing 746 files using tsconfig: /opt/atlassian/pipelines/agent/build/tsconfig.json

INFO: 746 source files to be analyzed

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

INFO: 0/746 files analyzed, current file: /opt/atlassian/pipelines/agent/build/mixins/auth.js

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.analyzeJavaScript(BridgeServerImpl.java:361)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:155)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeTsConfig(AnalysisWithWatchProgram.java:130)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeFiles(AnalysisWithWatchProgram.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(NativeMethodAccessorImpl.java:77)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

	at java.base/java.lang.reflect.Method.invoke(Method.java:568)

	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.net.http.HttpTimeoutException: request timed out

	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:571)

	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)

	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)

	... 39 common frames omitted


INFO: Hit the cache for 0 out of 1

INFO: Miss the cache for 1 out of 1: FILE_CHANGED [1/1]

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

INFO: Total time: 5:38.838s

INFO: Final Memory: 33M/228M

INFO: ------------------------------------------------------------------------

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(NativeMethodAccessorImpl.java:77)

	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

	at java.base/java.lang.reflect.Method.invoke(Method.java:568)

	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.analyzeJavaScript(BridgeServerImpl.java:361)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyze(AnalysisWithWatchProgram.java:155)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeTsConfig(AnalysisWithWatchProgram.java:130)

	at org.sonar.plugins.javascript.bridge.AnalysisWithWatchProgram.analyzeFiles(AnalysisWithWatchProgram.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.net.http.HttpTimeoutException: request timed out

	at java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:571)

	at java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:123)

	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.request(BridgeServerImpl.java:398)

	... 39 more

ERROR: 

ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

✖ SonarCloud analysis failed. (exit code = 1)

Hi @Brandon_Lee,

can you add -Dsonar.verbose=true to the ARGS and send me the full logs, please?

It’s almost 10mb. is there any ways to send it to you in private or via email?