java.io.IOException: Failed to mkdirs: Z:\PC12010025

Jenkins JIRA | Macpaul Lin | 4 years ago
  1. 0

    Hi, I have a problem - which is almost the same problem of this issue about mkdir/open files on remote disk. Currently I'm using Jenkins ver. 1.467 and 1.470 with Windows XP 32bit. When I want to checkout source code to remote disk whether it is on MAC OS or Linux, I'll get mkdir fail. I'm very sure java.exe, jenkins.exe, git.exe, p4.exe are executing as my account in Windows XP. And this account has right to read/write/mkdir/delete the files and directories in the remote disk. It seems this problem exists a very long time. Started by user anonymous Building in workspace Z:\PC12010025 java.io.IOException: Failed to mkdirs: Z:\PC12010025 at hudson.FilePath.mkdirs(FilePath.java:901) at hudson.model.AbstractProject.checkout(AbstractProject.java:1216) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:587) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:476) at hudson.model.Run.run(Run.java:1438) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Finished: FAILURE There are other users encountered this problem like http://serverfault.com/questions/308774/how-to-make-hudson-write-to-r... And the relative source code in Jenkins is: /** * Creates this directory. */ public void mkdirs() throws IOException, InterruptedException { if(!act(new FileCallable<Boolean>() { public Boolean invoke(File f, VirtualChannel channel) throws IOException, InterruptedException { if(f.mkdirs() || f.exists()) return true; // OK // following Ant <mkdir> task to avoid possible race condition. Thread.sleep(10); return f.mkdirs() || f.exists(); } })) throw new IOException("Failed to mkdirs: "+remote); }

    Jenkins JIRA | 4 years ago | Macpaul Lin
    java.io.IOException: Failed to mkdirs: Z:\PC12010025
  2. 0

    [JENKINS-14112] The execution (build) of Project will fail on "mkdir" on remote disk. - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    java.io.IOException: Failed to mkdirs: Z:\PC12010025
  3. 0

    Hi, I have a problem - which is almost the same problem of this issue about mkdir/open files on remote disk. Currently I'm using Jenkins ver. 1.467 and 1.470 with Windows XP 32bit. When I want to checkout source code to remote disk whether it is on MAC OS or Linux, I'll get mkdir fail. I'm very sure java.exe, jenkins.exe, git.exe, p4.exe are executing as my account in Windows XP. And this account has right to read/write/mkdir/delete the files and directories in the remote disk. It seems this problem exists a very long time. Started by user anonymous Building in workspace Z:\PC12010025 java.io.IOException: Failed to mkdirs: Z:\PC12010025 at hudson.FilePath.mkdirs(FilePath.java:901) at hudson.model.AbstractProject.checkout(AbstractProject.java:1216) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:587) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:476) at hudson.model.Run.run(Run.java:1438) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) Finished: FAILURE There are other users encountered this problem like http://serverfault.com/questions/308774/how-to-make-hudson-write-to-r... And the relative source code in Jenkins is: /** * Creates this directory. */ public void mkdirs() throws IOException, InterruptedException { if(!act(new FileCallable<Boolean>() { public Boolean invoke(File f, VirtualChannel channel) throws IOException, InterruptedException { if(f.mkdirs() || f.exists()) return true; // OK // following Ant <mkdir> task to avoid possible race condition. Thread.sleep(10); return f.mkdirs() || f.exists(); } })) throw new IOException("Failed to mkdirs: "+remote); }

    Jenkins JIRA | 4 years ago | Macpaul Lin
    java.io.IOException: Failed to mkdirs: Z:\PC12010025
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Version 0.8 - incompatibility with Docker 1.4.0 - 'Failed to mkdirs'

    GitHub | 2 years ago | hcguersoy
    java.io.IOException: Failed to install http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.2.1
  6. 0

    ClearCase Plugin - hudson - Hudson Wiki

    hudson-ci.org | 7 months ago
    java.io.IOException: Failed to mkdirs: V:\XXXXXXX

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to mkdirs: Z:\PC12010025

      at hudson.FilePath.mkdirs()
    2. Hudson
      Executor.run
      1. hudson.FilePath.mkdirs(FilePath.java:901)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1216)
      3. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:587)
      4. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:476)
      5. hudson.model.Run.run(Run.java:1438)
      6. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      7. hudson.model.ResourceController.execute(ResourceController.java:88)
      8. hudson.model.Executor.run(Executor.java:239)
      8 frames