Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Egit unable to clone shared repo
Egit unable to clone shared repo [message #871314] Fri, 11 May 2012 21:40 Go to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
I've recently been introduced to Git and would like to use EGit within Flashbuilder 4.6.

I've installed the Indigo version of EGit and was able to clone the jface snippit git repository from the tutorial below.

h t t p ://www.vogella.com/articles/EGit/article.html

Unfortunately, when I try to clone the repository I've created on my own personal server I get the error

"Cannot list the available branches"
"Reason Exception caught during execution of ls-remote comand"

I've hosted the repository on Apache HTTPD 2.2 with basic auth and ssl required. I'm able to clone from the command line but not from egit.

I believe the problem is I'm using a self-signed certificate which EGit is failing on. For the command line version of Git I had to put "sslverify = false" in the .gitconfig. Is there an equivalent setting in EGit?
Re: Egit unable to clone shared repo [message #871628 is a reply to message #871314] Mon, 14 May 2012 15:05 Go to previous messageGo to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
If I disable ssl and connect via unecrypted http the plugin works great. Any suggestions on where the equivalent to git's sslverify=false option can be configured in egit would be apprieciated.

[Updated on: Mon, 14 May 2012 15:19]

Report message to a moderator

Re: Egit unable to clone shared repo [message #871633 is a reply to message #871628] Mon, 14 May 2012 15:23 Go to previous messageGo to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
I found this post that relates to the problem I am having

h t t p ://www.eclipse.org/forums/index.php/m/759400/

I previously added sslVerify=false to my .gitConfig but I verified through the EGit preferences

Window->Preferences->Team->Git->Configuration

that the correct value is set on the "User Settings" -> http -> sslVerify = false. Unfortunately, I still get the error above when I try to connect with https but not when I use standard http.
Re: Egit unable to clone shared repo [message #871655 is a reply to message #871633] Mon, 14 May 2012 16:23 Go to previous messageGo to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
Here what I'm seeing in the eclipse log

!SESSION 2012-05-11 17:20:19.199 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 2 0 2012-05-11 17:20:24.351
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 2 0 2012-05-11 17:20:24.351
!MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'

!ENTRY com.adobe.flexbuilder.ui 4 1 2012-05-11 17:20:27.797
!MESSAGE Product = null version = 460 edition = stnd
!SESSION 2012-05-14 10:55:56.861 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 2 0 2012-05-14 10:56:04.269
!MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
!SUBENTRY 1 org.eclipse.ui 2 0 2012-05-14 10:56:04.269
!MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'

!ENTRY com.adobe.flexbuilder.ui 4 1 2012-05-14 10:56:10.257
!MESSAGE Product = null version = 460 edition = stnd

!ENTRY org.eclipse.egit.ui 4 0 2012-05-14 11:02:29.198
!MESSAGE Invalid thread access
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:359)
	at org.eclipse.swt.widgets.Text.getText(Text.java:1117)
	at org.eclipse.egit.ui.UIUtils$2.updateProposals(UIUtils.java:291)
	at org.eclipse.egit.ui.internal.components.RepositorySelectionPage.getGitRepositoryInfo(RepositorySelectionPage.java:1018)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:433)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:424)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$5.run(AbstractGitCloneWizard.java:386)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

!ENTRY org.eclipse.egit.ui 4 0 2012-05-14 11:26:50.679
!MESSAGE Invalid thread access
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.SWT.error(SWT.java:4168)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:359)
	at org.eclipse.swt.widgets.Text.getText(Text.java:1117)
	at org.eclipse.egit.ui.UIUtils$2.updateProposals(UIUtils.java:291)
	at org.eclipse.egit.ui.internal.components.RepositorySelectionPage.getGitRepositoryInfo(RepositorySelectionPage.java:1018)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:433)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:424)
	at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$5.run(AbstractGitCloneWizard.java:386)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)




When I try initializing the repo with standard http (i.e no ssl) then modifying the repository to use ssl and push a change up via egit this I see this in the log

!ENTRY org.eclipse.egit.core 4 0 2012-05-14 11:29:20.646
!MESSAGE An exception occurred during push on URI h t t p s://fkhan.no-ip.org/git/repo.git: An internal Exception occurred during push: h t t p s://fkhan.no-ip.org/git/repo.git: cannot open git-receive-pack
!STACK 0
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
	at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:227)
	at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:145)
	at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:202)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: h t t p s://fkhan.no-ip.org/git/repo.git: cannot open git-receive-pack
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:466)
	at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:365)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1120)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:152)
	... 4 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be <fkhan.no-ip.org>
	at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown Source)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
	at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:167)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:429)
	... 8 more

!ENTRY org.eclipse.egit.core 4 0 2012-05-14 11:31:39.016
!MESSAGE An exception occurred during push on URI h t t p s://fkhan.no-ip.org/git/repo.git: An internal Exception occurred during push: h t t p s://fkhan.no-ip.org/git/repo.git: cannot open git-receive-pack
!STACK 0
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
	at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:227)
	at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:145)
	at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:202)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.TransportException: h t t p s://fkhan.no-ip.org/git/repo.git: cannot open git-receive-pack
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:466)
	at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:365)
	at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
	at org.eclipse.jgit.transport.Transport.push(Transport.java:1120)
	at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:152)
	... 4 more
Caused by: java.io.IOException: HTTPS hostname wrong:  should be <fkhan.no-ip.org>
	at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(Unknown Source)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
	at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:167)
	at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:429)
	... 8 more


The push however works if I run git push from the command line. I verifying the remote repo configuration via the "git remote -v" command and the urls are using ssl
Re: Egit unable to clone shared repo [message #871764 is a reply to message #871655] Mon, 14 May 2012 20:20 Go to previous messageGo to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
I am seeing the same behavior with the JEE version of Eclipse

Eclipse Java EE IDE for Web Developers.

Version: Indigo Service Release 1
Build id: 20110916-0149
Re: Egit unable to clone shared repo [message #875618 is a reply to message #871764] Wed, 23 May 2012 03:23 Go to previous messageGo to next message
Peter Antilari is currently offline Peter AntilariFriend
Messages: 1
Registered: May 2012
Junior Member
I have the same problem. I setup my Git config http.sslVerify to false, and can fetch/push from my private repo on the command line but I can only do it w/ http via EGit. Really frustrating. I get the same errors as you. If you have found any solution for this let me know.

I'm running this on
Eclipse for PHP Developers
Version: Helios Service Release 2
Build id: 20110218-0911

with latest version of Egit installed.
Re: Egit unable to clone shared repo [message #875629 is a reply to message #875618] Wed, 23 May 2012 04:06 Go to previous messageGo to next message
Fazle Khan is currently offline Fazle KhanFriend
Messages: 6
Registered: May 2012
Junior Member
Sorry I don't have a fix.
Re: Egit unable to clone shared repo [message #877323 is a reply to message #875629] Sat, 26 May 2012 12:52 Go to previous messageGo to next message
Steve Luo is currently offline Steve LuoFriend
Messages: 3
Registered: April 2012
Junior Member
I'm having the same problem. Any update for this issue?
I'm using JEE with egit 1.3.0.201202151440-r and no matter http.sslverify is set or not, when clone from https, below exception raised:
Cannot list the available branches.
Reason:
Exception caught during execution of ls-remote command



Re: Egit unable to clone shared repo [message #885746 is a reply to message #877323] Wed, 13 June 2012 14:26 Go to previous messageGo to next message
Brian Fincher is currently offline Brian FincherFriend
Messages: 2
Registered: June 2012
Junior Member
Same problem here. Help please!!!
Re: Egit unable to clone shared repo [message #885856 is a reply to message #885746] Wed, 13 June 2012 18:19 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
sslVerify=false works ok for me with EGit 2.0.0.201206130903

As a temporary workaround for 1.3.0 it's very simple to create (and share) Eclipse external launchers to run command-line Git with no-arg invocations of push, fetch and pull on the selected repository. That should be fine for most day-to-day development. It's about as easy as using the Egit Team menu items.

The launcher workaround is no good for clone, since clone requires an argument. Personally I prefer to clone in a shell anyway and then import. For me that's more efficient than using egit clone with its form-filling.
Re: Egit unable to clone shared repo [message #886379 is a reply to message #885856] Thu, 14 June 2012 20:27 Go to previous message
Brian Fincher is currently offline Brian FincherFriend
Messages: 2
Registered: June 2012
Junior Member
Thanks for the tip
Previous Topic:Team ignore function ...
Next Topic:nullpointerexception when trying to push to remote
Goto Forum:
  


Current Time: Mon Dec 22 23:41:10 GMT 2014

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

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