Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Unable to clone repo in ssh or https in Eclipse(2021-12)(Unable to clone repo in ssh or https in Eclipse(2021-12))
Unable to clone repo in ssh or https in Eclipse(2021-12) [message #1849135] Wed, 05 January 2022 09:09 Go to next message
xiao chuncheng is currently offline xiao chunchengFriend
Messages: 2
Registered: January 2022
Junior Member
Hi Folks,

ENV:
Windows11
Eclipse Version: 2021-12 (4.22.0)
Build id: 20211202-1639
E/JGIT: Git integration for Eclipse 6.0.0.202111291000

I use Eclipse(2021-12) , I have installed git-lfs plugin and enabled it. But When I Pulling git repositories with large files from gitblit,
When I try and clone the repo with ssh, I now get the following error:

org.eclipse.jgit.lfs.errors.LfsConfigInvalidException: "Need to download object from LFS server but couldn't determine LFS server URL"
	at org.eclipse.jgit.lfs.internal.LfsConnectionFactory.getLfsUrl(LfsConnectionFactory.java:134)
	at org.eclipse.jgit.lfs.internal.LfsConnectionFactory.getLfsConnection(LfsConnectionFactory.java:75)
	at org.eclipse.jgit.lfs.SmudgeFilter.downloadLfsResource(SmudgeFilter.java:139)
	at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:105)
	at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:91)
	at org.eclipse.jgit.attributes.FilterCommandRegistry.createFilterCommand(FilterCommandRegistry.java:115)
	at org.eclipse.jgit.dircache.DirCacheCheckout.runBuiltinFilterCommand(DirCacheCheckout.java:1629)
	at org.eclipse.jgit.dircache.DirCacheCheckout.getContent(DirCacheCheckout.java:1574)
	at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1487)
	at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:563)
	at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:467)
	at org.eclipse.jgit.api.CloneCommand.checkout(CloneCommand.java:385)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:212)
	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:194)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:490)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$6.run(AbstractGitCloneWizard.java:464)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://admin@192.168.101.130:29418: Cannot log in at 192.168.101.130:29418
	at org.eclipse.jgit.transport.sshd.SshdSession.connect(SshdSession.java:173)
	at org.eclipse.jgit.transport.sshd.SshdSession.connect(SshdSession.java:98)
	at org.eclipse.jgit.transport.sshd.SshdSessionFactory.getSession(SshdSessionFactory.java:251)
	at org.eclipse.jgit.transport.sshd.SshdSessionFactory.getSession(SshdSessionFactory.java:1)
	at org.eclipse.jgit.util.SshSupport.runSshCommand(SshSupport.java:70)
	at org.eclipse.jgit.lfs.internal.LfsConnectionFactory.getSshAuthentication(LfsConnectionFactory.java:168)
	at org.eclipse.jgit.lfs.internal.LfsConnectionFactory.discoverLfsUrl(LfsConnectionFactory.java:147)
	at org.eclipse.jgit.lfs.internal.LfsConnectionFactory.getLfsUrl(LfsConnectionFactory.java:122)
	... 16 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
	at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:126)
	at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:39)
	at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:32)
	at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:68)
	at org.eclipse.jgit.transport.sshd.SshdSession.connect(SshdSession.java:163)
	... 23 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
	at org.apache.sshd.client.session.ClientUserAuthService.tryNext(ClientUserAuthService.java:353)
	at org.apache.sshd.client.session.ClientUserAuthService.processUserAuth(ClientUserAuthService.java:304)
	at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:225)
	at org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:503)
	at org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:429)
	at org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1466)
	at org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:389)
	at org.eclipse.jgit.internal.transport.sshd.JGitClientSession.messageReceived(JGitClientSession.java:198)
	at org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64)
	at org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:359)
	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:336)
	at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:333)
	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
	at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129)
	at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221)
	at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)


When I try and clone the repo with https, I now get the following error:
!MESSAGE When trying to open a connection to https://192.168.101.130:8443/r/test/1216test.git/info/lfs/objects/batch the server responded with an error code. rc=401
!STACK 0
org.eclipse.jgit.api.errors.JGitInternalException: When trying to open a connection to https://192.168.101.130:8443/r/test/1216test.git/info/lfs/objects/batch the server responded with an error code. rc=401
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:215)
	at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:194)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:490)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$6.run(AbstractGitCloneWizard.java:464)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.io.IOException: When trying to open a connection to https://192.168.101.130:8443/r/test/1216test.git/info/lfs/objects/batch the server responded with an error code. rc=401
	at org.eclipse.jgit.lfs.SmudgeFilter.downloadLfsResource(SmudgeFilter.java:150)
	at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:105)
	at org.eclipse.jgit.lfs.SmudgeFilter.<init>(SmudgeFilter.java:91)
	at org.eclipse.jgit.attributes.FilterCommandRegistry.createFilterCommand(FilterCommandRegistry.java:115)
	at org.eclipse.jgit.dircache.DirCacheCheckout.runBuiltinFilterCommand(DirCacheCheckout.java:1629)
	at org.eclipse.jgit.dircache.DirCacheCheckout.getContent(DirCacheCheckout.java:1574)
	at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1487)
	at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:563)
	at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:467)
	at org.eclipse.jgit.api.CloneCommand.checkout(CloneCommand.java:385)
	at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:212)
	... 4 more


Thank you for your help!
  • Attachment: .log
    (Size: 17.03KB, Downloaded 76 times)
Re: Unable to clone repo in ssh or https in Eclipse(2021-12) [message #1849153 is a reply to message #1849135] Wed, 05 January 2022 16:42 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
For SSH: try disabling the new SSH agent integration. (In the main Git preferences.) If that agent contains an RSA key not appropriate for logging in at the server, and you use some other key type for actually logging in (e.g., ed25519), Apache MINA sshd unfortunately has a bug that may result in such symptoms ("No more authentication methods available") if the server also uses Apache MINA sshd (which Gerrit does, and the URLs in your post look like a Gerrit URLs with the 29418 port or the "/r/"). With an OpenSSH ssh server, you'd get the "Supplied key is not a RSAPrivateKey" exception message. See upstream bug SSHD-1231. If switching off using an SSH agent helps, the problem can also be avoided selectively per host by adding "IdentitiesOnly yes" to the host config in ~/.ssh/config.

For HTTP(S): this looks like bug 575780, for which there is a fix pending.

[Updated on: Wed, 05 January 2022 23:39]

Report message to a moderator

Re: Unable to clone repo in ssh or https in Eclipse(2021-12) [message #1849170 is a reply to message #1849153] Thu, 06 January 2022 03:10 Go to previous messageGo to next message
xiao chuncheng is currently offline xiao chunchengFriend
Messages: 2
Registered: January 2022
Junior Member
thank you for your reply!I will try on ssh, according to your suggestion.
Re: Unable to clone repo in ssh or https in Eclipse(2021-12) [message #1849192 is a reply to message #1849170] Thu, 06 January 2022 20:34 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
I just remembered that we have a bug for this SSH problem: bug 577545. This should be fixed in EGit nightly now. EGit nightly can be installed from its p2 update site.

This SSH problem is also documented at

with work-arounds.
Previous Topic:Using jgit for help
Next Topic:Git Staging view not updating on adding/removing files to/from the index
Goto Forum:
  


Current Time: Thu Apr 25 23:13:13 GMT 2024

Powered by FUDForum. Page generated in 0.03996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top