Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm
- what are you trying to achieve
- what have you tried so far to achieve this
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
Trying to run parallel analyses inside an angular monorepo project, where analysis fails to run when running in parallel, here is the error logs for more information
[09:16:24] Trying to find a local install of the SonarScanner: /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner
/bin/sh: 1: /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner: not found
[09:16:24] Proceed with download of the platform binaries for SonarScanner...
[09:16:24] Creating /home/pwuser/.sonar/native-sonar-scanner
[09:16:24] decompressing /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-cli-5.0.1.3006-linux.zip into /home/pwuser/.sonar/native-sonar-scanner
[09:16:26] ERROR: impossible to download and extract binary: ETXTBSY: text file is busy, open '/home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/jre/bin/java'
[09:16:26] SonarScanner binaries probably don't exist for your OS (linux).
[09:16:26] In such situation, the best solution is to install the standard SonarScanner (requires a JVM).
[09:16:26] Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
The SonarQube scan failed for project 'nx-sonar-p1'
Error: ETXTBSY: text file is busy, open '/home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/jre/bin/java'
at Object.openSync (node:fs:582:18)
at Utils.writeFileTo (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/adm-zip/util/utils.js:81:22)
at /home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/adm-zip/adm-zip.js:618:27
at Array.forEach (<anonymous>)
at Object.extractAllTo (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/adm-zip/adm-zip.js:606:26)
at getSonarScannerExecutable (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/sonarqube-scanner/src/sonar-scanner-executable.js:82:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async scan (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/sonarqube-scanner/src/index.js:36:28)
at async module.exports.async (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/sonarqube-scanner/src/index.js:63:3)
on the second task I see below error
[09:16:24] Starting analysis...
[09:16:24] Executable parameters built:
[09:16:24] {
httpOptions: {},
targetOS: 'linux',
installFolder: '/home/pwuser/.sonar/native-sonar-scanner',
platformExecutable: '/home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner',
fileName: 'sonar-scanner-cli-5.0.1.3006-linux.zip',
downloadUrl: 'https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.1.3006-linux.zip'
}
[09:16:24] Trying to find a local install of the SonarScanner: /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner
/bin/sh: 1: /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner: not found
[09:16:24] Proceed with download of the platform binaries for SonarScanner...
[09:16:24] Creating /home/pwuser/.sonar/native-sonar-scanner
[09:16:24] decompressing /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-cli-5.0.1.3006-linux.zip into /home/pwuser/.sonar/native-sonar-scanner
[09:16:26] decompressed /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0x00007fb748652540, pid=103, tid=112
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.7+7 (17.0.7+7) (build 17.0.7+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (17.0.7+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xa8b540] LinkResolver::resolve_method(LinkInfo const&, Bytecodes::Code, JavaThread*)+0x240
#
# Core dump will be written. Default location: /home/jenkins/workspace/NEWS_test-pipeline_PR-1/core.103
#
# An error report file with more information is saved as:
# /home/jenkins/workspace/NEWS_test-pipeline_PR-1/hs_err_pid103.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/adoptium/adoptium-support/issues
#
[error occurred during error reporting (), id 0xb, SIGSEGV (0xb) at pc=0x0000000000004206]
The SonarQube scan failed for project 'nx-sonar-p3'
Error: Command failed: /home/pwuser/.sonar/native-sonar-scanner/sonar-scanner-5.0.1.3006-linux/bin/sonar-scanner --from=ScannerNpm/3.1.0
at genericNodeError (node:internal/errors:984:15)
at wrappedFn (node:internal/errors:538:14)
at checkExecSyncError (node:child_process:890:11)
at execFileSync (node:child_process:926:15)
at scan (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/sonarqube-scanner/src/index.js:43:3)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async module.exports.async (/home/jenkins/workspace/NEWS_test-pipeline_PR-1/node_modules/sonarqube-scanner/src/index.js:63:3)
Can you please check and direct what needs to be done for a parallel analysis