Execution fails with java.lang.IllegalStateException: Fail to download plugin [scmsvn]

scanner

(Idan Adar) #1

Can anyone tell me why this error happens? Started after upgrading from 6.7 to 7.3.

00:38:12.382 INFO: SonarQube Scanner 3.0.3.778
00:38:12.388 INFO: Java 1.8.0_171 Oracle Corporation (64-bit)
00:38:12.388 INFO: Linux 3.10.0-693.17.1.el7.x86_64 amd64
00:38:12.577 DEBUG: keyStore is : 
00:38:12.577 DEBUG: keyStore type is : jks
00:38:12.577 DEBUG: keyStore provider is : 
00:38:12.577 DEBUG: init keystore
00:38:12.578 DEBUG: init keymanager of type SunX509
00:38:12.801 INFO: User cache: /root/.sonar/cache
00:38:12.802 DEBUG: Extract sonar-scanner-api-batch in temp...
00:38:12.824 DEBUG: Get bootstrap index...
00:38:12.825 DEBUG: Download: http://****.com:9000/sonarqube/batch/index
00:38:13.223 DEBUG: Get bootstrap completed
00:38:13.224 DEBUG: Create isolated classloader...
00:38:13.241 DEBUG: Start temp cleaning...
00:38:13.261 DEBUG: Temp cleaning done
00:38:13.261 DEBUG: Execution getVersion
00:38:13.268 DEBUG: Execution start
00:38:13.486 INFO: Publish mode
00:38:13.651 INFO: Load global settings
00:38:14.031 DEBUG: GET 200 http://****:9000/sonarqube/api/settings/values.protobuf | time=369ms
00:38:14.135 INFO: Load global settings (done) | time=485ms
00:38:14.155 INFO: Server id: 7DB33681-AVrl7C9QqWhy8dWNHdVz
00:38:14.187 INFO: User cache: /root/.sonar/cache
00:38:14.715 INFO: Load/download plugins
00:38:14.715 INFO: Load plugins index
00:38:14.880 DEBUG: GET 200 http://****:9000/sonarqube/api/plugins/installed | time=164ms
00:38:14.975 INFO: Load plugins index (done) | time=260ms
00:38:15.042 DEBUG: Download plugin 'scmsvn' to '/root/.sonar/_tmp/fileCache352905495364802537.tmp'
00:38:15.201 DEBUG: GET 200 http://****:9000/sonarqube/api/plugins/download?plugin=scmsvn&acceptCompressions=pack200 | time=158ms
00:39:17.012 INFO: Load/download plugins (done) | time=62296ms
00:39:17.016 INFO: ------------------------------------------------------------------------
00:39:17.016 INFO: EXECUTION FAILURE
00:39:17.017 INFO: ------------------------------------------------------------------------
00:39:17.018 INFO: Total time: 1:04.698s
00:39:17.102 INFO: Final Memory: 40M/303M
00:39:17.102 INFO: ------------------------------------------------------------------------
00:39:17.102 ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Fail to download plugin [scmsvn] into /root/.sonar/_tmp/fileCache352905495364802537.tmp
    at org.sonar.scanner.bootstrap.PluginFiles.downloadBinaryTo(PluginFiles.java:151)
    at org.sonar.scanner.bootstrap.PluginFiles.download(PluginFiles.java:107)
    at org.sonar.scanner.bootstrap.PluginFiles.get(PluginFiles.java:89)
    at org.sonar.scanner.bootstrap.ScannerPluginInstaller.loadPlugins(ScannerPluginInstaller.java:80)
    at org.sonar.scanner.bootstrap.ScannerPluginInstaller.installRemotes(ScannerPluginInstaller.java:62)
    at org.sonar.scanner.bootstrap.ScannerPluginRepository.start(ScannerPluginRepository.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
    at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
    at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
    at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
    at org.picocontainer.behaviors.Stored.start(Stored.java:110)
    at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
    at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
    at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
    at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
    at org.sonar.batch.bootstrapper.Batch.doStart(Batch.java:94)
    at org.sonar.batch.bootstrapper.Batch.start(Batch.java:88)
    at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.start(BatchIsolatedLauncher.java:53)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
    at com.sun.proxy.$Proxy0.start(Unknown Source)
    at org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:220)
    at org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:156)
    at org.sonarsource.scanner.cli.Main.execute(Main.java:74)
    at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.net.SocketTimeoutException: timeout
    at okio.Okio$4.newTimeoutException(Okio.java:227)
    at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
    at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)
    at okio.RealBufferedSource.read(RealBufferedSource.java:45)
    at okhttp3.internal.http1.Http1Codec$ChunkedSource.read(Http1Codec.java:429)
    at okio.RealBufferedSource$1.read(RealBufferedSource.java:429)
    at java.io.InputStream.read(InputStream.java:101)
    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2314)
    at org.apache.commons.io.IOUtils.copy(IOUtils.java:2270)
    at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2291)
    at org.apache.commons.io.IOUtils.copy(IOUtils.java:2246)
    at org.apache.commons.io.FileUtils.copyToFile(FileUtils.java:1530)
    at org.apache.commons.io.FileUtils.copyInputStreamToFile(FileUtils.java:1506)
    at org.sonar.scanner.bootstrap.PluginFiles.downloadBinaryTo(PluginFiles.java:149)
    ... 32 more
Caused by: java.net.SocketException: Socket closed
    at java.net.SocketInputStream.read(SocketInputStream.java:204)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at okio.Okio$2.read(Okio.java:138)
    at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
    ... 43 more
00:39:17.109 ERROR: 

(G Ann Campbell) #2

Hi,

That plugin should have been installed by default in your new 7.3 instance. Can you confirm it is present in $SONARQUBE_HOME/extenions/plugins?

Ann


(Idan Adar) #3

ls
README.txt sonar-java-plugin-5.7.0.15470.jar sonar-python-plugin-1.10.0.2131.jar
sonar-csharp-plugin-7.3.2.6129.jar sonar-javascript-plugin-4.2.1.6529.jar sonar-scm-git-plugin-1.4.1.1128.jar
sonar-css-plugin-1.0.1.508.jar sonar-kotlin-plugin-1.0.1.965.jar sonar-scm-svn-plugin-1.8.0.1168.jar
sonar-flex-plugin-2.4.0.1222.jar sonar-ldap-plugin-2.2.0.608.jar sonar-typescript-plugin-1.7.0.2893.jar
sonar-go-plugin-1.1.0.1612.jar sonar-php-plugin-2.14.0.3569.jar sonar-xml-plugin-1.5.1.1452.jar


(G Ann Campbell) #4

Hi,

So it looks like it’s failing on the download of the very first plugin. Do you have some sort of proxy between the analysis machine and your SonarQube instance that might interfere with the download of jars?

Ann