Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47603

SCP error response code should be printed in the logs

    XMLWordPrintable

Details

    • trilead-ssh2-build-217-jenkins-14

    Description

      With the ec2-plugin I just got the stacktrace below from a customer. 

      Oct 13, 2017 3:51:57 PM null 
      INFO: 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:214) 
      at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:122) 
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262) 
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) 
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
      at java.lang.Thread.run(Thread.java:748) 
      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:140) 
      at com.trilead.ssh2.SCPClient.put(SCPClient.java:519) 
      ... 9 more
      

      The problem I see with readResponse is that it does NOT tells what is the SCP error code received, so it is difficult to understand the reason why the operation failed.

      Attachments

        Activity

          I'm also facing same issue on our jenkins slaves

           

          INFO: Copying slave.jar to: /tmp

          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:190)

          at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:122)

          at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:288)

          at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)

          at java.util.concurrent.FutureTask.run(FutureTask.java:266)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

          at java.lang.Thread.run(Thread.java:748)

          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:140)

          at com.trilead.ssh2.SCPClient.put(SCPClient.java:519)

          ... 9 more

          pavan_tatikonda Venkata Siva Naga Tatikonda added a comment - I'm also facing same issue on our jenkins slaves   INFO: Copying slave.jar to: /tmp 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:190) at hudson.plugins.ec2.EC2ComputerLauncher.launch(EC2ComputerLauncher.java:122) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:288) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 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:140) at com.trilead.ssh2.SCPClient.put(SCPClient.java:519) ... 9 more

          People

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: