17:29:17.284 DEBUG: Download ***/batch/file?name=sonar-scanner-engine-shaded-7.0.jar to /root/.sonar/cache/_tmp/fileCache2520523838774341231.tmp
93 17:29:17.310 INFO: ------------------------------------------------------------------------
94 17:29:17.310 INFO: EXECUTION FAILURE
95 17:29:17.310 INFO: ------------------------------------------------------------------------
96 17:29:17.310 INFO: Total time: 0.499s
97 17:29:17.340 INFO: Final Memory: 4M/72M
98 17:29:17.340 INFO: ------------------------------------------------------------------------
99 17:29:17.340 ERROR: Error during SonarQube Scanner execution
100 org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarQube
101 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:85)
102 at java.security.AccessController.doPrivileged(Native Method)
103 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:74)
104 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLauncher(IsolatedLauncherFactory.java:70)
105 at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:181)
106 at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:122)
107 at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
108 at org.sonarsource.scanner.cli.Main.main(Main.java:61)
109 Caused by: java.lang.IllegalStateException: Fail to download sonar-scanner-engine-shaded-7.0.jar to /root/.sonar/cache/_tmp/fileCache2520523838774341231.tmp
110 at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:100)
111 at org.sonarsource.scanner.api.internal.cache.FileCache.get(FileCache.java:84)
112 at org.sonarsource.scanner.api.internal.JarDownloader.lambda$getScannerEngineFiles$0(JarDownloader.java:60)
113 at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
114 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
115 at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
116 at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
117 at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
118 at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
119 at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
120 at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles(JarDownloader.java:61)
121 at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloader.java:53)
122 at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$createLauncher$0(IsolatedLauncherFactory.java:76)
123 … 7 more
124 Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly
125 at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:596)
126 at sun.security.ssl.InputRecord.read(InputRecord.java:532)
127 at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
128 at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
129 at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
130 at org.sonarsource.scanner.api.internal.shaded.okio.Okio$2.read(Okio.java:140)
131 at org.sonarsource.scanner.api.internal.shaded.okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
132 at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource.read(RealBufferedSource.java:47)
133 at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1Codec$AbstractSource.read(Http1Codec.java:363)
134 at org.sonarsource.scanner.api.internal.shaded.okhttp.internal.http1.Http1Codec$ChunkedSource.read(Http1Codec.java:453)
135 at org.sonarsource.scanner.api.internal.shaded.okio.RealBufferedSource$1.read(RealBufferedSource.java:440)
136 at java.io.InputStream.read(InputStream.java:101)
137 at java.nio.file.Files.copy(Files.java:2908)
138 at java.nio.file.Files.copy(Files.java:3027)
139 at org.sonarsource.scanner.api.internal.ServerConnection.downloadFile(ServerConnection.java:81)
140 at org.sonarsource.scanner.api.internal.JarDownloader$ScannerFileDownloader.download(JarDownloader.java:73)
141 at org.sonarsource.scanner.api.internal.cache.FileCache.download(FileCache.java:98)
142 … 19 more
143
144 [Container] 2023/05/02 17:29:17 Command did not exit successfully sonar-scanner -X exit status 1
145 [Container] 2023/05/02 17:29:17 Phase complete: BUILD State: FAILED
146 [Container] 2023/05/02 17:29:17 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: sonar-scanner -X. Reason: exit status 1
147 [Container] 2023/05/02 17:29:17 Entering phase POST_BUILD
148 [Container] 2023/05/02 17:29:17 Phase complete: POST_BUILD State: SUCCEEDED
149 [Container] 2023/05/02 17:29:17 Phase context status code: Message:
It looks like you’re using SonarQube 7.0, which means your version is (way) past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:
7.0 → 7.9 → 8.9.10 → 9.9 → 10.0 (last step optional)
You may find these resources helpful:
- Upgrade Guide
- LTS-to-LTS Upgrade Notes for 7.9 to 8.9
- LTS to LTS release upgrade notes for 8.9 to 9.9
If you have questions about upgrading, feel free to open a new thread for that here.
If your error persists after upgrade, please come back to us.