2014-11-04 24 views
12

Tôi đang cố gắng sao chép một repo từ xa qua http ở địa phương của tôi. im sử dụng egit trên eclipse luna.EGIT nói Đã hết thời gian chờ sau 30.000 ms

nhưng luôn nhận được lỗi đọc hết thời gian chờ sau 30.000 mili giây.

Tôi biết http là giao thức chính xác cho nó, mật khẩu tên người dùng của tôi là chính xác nhưng vẫn còn vấn đề này xảy ra nhiều lần.

hãy xem ảnh chụp màn hình để có ý tưởng rõ ràng hơn. enter image description here

UPDDATE: 2014/11/05 Khi tôi thấy log lỗi nhật thực tại địa điểm .metadata/log tôi thấy sau thông báo lỗi ..... tôi nghĩ rằng nó nói cùng .... nhưng vẫn thêm ở đây trong trường hợp nếu nó có thể giúp giải quyết vấn đề này .... thông báo lỗi là

!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 

ai có thể giúp tôi giải quyết prob này? cảm ơn trước !!

+0

Điều này có thể được giải quyết bằng cách tắt [Xác minh SSL] (http://stackoverflow.com/a/21909036/3991344). – Pokechu22

+0

@ Pokechu22 Tôi không rõ ràng, cho rằng kho lưu trữ của anh ấy không được truy cập qua https. Tuy nhiên, nó có thể chuyển hướng đến https. – ZoogieZork

+1

Bạn đã cố gắng sao chép kho lưu trữ bằng cách sử dụng một ứng dụng khách git khác? Điều đó sẽ ít nhất thu hẹp cho dù đó là một vấn đề EGIT hoặc một vấn đề với kho lưu trữ từ xa của bạn. – ZoogieZork

Trả lời

4

đi đến cửa sổ tùy chọn -> sở thích-> java mở rộng java và tìm kiếm debug trong debug thay đổi thời gian chờ debugger cho 30000.

Hãy thử một lần nữa để sao chép và đó là tất cả.

28

Tôi gặp sự cố tương tự với kho lưu trữ lớn. Giải pháp là một sự thay đổi nhanh chóng các thiết lập:

Window -> Preferences -> Team -> Git -> kết nối từ xa

nơi "kết nối timeout từ xa (giây)" đã được thiết lập để 30 [s ]. (30000 mili giây). Đặt nó cao hơn.

0

EGit-ConfigureFetch thử những điều sau đây trong Eclipse Mars 4.5.2 với kết quả tích cực:

  1. Nhấp chuột phải vào Repository từ xa của bạn.
  2. Chọn Định cấu hình tìm nạp ...
  3. Xóa ánh xạ Ref mặc định và nhấp vào Nâng cao.
  4. Chọn chi nhánh cụ thể mà bạn muốn thanh toán và nhấp vào Thêm thông số.
  5. Chọn/Bỏ chọn hộp kiểm Cập nhật Force tùy thuộc vào tùy chọn của bạn.
  6. Chọn nút radio Không bao giờ tìm nạp thẻ.
  7. Lưu cấu hình tìm nạp của bạn và thử lại.
Các vấn đề liên quan