java.util.concurrent.ExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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?
    via by Nathan Sharp,
  • 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?
    via by Nathan Sharp,
  • 服务器异常重启后VR起不来
    via by hang_cs@126.com,
  • 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
    via by Guy Sheffer,
  • Since one of the last updates I cannot connect a slave, which is running a different java version. Jenkins is version 1.558 with Oracle Java 1.7.0_51 and the slave is an x86 box using OpenJDK 1.6.0_27. It is impossible to switch to another Java version on the node. If I try to establish the connection, it fails with this output: {code} [04/17/14 09:46:48] [SSH] Opening SSH connection to alpine_2_7_x86:22. [04/17/14 09:46:48] [SSH] Authentication successful. [04/17/14 09:46:48] [SSH] The remote users environment is: HOME='/home/jenkins' IFS=' ' LOGNAME='jenkins' MAIL='/var/mail/jenkins' OPTIND='1' PATH='/usr/bin:/bin:/usr/sbin:/sbin' PPID='429' PS1='\w \$ ' PS2='> ' PS4='+ ' PWD='/home/jenkins' SHELL='/bin/ash' SSH_CLIENT='10.42.23.23 51323 22' SSH_CONNECTION='10.42.23.23 51323 10.42.23.192 22' USER='jenkins' [04/17/14 09:46:48] [SSH] Checking java version of java [04/17/14 09:46:48] [SSH] java -version returned 1.6.0_27. [04/17/14 09:46:48] [SSH] Starting sftp client. [04/17/14 09:46:48] [SSH] SFTP failed. Copying via SCP. [04/17/14 09:46:48] [SSH] Copying latest slave.jar... hudson.util.IOException2: Could not copy slave.jar into '/home/jenkins/ci' on slave at hudson.plugins.sshslaves.SSHLauncher.copySlaveJarUsingSCP(SSHLauncher.java:1056) at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1015) at hudson.plugins.sshslaves.SSHLauncher.access$300(SSHLauncher.java:126) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:656) at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:642) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) 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:1054) ... 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 [04/17/14 09:46:48] [SSH] Connection closed. [04/17/14 09:46:48] Launch failed - cleaning up connection {code} The connection itself is opened successfully and if I put slave.jar from another node onto this one, it get's deleted during the above steps. But then scp fails!? Any ideas? The connection to another node with the same OpenJDK version but x86_64 architecture works without any problems.
    via by Yves Schumann,
  • 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?
    via by Gautam Jayaprakash,
  • 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
    via by vinz r,
  • SCP failure running pyCOMPSs application
    via Stack Overflow by Jorge Ejarque
    ,
    • 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
    No Bugmate found.