java.io.IOException

Failed to install https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.4/apache-maven-3.0.4-bin.zip to /home/jenkins/tools/maven/apache-maven-3.0.4

Solutions on the web17771

  • via ode-dev by Apache Jenkins Server, 9 months ago
    Failed to install https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.4/apache-maven-3.0.4-bin.zip to /home/jenkins/tools/maven/apache-maven-3.0.4
  • via ode-dev by Apache Jenkins Server, 9 months ago
    Failed to install https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.4/apache-maven-3.0.4-bin.zip to /home/jenkins/tools/maven/apache-maven-3.0.4
  • via ode-dev by Apache Jenkins Server, 9 months ago
    Failed to install https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.4/apache-maven-3.0.4-bin.zip to /home/jenkins/tools/maven/apache-maven-3.0.4
  • Stack trace

    • java.io.IOException: Failed to install https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.4/apache-maven-3.0.4-bin.zip to /home/jenkins/tools/maven/apache-maven-3.0.4 at hudson.FilePath.installIfNecessaryFrom(FilePath.java:832) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:75) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:206) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:624) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:183) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1046) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.io.IOException: remote file operation failed: /home/jenkins/tools/maven/apache-maven-3.0.4 at hudson.remoting.Channel@484c18b7:ubuntu-4: java.nio.file.AccessDeniedException: /home/jenkins/tools/maven/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar at hudson.FilePath.act(FilePath.java:986) at hudson.FilePath.act(FilePath.java:968) at hudson.FilePath.deleteContents(FilePath.java:1183) at hudson.FilePath.installIfNecessaryFrom(FilePath.java:796) ... 16 more Caused by: java.nio.file.AccessDeniedException: /home/jenkins/tools/maven/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1077) at sun.reflect.GeneratedMethodAccessor2008.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.Util.deleteFile(Util.java:255) at hudson.FilePath.deleteRecursive(FilePath.java:1203) at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212) at hudson.FilePath.deleteRecursive(FilePath.java:1194) at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212) at hudson.FilePath.access$1100(FilePath.java:190) at hudson.FilePath$15.invoke(FilePath.java:1186) at hudson.FilePath$15.invoke(FilePath.java:1183) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719) at hudson.remoting.UserRequest.perform(UserRequest.java:120) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 2 months ago
    5 times, 8 months ago
    Unknown user
    Once, 10 months ago
    13 more bugmates