hi all,
i am using aonarqube lts-comunity
sonar was deployed on a vm runing docker
i was trying to scan my repo with a github action on arc self hosted runners
i got the same error with arc self hosted runner and with ubuntu-latest
the error was failed: source exhausted prematurely
here the logs for sonarsource/sonarqube-scan-action@master:
Run sonarsource/sonarqube-scan-action@master
Run ${GITHUB_ACTION_PATH}/scripts/sanity-checks.sh
Run actions/cache@v4
Warning: Cache not found for keys: sonar-scanner-cli-7.0.2.4839-Linux-X64
Cache not found for input keys: sonar-scanner-cli-7.0.2.4839-Linux-X64
Run ${GITHUB_ACTION_PATH}/scripts/install-sonar-scanner-cli.sh
+ mkdir -p /home/runner/_work/_temp/sonarscanner
+ cd /home/runner/_work/_temp/sonarscanner
+ SCANNER_FILE_NAME=sonar-scanner-cli-7.0.2.4839-linux-x64.zip
+ SCANNER_URI=https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.0.2.4839-linux-x64.zip
+ command -v wget
+ command -v curl
+ curl --fail --silent --show-error --user-agent sonarqube-scan-action --location --output sonar-scanner-cli-7.0.2.4839-linux-x64.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-7.0.2.4839-linux-x64.zip
+ unzip -q -o sonar-scanner-cli-7.0.2.4839-linux-x64.zip
+ SCANNER_UNZIP_FOLDER=sonar-scanner-7.0.2.4839-linux-x64
+ SCANNER_LOCAL_FOLDER=/home/runner/_work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64
+ '[' -d /home/runner/_work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64 ']'
+ mv -f sonar-scanner-7.0.2.4839-linux-x64 /home/runner/_work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64
Run echo "${RUNNER_TEMP}/sonar-scanner-cli-7.0.2.4839-Linux-X64/bin" >> $GITHUB_PATH
Run ${GITHUB_ACTION_PATH}/scripts/run-sonar-scanner-cli.sh
+ sonar-scanner
11:09:36.107 INFO Scanner configuration file: /home/runner/_work/_temp/sonar-scanner-cli-7.0.2.4839-Linux-X64/conf/sonar-scanner.properties
11:09:36.114 INFO Project root configuration file: /home/runner/_work/myapp/myapp/sonar-project.properties
11:09:36.140 INFO SonarScanner CLI 7.0.2.4839
11:09:36.143 INFO Java 17.0.13 Eclipse Adoptium (64-bit)
11:09:36.144 INFO Linux 6.12.13-talos amd64
11:09:36.205 INFO User cache: /home/runner/.sonar/cache
11:09:41.457 INFO EXECUTION FAILURE
11:09:41.460 INFO Total time: 5.358s
11:09:41.461 ERROR Error during SonarScanner CLI execution
org.sonarsource.scanner.lib.internal.facade.inprocess.ScannerException: Unable to execute SonarScanner analysis
at org.sonarsource.scanner.lib.internal.facade.inprocess.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:83)
at org.sonarsource.scanner.lib.internal.facade.inprocess.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:69)
at org.sonarsource.scanner.lib.ScannerEngineBootstrapper.bootstrap(ScannerEngineBootstrapper.java:160)
at org.sonarsource.scanner.cli.Main.analyze(Main.java:76)
at org.sonarsource.scanner.cli.Main.main(Main.java:64)
Caused by: java.lang.IllegalStateException: Call to URL [***/batch/file?name=sonar-scanner-engine-shaded-9.9.8.100196-all.jar] failed: source exhausted prematurely
at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.callUrl(ScannerHttpClient.java:145)
at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.downloadFile(ScannerHttpClient.java:88)
at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.downloadFromWebApi(ScannerHttpClient.java:69)
at org.sonarsource.scanner.lib.internal.facade.inprocess.LegacyScannerEngineDownloader$ScannerFileDownloader.download(LegacyScannerEngineDownloader.java:81)
at org.sonarsource.scanner.lib.internal.cache.FileCache.download(FileCache.java:101)
at org.sonarsource.scanner.lib.internal.cache.FileCache.getOrDownload(FileCache.java:88)
at org.sonarsource.scanner.lib.internal.facade.inprocess.LegacyScannerEngineDownloader.lambda$getOrDownloadScannerEngineFiles$0(LegacyScannerEngineDownloader.java:68)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
at org.sonarsource.scanner.lib.internal.facade.inprocess.LegacyScannerEngineDownloader.getOrDownloadScannerEngineFiles(LegacyScannerEngineDownloader.java:69)
at org.sonarsource.scanner.lib.internal.facade.inprocess.LegacyScannerEngineDownloader.getOrDownload(LegacyScannerEngineDownloader.java:61)
at org.sonarsource.scanner.lib.internal.facade.inprocess.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
... 4 common frames omitted
Caused by: java.io.EOFException: source exhausted prematurely
at okio.InflaterSource.read(InflaterSource.kt:52)
at okio.GzipSource.read(GzipSource.kt:69)
at okio.RealBufferedSource$inputStream$1.read(RealBufferedSource.kt:161)
at java.base/java.io.InputStream.transferTo(Unknown Source)
at java.base/java.nio.file.Files.copy(Unknown Source)
at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.lambda$downloadFile$0(ScannerHttpClient.java:90)
at org.sonarsource.scanner.lib.internal.http.ScannerHttpClient.callUrl(ScannerHttpClient.java:141)
... 20 common frames omitted
11:09:41.467 ERROR
11:09:41.467 ERROR Re-run SonarScanner CLI using the -X switch to enable full debug logging.
Error: Process completed with exit code 1.
i got
Caused by: java.lang.IllegalStateException: Fail to download sonar-scanner-engine-shaded-9.9.8.100196-all.jar to /home/runner/.sonar/cache/_tmp/fileCache14618157669498946811.tmp
with sonarsource/sonarqube-scan-action@v4
this repo was working on october, but not now, if someone can help,
regards