Description: All Windows .NET project Sonar Scans have been failing since 10/27/2023.
Projects are failing with the following error. The same projects’ PR had succeeded a few days ago and no changes were made, but re-running PR builds and Sonar Scans fail. We noticed the JS plugin had a recent release but not sure if that is the reason for the error. These are not even JavaScript projects. The background task only has warnings and the Sonar dashboard for the PRs have no errors.
Environment Setup:
SONAR_VERSION=4.6.2.2472
SONAR_MSBUILD_VERSION=5.3.2.38712
JAVA=JDK11 (we are in the process of upgrading to 17 but all projects currently use 11)
Error in Jenkins:
INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=REDACTED&pullRequest=19799
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AYuB23NBTVzy5YB6vHJa
INFO: Analysis total time: 6:29.690 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 6:34.246s
INFO: Final Memory: 23M/90M
INFO: ------------------------------------------------------------------------
The SonarScanner CLI has finished
18:32:12.745 Post-processing succeeded.
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:396)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:130)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:156)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:159)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:163)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
at org.sonar.plugins.javascript.bridge.AbstractBridgeSensor.execute(AbstractBridgeSensor.java:72)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServerLazily(BridgeServerImpl.java:303)
at org.sonar.plugins.javascript.bridge.BridgeServerImpl.startServer(BridgeServerImpl.java:197)
org.sonar.plugins.javascript.nodejs.NodeCommandException: Failed to start the bridge server (300s timeout)
ERROR: Failed to start the bridge server (300s timeout)
ERROR: }
ERROR: ]
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\bin\\server'
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\lib\\server.js',
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\lib\\bridge\\src\\server.js',
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\lib\\bridge\\src\\router.js',
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\lib\\bridge\\src\\worker.js',
ERROR: 'C:\\home\\jenkins\\agent\\workspace\\Api_Api_PR-19799\\src\\services\\api\\.sonarqube\\out\\.sonar\\.sonartmp\\bridge-bundle\\package\\lib\\bridge\\src\\memory.js',
ERROR: requireStack: [
ERROR: code: 'MODULE_NOT_FOUND',
ERROR: at Function.Module._load (internal/modules/cjs/loader.js:790:14) {
ERROR: at Module.load (internal/modules/cjs/loader.js:950:32)
ERROR: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
ERROR: at Module._compile (internal/modules/cjs/loader.js:1085:14)
ERROR: at Object.<anonymous>
(C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\bridge\src\memory.js:53:27)
ERROR: at require (internal/modules/cjs/helpers.js:92:18)
ERROR: at Module.require (internal/modules/cjs/loader.js:974:19)
ERROR: at Function.Module._load (internal/modules/cjs/loader.js:746:27)
ERROR: at Function.Module._resolveFilename
(C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\node_modules\module-alias\index.js:49:29)
ERROR: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\bin\server
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\server.js
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\bridge\src\server.js
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\bridge\src\router.js
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\bridge\src\worker.js
ERROR: - C:\home\jenkins\agent\workspace\Api_Api_PR-19799\src\services\api\.sonarqube\out\.sonar\.sonartmp\bridge-bundle\package\lib\bridge\src\memory.js
ERROR: Require stack:
ERROR: Error: Cannot find module 'node:perf_hooks'
ERROR:
ERROR: ^
ERROR: throw err;
SonarScanner.MSBuild.exe : ERROR: internal/modules/cjs/loader.js:905