我试图在我的本地目录中通过http克隆一个远程仓库。 我在eclipse luna上使用egit。
但我总是会在30,000ms后读取错误。
我知道http是正确的协议,我的用户名密码是正确的,但仍然会出现多次此问题。
请参阅截图以获得更清晰的想法。
更新: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
任何人都可以帮我解决这个问题吗? 提前谢谢!!
答案 0 :(得分:32)
我有大型存储库的类似问题。解决方案是快速更改设置:
窗口 - >偏好 - >团队 - > Git - >远程连接
其中"远程连接超时(秒)"设定为30 [s]。 (30000ms)。把它设置得更高。
答案 1 :(得分:5)
转到选项窗口 - >首选项> java的 展开java并搜索调试 在debug中将调试器超时更改为30000。
再次尝试克隆,就是这样。
答案 2 :(得分:0)
EGit-ConfigureFetch在Eclipse Mars 4.5.2中尝试了以下结果:
答案 3 :(得分:0)