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

Unable to create SSH session

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.1.1.CR1
    • 4.1.1.Beta1
    • openshift
    • None
    • Hide

      Add again SSH key, then it works fine.

      Show
      Add again SSH key, then it works fine.

      Sometimes cannot create new / publish existing / import app bcs. of authentication fail.

      Issue probably related to JBIDE-15679, unfortunately I don't know how to reproduce this bug (I have noticed it occurs e.g. when I change location from where I am creating / modyfing app = change of IP or turn on/off JBDS/JBT).

      Eclipse log 1:

      Unable to create SSH session for application 'ApplicationResource [uuid=5271107a3b696e75f9000032, name=diy, creationTime=Wed Oct 30 14:58:18 CET 2013, cartridge=StandaloneCartridge[ name=diy-0.1, url=null, displayName = Do-It-Yourself 0.1, description=The Do-It-Yourself (DIY) application type is a blank slate for trying unsupported languages, frameworks, and middleware on OpenShift. See the community site for examples of bringing your favorite framework to OpenShift. ], scale=NO_SCALE, gearProfile=GearProfile [name=int_general_small], domain=Domain [id=domainequo2, suffix=itos.redhat.com], applicationUrl=http://diy-domainequo2.itos.redhat.com/, gitUrl=ssh://5271107a3b696e75f9000032@diy-domainequo2.itos.redhat.com/~/git/diy.git/, initialGitUrl=null, aliases=[], gearGroups=null]'
      !STACK 0
      com.jcraft.jsch.JSchException: Auth fail
              at com.jcraft.jsch.Session.connect(Session.java:482)
              at com.jcraft.jsch.Session.connect(Session.java:160)
              at org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftSshSessionFactory.createSession(OpenShiftSshSessionFactory.java:117)
              at org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftSshSessionFactory.createSession(OpenShiftSshSessionFactory.java:88)
              at org.jboss.tools.openshift.express.internal.ui.job.VerifySSHSessionJob.run(VerifySSHSessionJob.java:47)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      

      Eclipse log 2:

      org.eclipse.jgit.errors.TransportException: ssh://527117bd25535d154a000001@gtr-domainequo2.itos.redhat.com/~/git/gtr.git/: channel is not opened.
              at org.eclipse.jgit.transport.JschSession$JschProcess.<init>(JschSession.java:154)
              at org.eclipse.jgit.transport.JschSession$JschProcess.<init>(JschSession.java:118)
              at org.eclipse.jgit.transport.JschSession.exec(JschSession.java:91)
              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:136)
              at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
              at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1105)
              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:155)
              at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:270)
              at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:257)
              at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:171)
              at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.MergeIntoGitSharedProject.copyOpenshiftConfigurations(MergeIntoGitSharedProject.java:147)
              at org.jboss.tools.openshift.express.internal.ui.wizard.application.importoperation.MergeIntoGitSharedProject.execute(MergeIntoGitSharedProject.java:101)
              at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizardModel.mergeIntoGitSharedProject(OpenShiftApplicationWizardModel.java:187)
              at org.jboss.tools.openshift.express.internal.ui.wizard.application.OpenShiftApplicationWizard$ImportJob.runInWorkspace(OpenShiftApplicationWizard.java:360)
              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: channel is not opened.
              at com.jcraft.jsch.Channel.sendChannelOpen(Channel.java:670)
              at com.jcraft.jsch.Channel.connect(Channel.java:151)
              at org.eclipse.jgit.transport.JschSession$JschProcess.<init>(JschSession.java:150)
              ... 20 more
      

            adietish@redhat.com André Dietisheim
            mlabuda_jira Marián Labuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: