java.util.concurrent.ExecutionException: java.io.IOException: Error during SCP transfer.

Jenkins JIRA | Nathan Sharp | 4 years ago
  1. 0

    I had trouble using the base Ubuntu 12.04 image on Amazon (ami-3d4ff254), so I've been making my own ami based on it that has Java and the build tools I need pre-installed. I have configured JClouds with "Use Pre-existing user" and "Use Pre-installed Java". The plug-in starts the machine, connects to it, then I get: [#|2012-11-05T16:12:48.801-0500|WARNING|oracle-glassfish3.1.1|hudson.slaves.NodeProvisioner|_ThreadID=26;_ThreadName=Thread-2;|Provisioned slave testaws failed to launch java.util.concurrent.ExecutionException: java.io.IOException: Error during SCP transfer. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:227) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) 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:662) Caused by: java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:510) at com.trilead.ssh2.SCPClient.put(SCPClient.java:466) at jenkins.plugins.jclouds.compute.JCloudsLauncher.launch(JCloudsLauncher.java:71) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) ... 5 more Caused by: java.io.IOException: Remote scp sent illegal error code. at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:53) at com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:137) at com.trilead.ssh2.SCPClient.put(SCPClient.java:506) ... 8 more |#] The failing line (JCloudsLauncher:71) appears to be trying to copy Slave.jar to /tmp on the node. I can manually scp this file and the manual scp succeeds. Any ideas on how to debug this?

    Jenkins JIRA | 4 years ago | Nathan Sharp
    java.util.concurrent.ExecutionException: java.io.IOException: Error during SCP transfer.
  2. 0

    I had trouble using the base Ubuntu 12.04 image on Amazon (ami-3d4ff254), so I've been making my own ami based on it that has Java and the build tools I need pre-installed. I have configured JClouds with "Use Pre-existing user" and "Use Pre-installed Java". The plug-in starts the machine, connects to it, then I get: [#|2012-11-05T16:12:48.801-0500|WARNING|oracle-glassfish3.1.1|hudson.slaves.NodeProvisioner|_ThreadID=26;_ThreadName=Thread-2;|Provisioned slave testaws failed to launch java.util.concurrent.ExecutionException: java.io.IOException: Error during SCP transfer. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:227) at jenkins.plugins.jclouds.compute.JCloudsCloud$2.call(JCloudsCloud.java:213) 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:662) Caused by: java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:510) at com.trilead.ssh2.SCPClient.put(SCPClient.java:466) at jenkins.plugins.jclouds.compute.JCloudsLauncher.launch(JCloudsLauncher.java:71) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) ... 5 more Caused by: java.io.IOException: Remote scp sent illegal error code. at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:53) at com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:137) at com.trilead.ssh2.SCPClient.put(SCPClient.java:506) ... 8 more |#] The failing line (JCloudsLauncher:71) appears to be trying to copy Slave.jar to /tmp on the node. I can manually scp this file and the manual scp succeeds. Any ideas on how to debug this?

    Jenkins JIRA | 4 years ago | Nathan Sharp
    java.util.concurrent.ExecutionException: java.io.IOException: Error during SCP transfer.
  3. 0

    mc install logging message: Failed while SCPing /opt/vconsole/b... - HP Developer Community

    vertica.com | 2 years ago
    java.io.IOException: Error during SCP transfer.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins SSH slave fails to create /home/<user>/jenkins

    Stack Overflow | 2 years ago | PapelPincel
    hudson.util.IOException2: Could not copy slave.jar into '/home/<user>/jenkins' on slave
  6. 0

    When configuring an ssh slave which runs on cygwin, the environment variables are not loaded. However I do know that ~/.bash_profile is executed and sourced, because it will display echo commands in the output console if I insert them there. Also things like PATH and PWD do not exist, causing any command to fail. Output from the ssh looks like this (note remote environment is empty): {code}[03/11/13 18:40:35] [SSH] Opening SSH connection to vmbld-vc902:22. [03/11/13 18:40:36] [SSH] Authentication successful. [03/11/13 18:40:36] [SSH] The remote users environment is: [03/11/13 18:40:37] [SSH] Checking java version of java Couldn't figure out the Java version of java [03/11/13 18:40:37] [SSH] Checking java version of /usr/bin/java Couldn't figure out the Java version of /usr/bin/java [03/11/13 18:40:38] [SSH] Checking java version of /usr/java/default/bin/java Couldn't figure out the Java version of /usr/java/default/bin/java [03/11/13 18:40:38] [SSH] Checking java version of /usr/java/latest/bin/java Couldn't figure out the Java version of /usr/java/latest/bin/java [03/11/13 18:40:38] [SSH] Checking java version of /usr/local/bin/java Couldn't figure out the Java version of /usr/local/bin/java [03/11/13 18:40:39] [SSH] Checking java version of /usr/local/java/bin/java Couldn't figure out the Java version of /usr/local/java/bin/java [03/11/13 18:40:39] [SSH] Checking java version of /home/packaging/test/jdk/bin/java Couldn't figure out the Java version of /home/packaging/test/jdk/bin/java{code} If I forcefully point the JAVA_PATH to java (located at /usr/bin/java) I get: {code}[03/11/13 18:59:55] [SSH] Opening SSH connection to vmbld-vc902:22. [03/11/13 18:59:55] [SSH] Authentication successful. [03/11/13 18:59:56] [SSH] The remote users environment is: [03/11/13 18:59:57] [SSH] Starting sftp client. [03/11/13 18:59:57] [SSH] SFTP failed. Copying via SCP. [03/11/13 18:59:58] [SSH] Remote file system root /home/packaging/test does not exist. Will try to create it... Failed to create /home/packaging/test [03/11/13 18:59:58] [SSH] Copying latest slave.jar... hudson.util.IOException2: Could not copy slave.jar into '/home/packaging/test' on slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJarUsingSCP(SSHLauncher.java:800) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:759) at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:468) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:222) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:523) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJarUsingSCP(SSHLauncher.java:798) ... 8 more Caused by: java.io.IOException: Remote scp terminated unexpectedly. at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:50) at com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:140) at com.trilead.ssh2.SCPClient.put(SCPClient.java:519) ... 9 more [03/11/13 18:59:59] [SSH] Connection closed.{code} Cygwin verion 1.5.24-2 SSH from the machine that runs Jenkins to the machine works fine. I know this is not a lot for recreation, If you need any other logs to troubleshoot them please specify in the comments

    Jenkins JIRA | 4 years ago | Guy Sheffer
    hudson.util.IOException2: Could not copy slave.jar into '/home/packaging/test' on slave

    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

      Remote scp sent illegal error code.

      at com.trilead.ssh2.SCPClient.readResponse()
    2. Trilead
      SCPClient.put
      1. com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:53)
      2. com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:137)
      3. com.trilead.ssh2.SCPClient.put(SCPClient.java:506)
      4. com.trilead.ssh2.SCPClient.put(SCPClient.java:466)
      4 frames
    3. jenkins.plugins.jclouds
      JCloudsLauncher.launch
      1. jenkins.plugins.jclouds.compute.JCloudsLauncher.launch(JCloudsLauncher.java:71)
      1 frame
    4. Hudson
      SlaveComputer$1.call
      1. hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
      1 frame
    5. 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:662)
      5 frames