git EGIT 说 30,000 毫秒后读取超时

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26740204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 02:38:23  来源:igfitidea点击:

EGIT saying Read timed out after 30,000 ms

gitegit

提问by adityag

Im trying to clone a remote repo over http in my local dest. im using egit on eclipse luna.

我试图在我的本地目标中通过 http 克隆一个远程仓库。我在 eclipse luna 上使用 egit。

but im always getting error read timed out after 30,000ms.

但我总是在 30,000 毫秒后读取错误超时。

i know http is correct protocol for it, my username passsword is correct but still this problem occuring multiple times.

我知道 http 是正确的协议,我的用户名密码是正确的,但这个问题仍然多次发生。

pls see screenshot for more clear idea. enter image description here

请查看屏幕截图以获得更清晰的想法。 在此处输入图片说明

UPDDATE: 11-5-2014 When i saw eclipse error log at location .metadata/logI saw following error message..... i think it says same.... but still adding here in case if it can help solving this problem.... error message is

更新:11-5-2014 当我在位置.metadata/log看到 eclipse 错误日志时, 我看到了以下错误消息..... 我认为它说的是相同的....问题......错误信息是

!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(AbstractGitCloneWizard.java:426)
    at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.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

can anybody help me to resolve this prob? thanks in advance !!

有人可以帮我解决这个问题吗?提前致谢 !!

回答by Kuba

I had similar problem with huge repository. The solution was a quick change of settings:

我在巨大的存储库中遇到了类似的问题。解决方案是快速更改设置:

Window -> Preferences -> Team -> Git -> Remote connections

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

where "Remote connection timeout (sec)" was set to 30[s]. (30000ms). Set it higher.

其中“远程连接超时(秒)”设置为 30[s]。(30000 毫秒)。把它调高一点。

回答by Juan

go to the option window -> preferences-> java expand java and search debug in debug change the debugger timeout for 30000.

转到选项窗口 -> 首选项 -> java 展开 java 并在 debug 中搜索 debug 将调试器超时更改为 30000。

Try again to clone and that is all.

再次尝试克隆,仅此而已。

回答by Pawan J

EGit-ConfigureFetchTried the following in Eclipse Mars 4.5.2 with positive results:

EGit-ConfigureFetch在 Eclipse Mars 4.5.2 中尝试了以下结果,结果为:

  1. Right click on your Remote Repository.
  2. Select Configure Fetch...
  3. Remove the default Ref mapping and click on Advanced.
  4. Select the specific branch that you want to checkout and Click on Add Spec.
  5. Check/Uncheck Force Update checkbox depending on your preference.
  6. Select the radio button Never fetch Tags.
  7. Save your Fetch Configuration and try again.
  1. 右键单击您的远程存储库。
  2. 选择配置提取...
  3. 删除默认的 Ref 映射并单击高级。
  4. 选择要签出的特定分支,然后单击“添加规范”。
  5. 根据您的喜好选中/取消选中强制更新复选框。
  6. 选择单选按钮从不提取标签。
  7. 保存您的提取配置并重试。