hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar

Jenkins JIRA | hlau | 3 years ago
  1. 0

    I tried this multiple times: slaves fail to connect when using version 1.519 or later; the same slaves connects fine when using 1.518 or earlier (as early as 1.501). The experiments were done with a simple jenkins with no jobs configured, and with only the master and a couple of slaves. Log shows the following error: ... [07/16/13 15:39:19] [SSH] Checking java version of java [07/16/13 15:39:19] [SSH] java -version returned 1.6.0_10. [07/16/13 15:39:19] [SSH] Starting sftp client. [07/16/13 15:39:19] [SSH] Copying latest slave.jar... [07/16/13 15:39:19] [SSH] Copied 326,006 bytes. Expanded the channel window size to 4MB [07/16/13 15:39:19] [SSH] Starting slave process: cd '/data00/hudson_home_analysis' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.24 This is a Unix slave hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1726) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:469) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:343) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:712) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:498) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:226) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Remote call on repo-01 failed at hudson.remoting.Channel.call(Channel.java:731) at hudson.FilePath.write(FilePath.java:1625) at hudson.FilePath.copyTo(FilePath.java:1719) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/input/ProxyInputStream at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:289) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredField(Class.java:1880) at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610) at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) 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 Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.input.ProxyInputStream at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:237) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 37 more Caused by: java.util.concurrent.ExecutionException: java.util.zip.ZipException: error in opening zip file at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:48) at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:42) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229) ... 40 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:114) at java.util.jar.JarFile.<init>(JarFile.java:133) at java.util.jar.JarFile.<init>(JarFile.java:70) at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:53) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132) at java.net.URL.openStream(URL.java:1009) at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:46) ... 43 more [07/16/13 15:39:20] [SSH] Connection closed. 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:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [07/16/13 15:39:20] slave agent was 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:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 3 years ago | hlau
    hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar
  2. 0

    I tried this multiple times: slaves fail to connect when using version 1.519 or later; the same slaves connects fine when using 1.518 or earlier (as early as 1.501). The experiments were done with a simple jenkins with no jobs configured, and with only the master and a couple of slaves. Log shows the following error: ... [07/16/13 15:39:19] [SSH] Checking java version of java [07/16/13 15:39:19] [SSH] java -version returned 1.6.0_10. [07/16/13 15:39:19] [SSH] Starting sftp client. [07/16/13 15:39:19] [SSH] Copying latest slave.jar... [07/16/13 15:39:19] [SSH] Copied 326,006 bytes. Expanded the channel window size to 4MB [07/16/13 15:39:19] [SSH] Starting slave process: cd '/data00/hudson_home_analysis' && java -jar slave.jar <===[JENKINS REMOTING CAPACITY]===>channel started Slave.jar version: 2.24 This is a Unix slave hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar at hudson.FilePath.copyTo(FilePath.java:1726) at hudson.maven.MavenComputerListener.copyJar(MavenComputerListener.java:90) at hudson.maven.MavenComputerListener.preOnline(MavenComputerListener.java:57) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:469) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:343) at hudson.plugins.sshslaves.SSHLauncher.startSlave(SSHLauncher.java:712) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:498) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:226) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Remote call on repo-01 failed at hudson.remoting.Channel.call(Channel.java:731) at hudson.FilePath.write(FilePath.java:1625) at hudson.FilePath.copyTo(FilePath.java:1719) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/input/ProxyInputStream at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.lang.ClassLoader.defineClass(ClassLoader.java:466) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:289) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredField(Class.java:1880) at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610) at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.UserRequest.deserialize(UserRequest.java:182) at hudson.remoting.UserRequest.perform(UserRequest.java:98) 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 Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.input.ProxyInputStream at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:237) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 37 more Caused by: java.util.concurrent.ExecutionException: java.util.zip.ZipException: error in opening zip file at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:48) at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:42) at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229) ... 40 more Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:114) at java.util.jar.JarFile.<init>(JarFile.java:133) at java.util.jar.JarFile.<init>(JarFile.java:70) at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72) at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48) at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:53) at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132) at java.net.URL.openStream(URL.java:1009) at hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:46) ... 43 more [07/16/13 15:39:20] [SSH] Connection closed. 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:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) ERROR: [07/16/13 15:39:20] slave agent was 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:2554) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1297) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:59) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)

    Jenkins JIRA | 3 years ago | hlau
    hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar
  3. 0

    [JENKINS-18782] slave connection failed starting with 1.519 - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /hudson_home/maven-agent.jar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to start slave on macosx, solaris and netbsd after upgrading to jenkins 1.520

    Google Groups | 3 years ago | crb...@gmail.com
    hudson.util.IOException2: Failed to copy /jenkins/data/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.3.jar to /jenkins_home/maven-agent.jar
  6. 0

    com.twitter.scalding.Tool cannot find classes in submitted jar

    GitHub | 3 years ago | themodernlife
    java.lang.Throwable: If you know what exactly caused this error, please consider contributing to GitHub via following link. https://github.com/twitter/scalding/wiki/Common-Exceptions-and-possible-reasons#cascadingcascadingexception

    1 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.util.zip.ZipException

      error in opening zip file

      at java.util.zip.ZipFile.open()
    2. Java RT
      URL.openStream
      1. java.util.zip.ZipFile.open(Native Method)
      2. java.util.zip.ZipFile.<init>(ZipFile.java:114)
      3. java.util.jar.JarFile.<init>(JarFile.java:133)
      4. java.util.jar.JarFile.<init>(JarFile.java:70)
      5. sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
      6. sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
      7. sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:53)
      8. sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
      9. sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
      10. java.net.URL.openStream(URL.java:1009)
      10 frames
    3. Hudson :: Remoting Layer
      RemoteClassLoader.findClass
      1. hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:46)
      2. hudson.remoting.ResourceImageInJar$1.adapt(ResourceImageInJar.java:42)
      3. hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      4. hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229)
      4 frames
    4. Java RT
      ClassLoader.defineClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      4. java.lang.ClassLoader.defineClass1(Native Method)
      5. java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      6. java.lang.ClassLoader.defineClass(ClassLoader.java:466)
      6 frames
    5. Hudson :: Remoting Layer
      RemoteClassLoader.findClass
      1. hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:289)
      2. hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229)
      2 frames
    6. Java RT
      ObjectInputStream.readObject
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      3. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      4. java.lang.Class.getDeclaredFields0(Native Method)
      5. java.lang.Class.privateGetDeclaredFields(Class.java:2291)
      6. java.lang.Class.getDeclaredField(Class.java:1880)
      7. java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610)
      8. java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
      9. java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
      10. java.security.AccessController.doPrivileged(Native Method)
      11. java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
      12. java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
      13. java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
      14. java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      15. java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      16. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      17. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      18. java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
      19. java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
      20. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
      21. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      22. java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      22 frames
    7. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:98)
      3. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      4. hudson.remoting.Request$2.run(Request.java:326)
      5. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      5 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:619)
      5 frames