java.io.IOException: Error during SCP transfer.

Jenkins JIRA | vinz r | 4 years ago
  1. 0

    When starting the new EC2 instance as slave node encountered a problem: {noformat} java full version "1.6.0_24-b24" Copying slave.jar ERROR: Error during SCP transfer. java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:523) at com.trilead.ssh2.SCPClient.put(SCPClient.java:476) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) 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.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 {noformat} On Master Jenkins the Error logs says" {noformat} ct 24, 2012 6:06:43 AM hudson.slaves.NodeProvisioner update WARNING: Provisioned slave Jenkins Slaves (ami-4afe4623) failed to launch java.util.concurrent.ExecutionException: java.io.IOException: Slave failed to connect, even though the launcher didn't report it. See the log output for details. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:253) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:239) 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.IOException: Slave failed to connect, even though the launcher didn't report it. See the log output for details. at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:221) ... 5 more {noformat} But re-lunching the slave nodes it runs properly. Is this a bug for EC2 plugin? Current Jenkins version 1.487 and Amazon EC2 Plugins is 1.17 Thanks, Vinz

    Jenkins JIRA | 4 years ago | vinz r
    java.io.IOException: Error during SCP transfer.
  2. 0

    When starting the new EC2 instance as slave node encountered a problem: {noformat} java full version "1.6.0_24-b24" Copying slave.jar ERROR: Error during SCP transfer. java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:523) at com.trilead.ssh2.SCPClient.put(SCPClient.java:476) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200) 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.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 {noformat} On Master Jenkins the Error logs says" {noformat} ct 24, 2012 6:06:43 AM hudson.slaves.NodeProvisioner update WARNING: Provisioned slave Jenkins Slaves (ami-4afe4623) failed to launch java.util.concurrent.ExecutionException: java.io.IOException: Slave failed to connect, even though the launcher didn't report it. See the log output for details. at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:253) at hudson.plugins.ec2.EC2Cloud$1.call(EC2Cloud.java:239) 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.IOException: Slave failed to connect, even though the launcher didn't report it. See the log output for details. at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:221) ... 5 more {noformat} But re-lunching the slave nodes it runs properly. Is this a bug for EC2 plugin? Current Jenkins version 1.487 and Amazon EC2 Plugins is 1.17 Thanks, Vinz

    Jenkins JIRA | 4 years ago | vinz r
    java.io.IOException: Error during SCP transfer.
  3. 0

    When launching a new slave in EC2, it seems like everything works until it tries to run the init scripts. This fails like so: - Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Connected via SSH. Authenticating as test Executing init script ERROR: Error during SCP transfer. java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:523) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:99) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:80) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230) 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:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Remote scp terminated with error (scp: /tmp: No such file or directory). at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:59) at com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:140) at com.trilead.ssh2.SCPClient.put(SCPClient.java:519) ... 8 more I was able to manually log into the instance and verify that /tmp does exist, and I can write to it as the user that Jenkins authenticates with. /tmp, however, is a symlink to another directory. I was also able to manually scp a file to /tmp like so: - scp -i <jenkins ec2 key> README.md test@<ip>:/tmp Is this a known issue? Anything more detail I can provide?

    Jenkins JIRA | 3 years ago | Gautam Jayaprakash
    java.io.IOException: Error during SCP transfer.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When launching a new slave in EC2, it seems like everything works until it tries to run the init scripts. This fails like so: - Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Waiting for SSH to come up. Sleeping 5. Connecting to ec2-*.compute-1.amazonaws.com on port 22. Connected via SSH. Authenticating as test Executing init script ERROR: Error during SCP transfer. java.io.IOException: Error during SCP transfer. at com.trilead.ssh2.SCPClient.put(SCPClient.java:523) at hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:99) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:80) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:230) 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:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Remote scp terminated with error (scp: /tmp: No such file or directory). at com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:59) at com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:140) at com.trilead.ssh2.SCPClient.put(SCPClient.java:519) ... 8 more I was able to manually log into the instance and verify that /tmp does exist, and I can write to it as the user that Jenkins authenticates with. /tmp, however, is a symlink to another directory. I was also able to manually scp a file to /tmp like so: - scp -i <jenkins ec2 key> README.md test@<ip>:/tmp Is this a known issue? Anything more detail I can provide?

    Jenkins JIRA | 3 years ago | Gautam Jayaprakash
    java.io.IOException: Error during SCP transfer.
  6. 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

    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 terminated unexpectedly.

      at com.trilead.ssh2.SCPClient.readResponse()
    2. Trilead
      SCPClient.put
      1. com.trilead.ssh2.SCPClient.readResponse(SCPClient.java:50)
      2. com.trilead.ssh2.SCPClient.sendBytes(SCPClient.java:140)
      3. com.trilead.ssh2.SCPClient.put(SCPClient.java:519)
      4. com.trilead.ssh2.SCPClient.put(SCPClient.java:476)
      4 frames
    3. hudson.plugins.ec2
      EC2ComputerLauncher.launch
      1. hudson.plugins.ec2.ssh.EC2UnixLauncher.launch(EC2UnixLauncher.java:126)
      2. hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:57)
      2 frames
    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: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