2014-11-04 131 views
12

我试图通过http在本地dest克隆远程repo。 即时消息使用egit日食月神。EGIT说30000毫秒后读取超时

但我总是得到错误读取后超时30,000ms。

我知道http是正确的协议,我的用户名passsword是正确的,但仍然出现多次这个问题。

请参阅屏幕截图以获取更清晰的想法。 enter image description here

UPDDATE:2014年11月5日 当我看到日食错误日志的位置.metadata /日志 我看到了以下错误消息.....我觉得它说同样的....但仍在这里加入的情况下,如果它可以帮助解决这个问题.... 错误消息

!ENTRY org.eclipse.egit.ui 4 0 2014-11-05 19:09:13.827 
!MESSAGE Read timed out after 30,000 ms 
!STACK 0 

org.eclipse.jgit.api.errors.TransportException: Read timed out after 30,000 ms 
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) 
    at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178) 
    at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) 
    at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:156) 
    at 

org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:433) 
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:426) 
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$6.run(AbstractGitCloneWizard.java:405) 
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 

Caused by: org.eclipse.jgit.errors.TransportException: Read timed out after 30,000 ms 
    at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:370) 
    at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:780) 
    at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:301) 
    at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:291) 
    at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:247) 
    at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:160) 
    at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122) 
    at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1111) 
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) 
    ... 7 more 
Caused by: java.io.InterruptedIOException: Read timed out after 30,000 ms 
    at org.eclipse.jgit.util.io.TimeoutInputStream.readTimedOut(TimeoutInputStream.java:141) 
    at org.eclipse.jgit.util.io.TimeoutInputStream.read(TimeoutInputStream.java:114) 
    at org.eclipse.jgit.util.IO.readFully(IO.java:246) 
    at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186) 
    at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138) 
    at org.eclipse.jgit.transport.PacketLineIn.readACK(PacketLineIn.java:102) 
    at org.eclipse.jgit.transport.BasePackFetchConnection.negotiate(BasePackFetchConnection.java:655) 
    at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:356) 
    ... 15 more 

任何人可以帮助我解决这个概率? 在此先感谢!

+0

这可以通过[禁用SSL验证](http://stackoverflow.com/a/21909036/3991344)来解决。 – Pokechu22 2014-11-04 16:35:01

+0

@ Pokechu22我很可疑,因为他的存储库没有通过https访问。不过,它可能会重定向到https。 – ZoogieZork 2014-11-04 17:13:11

+1

您是否尝试过使用其他git客户端克隆存储库?这至少会缩小它是否是EGit问题还是远程存储库的问题。 – ZoogieZork 2014-11-04 17:15:07

回答

4

去选项窗口 - >首选项 - > Java的 展开Java和调试搜索调试 更改调试器超时30000

再次尝试克隆,这是所有。

28

我有类似的问题与巨大的存储库。解决的办法是设置一个快速变化:

窗口 - >首选项 - >团队 - > GIT中 - >远程连接

其中 “远程连接超时(秒)” 被设定为30 [秒]。 (30000ms)。将其设置得更高。

0

EGit-ConfigureFetch试图在Eclipse 4.5.2火星以下积极的成果:

  1. 右键单击您的远程仓库。
  2. 选择配置提取...
  3. 删除默认的Ref映射,然后单击高级。
  4. 选择您想要签出的特定分支并点击添加规格。
  5. 根据您的偏好选中/取消选中强制更新复选框。
  6. 选择单选按钮从不提取标签。
  7. 保存您的抓取配置并重试。