Node js Scan Hangs Indefinitely in Bitbucket Pipelines After "Starting server"

Hello SonarCloud Community,

We are experiencing an issue where our SonarCloud analysis step in Bitbucket Pipelines hangs indefinitely. We would appreciate any help or insights you could provide.

Technical Details:

  • ALM: Bitbucket Cloud
  • CI System: Bitbucket Cloud Pipelines
    • Initially observed on self-hosted Bitbucket Runners (Kubernetes).
    • Issue persists when using standard Bitbucket Cloud runners (tested with up to 16x resources).
  • Scanner Used: Bitbucket Pipe sonarsource/sonarcloud-scan:4.1.0
  • Languages of Repository: JavaScript/TypeScript (Node.js, Angular project)

Bitbucket Pipelines Configuration (bitbucket-pipelines.yml):

pipelines:
  pull-requests: 
    '**':
      - step: &sonarcloud
          name: SonarCloud analysis
          size: 16x 
          script:
            - pipe: sonarsource/sonarcloud-scan:4.1.0
              variables:
                SONAR_TOKEN: $SONAR_TOKEN
                EXTRA_ARGS: >
                  -Dsonar.host.url=https://sonarcloud.io
                  -Dsonar.organization=vega-workspace-01
                  -Dsonar.projectKey=Vega_Workspace_01_nebula-ews
                  -Dsonar.sources=. 
                  -Dsonar.projectBaseDir=$BITBUCKET_CLONE_DIR
                  -Dsonar.scm.exclusions.disabled=true 
                  -Dsonar.log.level=DEBUG
                  -Dsonar.verbose=true
            - pipe: sonarsource/sonarcloud-quality-gate:0.2.0
              variables:
                SONAR_TOKEN: $SONAR_TOKEN
          

Error Observed:

The SonarCloud scan starts correctly, downloads necessary components (JRE, engine, plugins), loads settings and rules, but then hangs indefinitely after attempting to start the Node.js bridge server. The logs show the following messages, and then nothing further happens, even after waiting for 15+ minutes:

[...]
09:35:57.531 INFO  Deploy location /opt/sonar-scanner/.sonar/js/node-runtime, tagetRuntime: /opt/sonar-scanner/.sonar/js/node-runtime/node,  version: /opt/sonar-scanner/.sonar/js/node-runtime/version.txt
09:35:57.532 DEBUG Lock acquired for extraction
09:35:57.537 DEBUG Extracting embedded node to /opt/sonar-scanner/.sonar/js/node-runtime/node
[...]
09:36:00.745 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
09:36:00.822 DEBUG Deployed node version v22.11.0
09:36:00.823 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/56b4a307bec65b3532a905e4b5b5fa58/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules7907442354314246245
09:36:00.827 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/e84307d9f4320d1fccef426dd326ef62/sonar-architecturejavascriptfrontend-plugin.jar!/js-architecture-frontend-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules1995873229169027105
09:36:00.864 DEBUG Starting server
09:36:00.871 DEBUG Creating Node.js process to start the bridge server on port 45621
09:36:00.872 INFO  Using embedded Node.js runtime.
09:36:00.872 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
09:36:00.872 DEBUG Checking Node.js version
09:36:00.872 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
09:36:00.882 DEBUG Using Node.js v22.11.0.
09:36:00.882 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs 45621 127.0.0.1 false

<--- HANGS HERE INDEFINITELY OR FAILS--->

After hanging at this point for approximately 5 minutes (300 seconds), the process eventually fails with the following timeout error:

10:00:17.748 ERROR Failed to start the bridge server (300s timeout)
org.sonar.plugins.javascript.nodejs.NodeCommandException: Failed to start the bridge server (300s timeout)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServer(BridgeServerImpl.java:228)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServerLazily(BridgeServerImpl.java:326)
	at org.sonar.plugins.javascript.analysis.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:69)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:63)
	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:190)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:186)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:157)
	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:414)
	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:128)
	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.ScannerMain.runScannerEngine(ScannerMain.java:137)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:52)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:38)

Additional Context & Troubleshooting:

  • This analysis was previously working correctly and stopped working suddenly without any known changes to the bitbucket-pipelines.yml configuration or the SonarCloud project settings.
  • We initially suspected an issue with our self-hosted Kubernetes runners (network, infrastructure).
  • We then tested using standard Bitbucket Cloud runners. With default resources (size: 1x, 4GB), the process sometimes failed with memory errors. Increasing resources to the maximum (size: 4x, 16GB) resolved the memory errors, but the hang persists at the same point (launching the Node.js bridge server).
  • The project is a relatively small Angular application. The build step itself (if run separately) completes quickly (around 1 minute 40 seconds) using significantly fewer resources.
  • We have confirmed the SONAR_TOKEN is correctly configured and has the necessary permissions.
  • Network connectivity from the runner to sonarcloud.io and scanner.sonarcloud.io seems fine, as evidenced by the successful download of JRE, engine, and plugins earlier in the logs.

Steps to Reproduce:

  1. Configure a Bitbucket Pipeline using the sonarsource/sonarcloud-scan:4.1.0 pipe as shown above for the specified project.
  2. Ensure DEBUG logging is enabled (-Dsonar.log.level=DEBUG -Dsonar.verbose=true).
  3. Trigger the pipeline (e.g., by pushing to a branch or creating/updating a PR, depending on the pipeline trigger).
  4. Observe the logs for the SonarCloud analysis step.
  5. The process hangs after the Launching command ... server.cjs ... log line.

Potential Workaround:

We have not found any workaround yet.


Could this be related to the specific version of the embedded Node.js (v22.11.0 according to logs) used by the scanner, an issue within the sonarcloud-scan:4.1.0 pipe interacting with the Bitbucket environment, or a potential network block specifically affecting the Node.js server process?

Thank you for your time and assistance.

Felipe Rodriguez

Hey there.

Have you tried increasing sonar.javascript.node.maxspace?

Hi Colin,

Thanks for reply, does not seem to solve anything… remains here indefinitely, or until it fails.

# ...
09:56:23.163 DEBUG FileStoreAttributes[fsTimestampResolution=3 µs, minimalRacyInterval=3,975 µs]
09:56:23.170 DEBUG register org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007f8a145531c8@1ca7457e with shutdown hook
09:56:23.170 DEBUG unregister org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007f8a145531c8@1ca7457e from shutdown hook
09:56:23.171 DEBUG unregister org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007f8a145531c8@1ca7457e from shutdown hook
09:56:26.220 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
09:56:26.322 DEBUG Deployed node version v22.11.0
09:56:26.323 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/56b4a307bec65b3532a905e4b5b5fa58/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules14055177438047116565
09:56:26.327 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/e84307d9f4320d1fccef426dd326ef62/sonar-architecturejavascriptfrontend-plugin.jar!/js-architecture-frontend-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules8235524026901898384
09:56:26.366 DEBUG Starting server
09:56:26.373 DEBUG Creating Node.js process to start the bridge server on port 38661 
09:56:26.375 INFO  Configured Node.js --max-old-space-size=8192.
09:56:26.375 INFO  Using embedded Node.js runtime.
09:56:26.375 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
09:56:26.375 DEBUG Checking Node.js version
09:56:26.375 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
09:56:26.385 DEBUG Using Node.js v22.11.0.
09:56:26.385 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node --max-old-space-size=8192 /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs 38661 127.0.0.1 false

while the build lasts only 1.30s the SonarCloud analysis takes 18m and rising… are there more cases like this ? I can’t believe I’m the only one

Could you please share your full Bitbucket Pipelines YML (exactly as it is now, with the size adjusted)? It would also help to have the full, text-based logs from the SonarQube Cloud pipe.

Hi Colin,

Sorry for the late reply,

options:
  size: "16x"

clone:
  depth: full

definitions:
  caches:
    node: ~/.npm
    sonar: ~/.sonar

  steps:
    - step: &build
        name: build
        image: 192.168.12.5:5000/software/node:16.20.2
        runs-on:
          - oumuamua
          - self.hosted
          - linux
        caches:
          - node
        script:
          - npm install
          - ./build.sh Lander imx8mm-yocto
          - ./deploy.sh -s Lander imx8mm-yocto

    - step: &sonarcloud
        name: SonarCloud analysis
        script:
          - pipe: sonarsource/sonarcloud-scan:4.1.0
            variables:
              SONAR_TOKEN: $SONAR_TOKEN
              EXTRA_ARGS: >
                -Dsonar.host.url=https://sonarcloud.io
                -Dsonar.organization=vega-workspace-01
                -Dsonar.projectKey=Vega_Workspace_01_nebula-ews
                -Dsonar.sources=$BITBUCKET_CLONE_DIR/.
                -Dsonar.projectBaseDir=$BITBUCKET_CLONE_DIR
                -Dsonar.scm.exclusions.disabled=true
                -Dsonar.log.level=DEBUG
                -Dsonar.verbose=true
                -Dsonar.javascript.node.maxspace=8192
          - pipe: sonarsource/sonarcloud-quality-gate:0.2.0
            variables:
              SONAR_TOKEN: $SONAR_TOKEN


pipelines:
  branches:
    development:
      - parallel:
          - step: *build 
          - step: *sonarcloud 

  pull-requests:
    "**":
      - parallel:
          - step: *build
          - step: *sonarcloud

and here are the logs

10:54:02.400 DEBUG 'Libraries/Nebula/src/lib/pages/payment/payment.page.html' generated metadata with charset 'UTF-8'
10:54:02.412 DEBUG 'Libraries/Nebula/src/lib/pages/network/network.page.html' generated metadata with charset 'UTF-8'
10:54:02.422 INFO  Sensor HTML [web] (done) | time=203ms
10:54:02.423 INFO  Sensor JaCoCo XML Report Importer [jacoco]
10:54:02.424 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
10:54:02.425 INFO  No report imported, no coverage information will be imported by JaCoCo XML Report Importer
10:54:02.425 INFO  Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
10:54:02.425 INFO  Sensor IaC Ansible Sensor [iacenterprise]
10:54:02.432 DEBUG 'Projects/LanderPlus/tsconfig.app.json' generated metadata with charset 'UTF-8'
10:54:02.480 DEBUG 'package-lock.json' generated metadata with charset 'UTF-8'
10:54:02.482 DEBUG 'Libraries/Nebula/tsconfig.spec.json' generated metadata with charset 'UTF-8'
10:54:02.483 DEBUG 'Libraries/Nebula/package-lock.json' generated metadata with charset 'UTF-8'
10:54:02.484 DEBUG 'Libraries/Nebula/ng-package.json' generated metadata with charset 'UTF-8'
10:54:02.485 DEBUG 'Projects/LanderPlus/tsconfig.spec.json' generated metadata with charset 'UTF-8'
10:54:02.485 DEBUG 'tsconfig.json' generated metadata with charset 'UTF-8'
10:54:02.486 DEBUG 'package.json' generated metadata with charset 'UTF-8'
10:54:02.487 DEBUG 'Libraries/Nebula/tsconfig.lib.json' generated metadata with charset 'UTF-8'
10:54:02.487 DEBUG 'bitbucket-pipelines.yml' generated metadata with charset 'UTF-8'
10:54:02.488 DEBUG 'Libraries/Nebula/assets/i18n/es_ES.json' generated metadata with charset 'UTF-8'
10:54:02.490 DEBUG 'Projects/LanderLite/tsconfig.app.json' generated metadata with charset 'UTF-8'
10:54:02.490 DEBUG 'Projects/Lander/tsconfig.spec.json' generated metadata with charset 'UTF-8'
10:54:02.491 DEBUG 'angular.json' generated metadata with charset 'UTF-8'
10:54:02.493 DEBUG 'Libraries/Nebula/tsconfig.lib.prod.json' generated metadata with charset 'UTF-8'
10:54:02.494 DEBUG 'Libraries/Nebula/package.json' generated metadata with charset 'UTF-8'
10:54:02.494 DEBUG 'Projects/LanderLite/tsconfig.spec.json' generated metadata with charset 'UTF-8'
10:54:02.495 DEBUG 'Libraries/Nebula/assets/i18n/en_US.json' generated metadata with charset 'UTF-8'
10:54:02.496 DEBUG 'Projects/Lander/tsconfig.app.json' generated metadata with charset 'UTF-8'
10:54:02.526 INFO  0 source files to be analyzed
10:54:02.531 INFO  0/0 source files have been analyzed
10:54:02.543 DEBUG Ansible metrics: Ansible files count: 0, embedded CloudFormation usages total count: 0, embedded CloudFormation local files usages count: 0, embedded CloudFormation local Jinja files usages count: 0, embedded CloudFormation remote files usages count: 0
10:54:02.543 INFO  Sensor IaC Ansible Sensor [iacenterprise] (done) | time=117ms
10:54:02.543 INFO  Sensor IaC CloudFormation Sensor [iac]
10:54:02.559 INFO  0 source files to be analyzed
10:54:02.559 INFO  0/0 source files have been analyzed
10:54:02.559 INFO  Sensor IaC CloudFormation Sensor [iac] (done) | time=16ms
10:54:02.560 INFO  Sensor IaC Kubernetes Sensor [iac]
10:54:02.562 DEBUG Checking conditions for enabling Helm analysis; Activated Helm analysis:true, Helm supported for this platform:true
10:54:02.563 DEBUG Initializing Helm processor
10:54:02.563 DEBUG Preparing Helm analysis for platform: linux-amd64
10:54:02.652 INFO  0 source files to be parsed
10:54:02.652 INFO  0/0 source files have been parsed
10:54:02.652 INFO  0 source files to be analyzed
10:54:02.652 INFO  0/0 source files have been analyzed
10:54:02.653 INFO  0 source files to be checked
10:54:02.653 INFO  0/0 source files have been checked
10:54:02.653 INFO  Sensor IaC Kubernetes Sensor [iac] (done) | time=93ms
10:54:02.653 INFO  Sensor IaC AzureResourceManager Sensor [iac]
10:54:02.757 INFO  0 source files to be analyzed
10:54:02.757 INFO  0/0 source files have been analyzed
10:54:02.757 INFO  Sensor IaC AzureResourceManager Sensor [iac] (done) | time=103ms
10:54:02.757 INFO  Sensor Java Config Sensor [iac]
10:54:02.767 INFO  0 source files to be analyzed
10:54:02.768 INFO  0/0 source files have been analyzed
10:54:02.768 INFO  Sensor Java Config Sensor [iac] (done) | time=10ms
10:54:02.768 INFO  Sensor JavaScript/TypeScript analysis [javascript]
10:54:02.771 DEBUG Analysis of unchanged files will not be skipped (current analysis requires all files to be analyzed)
10:54:02.771 DEBUG Deploying the bridge server into /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle
10:54:02.951 DEBUG Setting deploy location to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle
10:54:02.951 INFO  Detected os: Linux arch: amd64 alpine: false. Platform: LINUX_X64
10:54:02.952 INFO  Deploy location /opt/sonar-scanner/.sonar/js/node-runtime, tagetRuntime: /opt/sonar-scanner/.sonar/js/node-runtime/node,  version: /opt/sonar-scanner/.sonar/js/node-runtime/version.txt
10:54:02.953 DEBUG Lock acquired for extraction
10:54:02.958 DEBUG Extracting embedded node to /opt/sonar-scanner/.sonar/js/node-runtime/node
10:54:03.169 DEBUG delta [ns] since modification FileSnapshot failed to detect
count, failures, racy limit [ns], delta min [ns], delta max [ns], delta avg [ns], delta stddev [ns]
7356, 200, 7515, 1458108.0, 5188089.0, 3281687.1749999993, 1071393.0275099042
10:54:03.170 DEBUG FileStoreAttributes[fsTimestampResolution=3 µs, minimalRacyInterval=5,188 µs]
10:54:03.174 DEBUG register org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007fef305533e8@a7652ac with shutdown hook
10:54:03.174 DEBUG unregister org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007fef305533e8@a7652ac from shutdown hook
10:54:03.175 DEBUG unregister org.eclipse.jgit.internal.storage.file.LockFile$$Lambda$953/0x00007fef305533e8@a7652ac from shutdown hook
10:54:06.222 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
10:54:06.349 DEBUG Deployed node version v22.11.0
10:54:06.350 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/56b4a307bec65b3532a905e4b5b5fa58/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules5229094015870562477
10:54:06.354 DEBUG Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/e84307d9f4320d1fccef426dd326ef62/sonar-architecturejavascriptfrontend-plugin.jar!/js-architecture-frontend-1.0.0.tgz to /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/custom-rules2022800650432227441
10:54:06.394 DEBUG Starting server
10:54:06.402 DEBUG Creating Node.js process to start the bridge server on port 35185 
10:54:06.403 INFO  Configured Node.js --max-old-space-size=8192.
10:54:06.403 INFO  Using embedded Node.js runtime.
10:54:06.403 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
10:54:06.404 DEBUG Checking Node.js version
10:54:06.404 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node -v
10:54:06.411 DEBUG Using Node.js v22.11.0.
10:54:06.411 DEBUG Launching command /opt/sonar-scanner/.sonar/js/node-runtime/node --max-old-space-size=8192 /opt/atlassian/pipelines/agent/build/.scannerwork/.sonartmp/bridge-bundle/package/bin/server.cjs 35185 127.0.0.1 false
10:59:16.011 ERROR Failed to start the bridge server (300s timeout)
org.sonar.plugins.javascript.nodejs.NodeCommandException: Failed to start the bridge server (300s timeout)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServer(BridgeServerImpl.java:228)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServerLazily(BridgeServerImpl.java:326)
	at org.sonar.plugins.javascript.analysis.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:69)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:63)
	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:190)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:186)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:157)
	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:414)
	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:128)
	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.ScannerMain.runScannerEngine(ScannerMain.java:137)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:52)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:38)
10:59:17.178 INFO  Hit the cache for 0 out of 0
10:59:19.622 INFO  Miss the cache for 0 out of 0
10:59:26.207 DEBUG Closing monitoring resources of Helm evaluator
10:59:28.519 ERROR Error during SonarScanner Engine execution
java.lang.IllegalStateException: Error while running Node.js. A supported version of Node.js is required for running the analysis of JS/TS files. Please make sure a supported version of Node.js is available in the PATH or an executable path is provided via 'sonar.nodejs.executable' property. Alternatively, you can exclude JS/TS files from your analysis using the 'sonar.exclusions' configuration property. See the docs for configuring the analysis environment: https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/languages/javascript-typescript-css/
	at org.sonar.plugins.javascript.analysis.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:83)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:63)
	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:190)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:186)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:157)
	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:414)
	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:128)
	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.ScannerMain.runScannerEngine(ScannerMain.java:137)
	at org.sonar.scanner.bootstrap.ScannerMain.run(ScannerMain.java:52)
	at org.sonar.scanner.bootstrap.ScannerMain.main(ScannerMain.java:38)
Caused by: org.sonar.plugins.javascript.nodejs.NodeCommandException: Failed to start the bridge server (300s timeout)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServer(BridgeServerImpl.java:228)
	at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServerLazily(BridgeServerImpl.java:326)
	at org.sonar.plugins.javascript.analysis.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:69)
	... 22 common frames omitted
10:59:32.594 DEBUG Cleanup org.eclipse.jgit.util.FS$FileStoreAttributes$$Lambda$281/0x00007fef302ee820@62891fc8 during JVM shutdown
10:59:33.655 DEBUG Java command exited with code 1
10:59:33.656 INFO  EXECUTION FAILURE
10:59:33.664 INFO  Total time: 5:53.568s
✖ SonarQube Cloud analysis failed. (exit code = 3)

Hi @FelipeRodriguez_vega,

Could you try the following:

  1. Update your node to use a newer version v22 or v20 (as I see you have v16).
  2. That might be enough to help, otherwise could you try to set sonar.scanner.skipNodeProvisioning to true. This way, we will try to use the node version you have available on your system. Perhaps currently if you have both v16, our provided node runtime might clash with.

Please let us know if that helps.

Cheers,
Michal