hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar

Jenkins JIRA | Craig Ringer | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    On Jenkins 1.492, EC2 1.17, when I launch an instance that has a custom Remote FS root set in the EC2 plugin configuration for the AMI, the root isn't created. If I set the remote cache root to /var/cache/jenkins/ on an EC2-launched Debian instance, for example, I get the error: {code} Verifying that java exists java full version "1.6.0_18-b18" Copying slave.jar Launching slave agent: java -jar /tmp/slave.jar <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.18 This is a Unix slave ERROR: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1650) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:368) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:316) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:134) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.FileNotFoundException: /var/cache/jenkins/maven-agent.jar (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath$28.call(FilePath.java:1558) at hudson.FilePath$28.call(FilePath.java:1554) at hudson.remoting.UserRequest.perform(UserRequest.java:118) 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:72) ... 5 more ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code}

    Jenkins JIRA | 4 years ago | Craig Ringer
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar
  2. 0

    On Jenkins 1.492, EC2 1.17, when I launch an instance that has a custom Remote FS root set in the EC2 plugin configuration for the AMI, the root isn't created. If I set the remote cache root to /var/cache/jenkins/ on an EC2-launched Debian instance, for example, I get the error: {code} Verifying that java exists java full version "1.6.0_18-b18" Copying slave.jar Launching slave agent: java -jar /tmp/slave.jar <===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.18 This is a Unix slave ERROR: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1650) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:368) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:316) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:134) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:199) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.FileNotFoundException: /var/cache/jenkins/maven-agent.jar (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:209) at java.io.FileOutputStream.<init>(FileOutputStream.java:160) at hudson.FilePath$28.call(FilePath.java:1558) at hudson.FilePath$28.call(FilePath.java:1554) at hudson.remoting.UserRequest.perform(UserRequest.java:118) 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:72) ... 5 more ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Command.readFrom(Command.java:90) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) {code}

    Jenkins JIRA | 4 years ago | Craig Ringer
    hudson.util.IOException2: Failed to copy /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar to /var/cache/jenkins/maven-agent.jar
  3. 0

    Acceptance tests fail on ecryptfs mount

    GitHub | 5 years ago | gbacon
    java.lang.RuntimeException: java.io.FileNotFoundException: FitNesseRoot/files/testProgress/FitNesse.SuiteAcceptanceTests.SuiteSlimTests.ScenarioLibraryTestSuite.ScenarioLibariesOrderTests.ScenarioLibraryOrderSuite.ScenarioLibraryOrderTestParent.ScenarioLibraryOrderIsCorrect (File name too long)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Permission Denied when exporting

    GitHub | 4 years ago | Mic92
    java.io.FileNotFoundException: entities.tar.gz (Permission denied)
  6. 0

    CloudBees Back-up Plugin failing

    Stack Overflow | 4 years ago | garnerh42
    java.io.FileNotFoundException: /mnt/jenkinsbackup/backup-Jenkins Backup-19.tar.gz (Permission denied)

  1. Casper 1 times, last 3 weeks ago
  2. QrCeric 216 times, last 1 week ago
  3. Axelo 1 times, last 4 weeks ago
  4. tyson925 2 times, last 4 weeks ago
  5. reni 1 times, last 1 month ago
33 more registered users
62 unregistered visitors
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

    /var/cache/jenkins/maven-agent.jar (No such file or directory)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:209)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:160)
    3 frames
  3. Hudson
    FilePath$28.call
    1. hudson.FilePath$28.call(FilePath.java:1558)
    2. hudson.FilePath$28.call(FilePath.java:1554)
    2 frames
  4. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
    3. hudson.remoting.Request$2.run(Request.java:326)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    4 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    5. java.lang.Thread.run(Thread.java:636)
    5 frames