org.eclipse.jgit.api.errors.TransportException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When running this command: addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon.git I get this error: {quote} Using Forge at /usr/local/Cellar/jboss-forge/3.0.1.Final/libexec _____ | ___|__ _ __ __ _ ___ | |_ / _ \| `__/ _` |/ _ \ \\ | _| (_) | | | (_| | __/ // |_| \___/|_| \__, |\___| |__/ JBoss Forge, version [ 3.0.1.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ] [temp]$ addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon.git ***INFO*** Installing Addon from Git [1/4] ... ***INFO*** Installing Addon from Git:Cloning repository in /var/folders/fq/cr0h3mm50ds0n4b5td16gk280000gn/T/tmpdir2611939843702157420 [1/4] ... ***ERROR*** Error while executing 'addon-install-from-git' org.eclipse.jgit.api.errors.TransportException: git@github.com:forge/wildfly-swarm-addon.git: USERAUTH fail at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:134) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:201) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135) at org.jboss.forge.addon.git.GitUtilsImpl.clone(GitUtilsImpl.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) at org.jboss.forge.addon.git.GitUtilsImpl_$$_javassist_cd8b3f1e-48d9-4129-bbf1-8abc8e34c896.clone(GitUtilsImpl_$$_javassist_cd8b3f1e-48d9-4129-bbf1-8abc8e34c896.java) at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand.cloneTo(AddonGitBuildAndInstallCommand.java:174) at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand.execute(AddonGitBuildAndInstallCommand.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103) at org.jboss.forge.addon.manager.impl.ui.AddonGitBuildAndInstallCommand_$$_javassist_a7596134-199b-4eda-bf8e-a15ed52f9b4b.execute(AddonGitBuildAndInstallCommand_$$_javassist_a7596134-199b-4eda-bf8e-a15ed52f9b4b.java) at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:95) at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:98) at org.jboss.forge.addon.shell.aesh.ForgeCommandContainer.executeCommand(ForgeCommandContainer.java:89) at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:311) at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:53) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:forge/wildfly-swarm-addon.git: USERAUTH fail at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:136) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:264) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:162) 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:1179) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128) ... 29 more Caused by: com.jcraft.jsch.JSchException: USERAUTH fail at com.jcraft.jsch.UserAuthPublicKey.start(UserAuthPublicKey.java:119) at com.jcraft.jsch.Session.connect(Session.java:463) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 36 more ***ERROR*** git@github.com:forge/wildfly-swarm-addon.git: USERAUTH fail [temp]$ {quote} I;ve seen this before when using jgit when I have a pw on my private key that i use to access git
    via by christian posta,
  • JGit Connection refused
    via Stack Overflow by tomasz
    ,
  • GitHub comment 137#164712976
    via GitHub by garyschulte
    ,
  • I get the following error when CR tries to clone: --- snippet (modified to be anonymous) --- [ConfigRotator] Version: 1.1.0 [ConfigRotator] Configuration from scratch net.praqma.jenkins.configrotator.ConfigurationRotatorException: Unable to get component for http://myrepo:8080/scm/git/project.git, at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:29) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:64) at net.praqma.jenkins.configrotator.scm.git.Git$GitPerformer.getInitialConfiguration(Git.java:56) at net.praqma.jenkins.configrotator.ConfigurationRotator.checkout(ConfigurationRotator.java:153) at hudson.model.AbstractProject.checkout(AbstractProject.java:1325) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.util.IOException2: remote file operation failed: /srv/user/.jenkins/workspace/CI-UpgradeScript at hudson.remoting.Channel@1a72772:BuildHostSeven at hudson.FilePath.act(FilePath.java:848) at hudson.FilePath.act(FilePath.java:825) at net.praqma.jenkins.configrotator.scm.git.GitConfiguration.<init>(GitConfiguration.java:26) ... 11 more Caused by: java.io.IOException: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:117) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:25) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2309) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.eclipse.jgit.api.errors.TransportException: http://myrepo:8080/scm/git/project.git: not authorized at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:179) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at net.praqma.jenkins.configrotator.scm.git.ResolveConfigurationComponent.invoke(ResolveConfigurationComponent.java:75) ... 11 more --- snippet --- I can login on the build host, and as the user running the jenkins slave manually clone the repository. Two thing are "special": 1) the authentification is read-only, and used git-credentials user@buildhostseven:~$ cat .gitconfig [credential] helper = store user@buildhostseven:~$ cat .git-credentials http://user:password@myrepo%3a8080 2) Notice the port 8080
    via by Bue Petersen,
  • [oomph] org.eclipse.jgit.api.errors.TransportException
    via by error-reports-inbox,
    • org.eclipse.jgit.api.errors.TransportException: git@github.com:forge/wildfly-swarm-addon.git: USERAUTH fail at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:134) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:201) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135) at org.jboss.forge.addon.git.GitUtilsImpl.clone(GitUtilsImpl.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87) at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,