java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.3

JFrog JIRA | Ivar Kanters | 5 years ago
  1. 0

    Building on a dumb slave fails if a enable "Deploy artifacts to Artifactory". The error I get is: {noformat}... [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/data/builder/node/workspace/my-job/2.0.3 -cp /var/buildnode/maven3-agent.jar:/var/buildnode/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /var/buildnode/tools/maven-3-latest /var/buildnode/slave.jar /var/buildnode/maven3-interceptor.jar 53699 Exception in thread "main" java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.3 at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336) at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247) at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135) at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63) ERROR: Failed to launch Maven. Exit code = 1 ... {noformat} When I run this build on the master node, there is no problem. The corresponding (correct) log-part is: {noformat} ... [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/opt/jenkins/plugins/artifactory/WEB-INF/lib -cp /var/buildnode/maven3-agent.jar:/var/buildnode/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /var/buildnode/tools/maven-3-latest /var/buildnode/slave.jar /var/buildnode/maven3-interceptor.jar 53699 <===[JENKINS REMOTING CAPACITY]===> channel started Executing Maven: -B -f /opt/jenkins/jobs/my-job/workspace/pom.xml clean install [INFO] Scanning for projects ... {noformat} Notice the different -Dm3plugin.lib setting. On the remote slave the /data/builder/node/workspace/my-job/2.0.3 does not exist. I also created this issue on Jenkins-ci (see https://issues.jenkins-ci.org/browse/JENKINS-10259) I think this is really a plugin problem.

    JFrog JIRA | 5 years ago | Ivar Kanters
    java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.3
  2. 0

    Building on a dumb slave fails if a enable "Deploy artifacts to Artifactory". The error I get is: {noformat}... [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/data/builder/node/workspace/my-job/2.0.3 -cp /var/buildnode/maven3-agent.jar:/var/buildnode/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /var/buildnode/tools/maven-3-latest /var/buildnode/slave.jar /var/buildnode/maven3-interceptor.jar 53699 Exception in thread "main" java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.3 at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336) at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247) at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135) at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63) ERROR: Failed to launch Maven. Exit code = 1 ... {noformat} When I run this build on the master node, there is no problem. The corresponding (correct) log-part is: {noformat} ... [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/opt/jenkins/plugins/artifactory/WEB-INF/lib -cp /var/buildnode/maven3-agent.jar:/var/buildnode/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /var/buildnode/tools/maven-3-latest /var/buildnode/slave.jar /var/buildnode/maven3-interceptor.jar 53699 <===[JENKINS REMOTING CAPACITY]===> channel started Executing Maven: -B -f /opt/jenkins/jobs/my-job/workspace/pom.xml clean install [INFO] Scanning for projects ... {noformat} Notice the different -Dm3plugin.lib setting. On the remote slave the /data/builder/node/workspace/my-job/2.0.3 does not exist. I also created this issue on Jenkins-ci (see https://issues.jenkins-ci.org/browse/JENKINS-10259) I think this is really a plugin problem.

    JFrog JIRA | 5 years ago | Ivar Kanters
    java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.3
  3. 0

    Building on a dumb slave fails if a enable "Deploy artifacts to Artifactory". The error I get is: {code} ... Parsing POMs [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/data/builder/node/workspace/my-job/2.0.2 -cp /data/builder/node/maven3-agent.jar:/data/builder/node/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /data/builder/node/tools/maven-3-latest /data/builder/node/slave.jar /data/builder/node/maven3-interceptor.jar 44156 Exception in thread "main" java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.2 at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336) at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247) at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135) at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63) ERROR: Failed to launch Maven. Exit code = 1 Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE {code} When I run this build on the master node, there is no problem. The corresponding (correct) log-part is: {code} ... Parsing POMs [workspace] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/opt/jenkins/plugins/artifactory/WEB-INF/lib -cp /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/opt/jenkins/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/jenkins/tools/maven-3-latest /opt/jenkins/war/WEB-INF/lib/remoting-1.419.jar /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 34663 <===[JENKINS REMOTING CAPACITY]===> channel started Executing Maven: -B -f /opt/jenkins/jobs/my-job/workspace/pom.xml clean install [INFO] Scanning for projects... ... {code} Notice the different {{-Dm3plugin.lib}} setting. On the remote slave the {{/data/builder/node/workspace/my-job/2.0.2}} does not exist.

    Jenkins JIRA | 5 years ago | Ivar Kanters
    java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Building on a dumb slave fails if a enable "Deploy artifacts to Artifactory". The error I get is: {code} ... Parsing POMs [my-job] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/data/builder/node/workspace/my-job/2.0.2 -cp /data/builder/node/maven3-agent.jar:/data/builder/node/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /data/builder/node/tools/maven-3-latest /data/builder/node/slave.jar /data/builder/node/maven3-interceptor.jar 44156 Exception in thread "main" java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.2 at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336) at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247) at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135) at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63) ERROR: Failed to launch Maven. Exit code = 1 Skipping sonar analysis due to bad build status FAILURE Finished: FAILURE {code} When I run this build on the master node, there is no problem. The corresponding (correct) log-part is: {code} ... Parsing POMs [workspace] $ java -client -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Dm3plugin.lib=/opt/jenkins/plugins/artifactory/WEB-INF/lib -cp /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/opt/jenkins/tools/maven-3-latest/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/jenkins/tools/maven-3-latest /opt/jenkins/war/WEB-INF/lib/remoting-1.419.jar /opt/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 34663 <===[JENKINS REMOTING CAPACITY]===> channel started Executing Maven: -B -f /opt/jenkins/jobs/my-job/workspace/pom.xml clean install [INFO] Scanning for projects... ... {code} Notice the different {{-Dm3plugin.lib}} setting. On the remote slave the {{/data/builder/node/workspace/my-job/2.0.2}} does not exist.

    Jenkins JIRA | 5 years ago | Ivar Kanters
    java.io.FileNotFoundException: /data/builder/node/workspace/my-job/2.0.2
  6. 0

    I just created a new job that only contains a Parallel Test Execution. Tried the job with both a matrix job, and a regular maven job. Both fail with this exception: Copying file to FATAL: Failed to copy /var/lib/jenkins/jobs/backstage.ParallelTestExecution/builds/2013-06-06_20-20-25/parameter-files/test-splits/split.1.txt to /home/builder/workspace/backstage.Test.chrome hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/backstage.ParallelTestExecution/builds/2013-06-06_20-20-25/parameter-files/test-splits/split.1.txt to /home/builder/workspace/backstage.Test.chrome at hudson.FilePath.copyTo(FilePath.java:1726) at hudson.model.FileParameterValue$FileItemImpl.write(FileParameterValue.java:267) at hudson.FilePath.copyFrom(FilePath.java:830) at hudson.model.FileParameterValue$2.setUp(FileParameterValue.java:136) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1576) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:241) Caused by: java.io.FileNotFoundException: /home/builder/workspace/backstage.Test.chrome (Is a directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at hudson.FilePath.write(FilePath.java:1622) at hudson.FilePath.copyTo(FilePath.java:1719) ... 9 more

    Jenkins JIRA | 4 years ago | Roy Arnon
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/jobs/backstage.ParallelTestExecution/builds/2013-06-06_20-20-25/parameter-files/test-splits/split.1.txt to /home/builder/workspace/backstage.Test.chrome

    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.FileNotFoundException

      /data/builder/node/workspace/my-job/2.0.3

      at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob()
    2. Plexus
      Launcher.configure
      1. org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336)
      2. org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247)
      3. org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132)
      4 frames
    3. M3 Agent
      Maven3Main.main
      1. org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:106)
      2. org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:63)
      2 frames