Egit unable to clone shared repo [message #871314] |
Fri, 11 May 2012 17:40  |
Eclipse User |
|
|
|
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 #871655 is a reply to message #871633] |
Mon, 14 May 2012 12:23   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05339 seconds