java.io.IOException: Failed to deploy the binary. timeout: socket is not established

Jenkins JIRA | david crosson | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    No SSH options is supported in openshift-deployer-plugin, and as jsch is used, there's no workaround possible. If standard git, or ssh commands were used then it would be possible to add a ~/.ssh/config file with extra SSH configuration such as proxy tunnel. *For example* : {{ $ cat ~/.ssh/config Host *.mycompany.fr ProxyCommand proxytunnel -E -p tunnel.mycompany.fr:443 -d "%h:%p" TCPKeepAlive yes StrictHostKeyChecking no }} jsch support various options, such as proxy tunnel, would be possible to make them configurable for both direct usage by openshift-deployer-plugin but also for jgit ? Typical error I get : {{ [OPENSHIFT] Deployments found: [/var/jenkins_home/jobs/primesui/workspace/target/scala-2.11/primesui_2.11-0.1.2.war] [OPENSHIFT] Deploying to OpenShift at http://broker.xxxxx.mycompany.fr. Be patient! It might take a minute... [OPENSHIFT] Deployging /var/jenkins_home/jobs/primesui/workspace/target/scala-2.11/primesui_2.11-0.1.2.war [OPENSHIFT] Starting SSH connection to ssh://5551cfa0e299d9093d0003c6@xxxxx.mycompany.fr [OPENSHIFT] Using SSH private key /var/jenkins_home/.ssh/id_rsa ERROR: [OPENSHIFT] java.io.IOException: Failed to deploy the binary. timeout: socket is not established at org.jenkinsci.plugins.openshift.SSHClient.deploy(SSHClient.java:99) at org.jenkinsci.plugins.openshift.DeployApplication.doBinaryDeploy(DeployApplication.java:191) at org.jenkinsci.plugins.openshift.DeployApplication.deploy(DeployApplication.java:169) at org.jenkinsci.plugins.openshift.DeployApplication.perform(DeployApplication.java:153) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established at com.jcraft.jsch.Util.createSocket(Util.java:394) at com.jcraft.jsch.Session.connect(Session.java:215) at org.jenkinsci.plugins.openshift.SSHClient.deploy(SSHClient.java:77) ... 12 more }}

    Jenkins JIRA | 2 years ago | david crosson
    java.io.IOException: Failed to deploy the binary. timeout: socket is not established
  2. 0

    [JENKINS-28351] no support for ssh options such as proxy tunnel - Jenkins JIRA

    jenkins-ci.org | 12 months ago
    java.io.IOException: Failed to deploy the binary. timeout: socket is not established
  3. 0

    No SSH options is supported in openshift-deployer-plugin, and as jsch is used, there's no workaround possible. If standard git, or ssh commands were used then it would be possible to add a ~/.ssh/config file with extra SSH configuration such as proxy tunnel. *For example* : {{ $ cat ~/.ssh/config Host *.mycompany.fr ProxyCommand proxytunnel -E -p tunnel.mycompany.fr:443 -d "%h:%p" TCPKeepAlive yes StrictHostKeyChecking no }} jsch support various options, such as proxy tunnel, would be possible to make them configurable for both direct usage by openshift-deployer-plugin but also for jgit ? Typical error I get : {{ [OPENSHIFT] Deployments found: [/var/jenkins_home/jobs/primesui/workspace/target/scala-2.11/primesui_2.11-0.1.2.war] [OPENSHIFT] Deploying to OpenShift at http://broker.xxxxx.mycompany.fr. Be patient! It might take a minute... [OPENSHIFT] Deployging /var/jenkins_home/jobs/primesui/workspace/target/scala-2.11/primesui_2.11-0.1.2.war [OPENSHIFT] Starting SSH connection to ssh://5551cfa0e299d9093d0003c6@xxxxx.mycompany.fr [OPENSHIFT] Using SSH private key /var/jenkins_home/.ssh/id_rsa ERROR: [OPENSHIFT] java.io.IOException: Failed to deploy the binary. timeout: socket is not established at org.jenkinsci.plugins.openshift.SSHClient.deploy(SSHClient.java:99) at org.jenkinsci.plugins.openshift.DeployApplication.doBinaryDeploy(DeployApplication.java:191) at org.jenkinsci.plugins.openshift.DeployApplication.deploy(DeployApplication.java:169) at org.jenkinsci.plugins.openshift.DeployApplication.perform(DeployApplication.java:153) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: com.jcraft.jsch.JSchException: timeout: socket is not established at com.jcraft.jsch.Util.createSocket(Util.java:394) at com.jcraft.jsch.Session.connect(Session.java:215) at org.jenkinsci.plugins.openshift.SSHClient.deploy(SSHClient.java:77) ... 12 more }}

    Jenkins JIRA | 2 years ago | david crosson
    java.io.IOException: Failed to deploy the binary. timeout: socket is not established
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x
  6. 0

    Eclipse Community Forums: Oomph ยป How to redirect git clone to use https instead of git: protocol?

    eclipse.org | 11 months ago
    java.lang.Exception: org.eclipse.jgit.api.errors.TransportException: git@github.com:eclipse/xtext.git: timeout: socket is not established

  1. jf-ast 2 times, last 4 months ago
  2. jstrayer 3 times, last 5 months ago
  3. abrazeneb 1 times, last 9 months ago
97 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. com.jcraft.jsch.JSchException

    timeout: socket is not established

    at com.jcraft.jsch.Util.createSocket()
  2. JSch
    Session.connect
    1. com.jcraft.jsch.Util.createSocket(Util.java:394)
    2. com.jcraft.jsch.Session.connect(Session.java:215)
    2 frames
  3. org.jenkinsci.plugins
    DeployApplication.perform
    1. org.jenkinsci.plugins.openshift.SSHClient.deploy(SSHClient.java:77)
    2. org.jenkinsci.plugins.openshift.DeployApplication.doBinaryDeploy(DeployApplication.java:191)
    3. org.jenkinsci.plugins.openshift.DeployApplication.deploy(DeployApplication.java:169)
    4. org.jenkinsci.plugins.openshift.DeployApplication.perform(DeployApplication.java:153)
    4 frames
  4. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
    6. hudson.model.Run.execute(Run.java:1759)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:89)
    9. hudson.model.Executor.run(Executor.java:240)
    9 frames