Git clone issue, clone fails with “Corrupted MAC on input”

随声附和 提交于 2021-02-07 14:20:45

问题


I am trying to set up a new dev machine and I am not able to clone any repos.

remote: Counting objects: 99504, done.
remote: Compressing objects: 100% (22812/22812), done.
Corrupted MAC on input. (93674/99504), 169.15 MiB | 3.06 MiB/s   
Disconnecting: Packet corrupt
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

回答1:


The server is probably straining under too much load. See this post (similar problem but with rsync in stead of git):

The problem was that the origin server had some big load on it, the server was running out of memory and it was swaping a lot (extracted from the top command)




回答2:


This could also be due to a hardware issue. Try troubleshooting your hardware by bypassing any intermediary interfaces (switches, routers, etc) or trying a different NIC.

If it is a hardware issue you may also see problems when accessing large files via other protocols.




回答3:


A git-daemon restart should give a possible solution (it did to me).



来源:https://stackoverflow.com/questions/7366907/git-clone-issue-clone-fails-with-corrupted-mac-on-input

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!