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

Jenkins JIRA | david crosson | 2 years ago
  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 | 6 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

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

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

    JSch Request With A Button Action - Java | Dream.In.Code

    dreamincode.net | 11 months ago
    com.jcraft.jsch.JSchException: timeout: socket is not established

  1. abrazeneb 1 times, last 4 months ago
96 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