Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-14304

Cannot clone OpenShift application when behind a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 4.1.0.Beta1
    • 4.1.0.Alpha1
    • openshift
    • None
    • Hide
      1. ASSERT: make sure you have an OpenShift application that you can import to your workspace
      2. ASSERT: make sure you're using a proxy (that does not allow git/ssh). ex. use OpenShift STG via RH proxy
      3. EXEC: launch import wizard and import your application to your workspace.

      Result:
      Clonging fails: "ProxyHTTP: java.io.IOException: proxy error: Forbidden"

      In the Eclipse log you spot the following:

      ProxyHTTP: java.io.IOException: proxy error: Forbidden
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
      	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
      	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
      	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
      	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127)
      	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113)
      	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1069)
      	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
      	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
      	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
      	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153)
      	at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:258)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:96)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.ImportNewProject.execute(ImportNewProject.java:78)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftExpressApplicationWizardModel.importProject(OpenShiftExpressApplicationWizardModel.java:91)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:341)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      Caused by: com.jcraft.jsch.JSchException: ProxyHTTP: java.io.IOException: proxy error: Forbidden
      	at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:158)
      	at com.jcraft.jsch.Session.connect(Session.java:208)
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
      	... 17 more
      Caused by: java.io.IOException: proxy error: Forbidden
      	at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:122)
      	... 19 more
      
      Show
      ASSERT: make sure you have an OpenShift application that you can import to your workspace ASSERT: make sure you're using a proxy (that does not allow git/ssh). ex. use OpenShift STG via RH proxy EXEC: launch import wizard and import your application to your workspace. Result: Clonging fails: "ProxyHTTP: java.io.IOException: proxy error: Forbidden" In the Eclipse log you spot the following: ProxyHTTP: java.io.IOException: proxy error: Forbidden at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:127) at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:113) at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1069) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153) at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:258) at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:96) at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.ImportNewProject.execute(ImportNewProject.java:78) at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftExpressApplicationWizardModel.importProject(OpenShiftExpressApplicationWizardModel.java:91) at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:341) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: com.jcraft.jsch.JSchException: ProxyHTTP: java.io.IOException: proxy error: Forbidden at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:158) at com.jcraft.jsch.Session.connect(Session.java:208) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 17 more Caused by: java.io.IOException: proxy error: Forbidden at com.jcraft.jsch.ProxyHTTP.connect(ProxyHTTP.java:122) ... 19 more
    • Hide

      add your application host to the "bypass proxy" in the Eclipse preferences. You my simply use an expression of this kind "*.rhcloud.com" and the proxy wont get used for any clone operations on openshift online

      Show
      add your application host to the "bypass proxy" in the Eclipse preferences. You my simply use an expression of this kind "*.rhcloud.com" and the proxy wont get used for any clone operations on openshift online

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: