git - EGIT 说 Read timed out after 30,000 ms

标签 git egit

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

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

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

请查看屏幕截图以获得更清晰的想法。 enter image description here

更新: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$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

谁能帮我解决这个问题? 提前致谢!!

最佳答案

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

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

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

关于git - EGIT 说 Read timed out after 30,000 ms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26740204/

相关文章:

git - 如何重用git中的分支?

git - merge 操作错误。我该如何修复它?

git - 使用 'git pull' 与 'git checkout -f' 进行网站部署

git - 如何在 git 中获取今天提交的总行数?

eclipse - 在 Eclipse 中将 putty 的页面与 egit 一起使用

git - Egit ssh 更改推 pull

java - JGIT pull NoHeadException

java - Jgit-如何使用 Jgit 获取两个日期之间的 merge 提交列表?

eclipse - 如何删除 eGit 中的远程标签?

eclipse - 在使用存储库时,我是否正确使用了 EGit 和 Eclipse?