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

Cannot import application if I previously killed and recreated it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M5
    • openshift
    • None
    • Hide
      1. EXEC: launch OpenShift wizard & log in
      2. EXEC: create an application (ex. as11 - jbossas-7 app)
      3. EXEC: finish the wizard, import the app to your workspace
      4. EXEC: delete the app from your workspace (remove the files, too)
      5. EXEC: launch OpenShift wizard & log in
      6. EXEC: kill your application
      7. EXEC: cancel the wizard
      8. EXEC: launch the wizard & log in
      9. EXEC: create the very same app again, try to import it to your workspace

      Result:
      The import fails, it reports that there was an authentication error when trying to clone

      In the eclipse log you'll spot the following error:

      org.eclipse.jgit.errors.TransportException: ssh://ea0db1930397429392efa612b440ce3b@as11-jbosstools.rhcloud.com/~/git/as11.git/: java.net.UnknownHostException: as11-jbosstools.rhcloud.com
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:138)
      	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:122)
      	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:1062)
      	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136)
      	at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:174)
      	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:118)
      	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:142)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:77)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:67)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportNewProjectOperation.execute(ImportNewProjectOperation.java:71)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportProjectWizardModel.importProject(ImportProjectWizardModel.java:72)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportProjectWizard$ImportJob.runInWorkspace(ImportProjectWizard.java:135)
      	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: com.jcraft.jsch.JSchException: java.net.UnknownHostException: as11-jbosstools.rhcloud.com
      	at com.jcraft.jsch.Util.createSocket(Util.java:386)
      	at com.jcraft.jsch.Session.connect(Session.java:186)
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:128)
      	... 17 more
      
      
      Show
      EXEC: launch OpenShift wizard & log in EXEC: create an application (ex. as11 - jbossas-7 app) EXEC: finish the wizard, import the app to your workspace EXEC: delete the app from your workspace (remove the files, too) EXEC: launch OpenShift wizard & log in EXEC: kill your application EXEC: cancel the wizard EXEC: launch the wizard & log in EXEC: create the very same app again, try to import it to your workspace Result: The import fails, it reports that there was an authentication error when trying to clone In the eclipse log you'll spot the following error: org.eclipse.jgit.errors.TransportException: ssh: //ea0db1930397429392efa612b440ce3b@as11-jbosstools.rhcloud.com/~/git/as11.git/: java.net.UnknownHostException: as11-jbosstools.rhcloud.com at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:138) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:122) 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:1062) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:174) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:118) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:142) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:77) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:67) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportNewProjectOperation.execute(ImportNewProjectOperation.java:71) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportProjectWizardModel.importProject(ImportProjectWizardModel.java:72) at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportProjectWizard$ImportJob.runInWorkspace(ImportProjectWizard.java:135) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.jcraft.jsch.JSchException: java.net.UnknownHostException: as11-jbosstools.rhcloud.com at com.jcraft.jsch.Util.createSocket(Util.java:386) at com.jcraft.jsch.Session.connect(Session.java:186) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:128) ... 17 more
    • Hide

      Wait a couple of seconds/minutes and try again.

      Show
      Wait a couple of seconds/minutes and try again.

      1. auth-error.png
        162 kB
        André Dietisheim

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

              Created:
              Updated:
              Resolved: