Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5062

Enhance local cache to better support concurrent analyses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3
    • Component/s: None
    • Labels:
      None

      Description

      The following error can happen:

      11:59:07 Caused by: org.apache.maven.plugin.MojoExecutionException: Fail to install plugin: DefaultPluginMetadata[key=findbugs,version=2.1-M1]
      11:59:07 	at org.sonar.maven.ExceptionHandling.handle(ExceptionHandling.java:37)
      11:59:07 	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:175)
      11:59:07 	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:104)
      11:59:07 	... 23 more
      11:59:07 Caused by: org.sonar.api.utils.SonarException: Fail to install plugin: DefaultPluginMetadata[key=findbugs,version=2.1-M1]
      11:59:07 	at org.sonar.core.plugins.PluginInstaller.install(PluginInstaller.java:42)
      11:59:07 	at org.sonar.batch.bootstrap.BatchPluginInstaller.installToCache(BatchPluginInstaller.java:40)
      11:59:07 	at org.sonar.batch.bootstrap.BatchPluginRepository.doStart(BatchPluginRepository.java:75)
      11:59:07 	at org.sonar.batch.bootstrap.BatchPluginRepository.start(BatchPluginRepository.java:66)
      11:59:07 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      11:59:07 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      11:59:07 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      11:59:07 	at java.lang.reflect.Method.invoke(Method.java:597)
      11:59:07 	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
      11:59:07 	at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
      11:59:07 	at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
      11:59:07 	at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
      11:59:07 	at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
      11:59:07 	at org.picocontainer.behaviors.Stored.start(Stored.java:110)
      11:59:07 	at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1015)
      11:59:07 	at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1008)
      11:59:07 	at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:766)
      11:59:07 	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:91)
      11:59:07 	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77)
      11:59:07 	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92)
      11:59:07 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74)
      11:59:07 	at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45)
      11:59:07 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      11:59:07 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      11:59:07 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      11:59:07 	at java.lang.reflect.Method.invoke(Method.java:597)
      11:59:07 	at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)
      11:59:07 	at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)
      11:59:07 	at java.security.AccessController.doPrivileged(Native Method)
      11:59:07 	at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)
      11:59:07 	at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
      11:59:07 	at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)
      11:59:07 	at org.sonar.runner.api.Runner.execute(Runner.java:90)
      11:59:07 	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:173)
      11:59:07 	... 24 more
      11:59:07 Caused by: org.apache.commons.io.FileExistsException: Destination '/home/jenkins/.sonar/cache/29f8278dc9b10f68fe6ffa4ae3ed0cc9/sonar-findbugs-plugin-2.1-M1.jar_unzip' already exists
      11:59:07 	at org.apache.commons.io.FileUtils.moveDirectory(FileUtils.java:2027)
      11:59:07 	at org.sonar.home.cache.FileCache.unzip(FileCache.java:190)
      11:59:07 	at org.sonar.batch.bootstrap.BatchPluginInstaller.extractPluginDependencies(BatchPluginInstaller.java:46)
      11:59:07 	at org.sonar.core.plugins.PluginInstaller.copyDependencies(PluginInstaller.java:49)
      11:59:07 	at org.sonar.core.plugins.PluginInstaller.install(PluginInstaller.java:40)
      11:59:07 	... 57 more
      

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            fabemn OLD - Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: