2014-11-04 95 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. 保存您的抓取配置並重試。
相關問題