English 中文(简体)
无法按到 ssh 的远程 git 重写, 无法按住“ 写对象: 11% ”
原标题:Cannot push to remote git repo over ssh, stuck at "Writing objects: 11%"

尝试在“ 写字对象” 时按键挂起时, 我遇到一个问题。 这不是我在别处看到的 Windows 和 git- damon 的常见情景。 这是 Linux 到 Linux, 使用 ssh 。 在客户端和服务器上, git 版本为 1.7. 8. 6 。

我试过做以下工作:

  • Create a local empty repo and push to that -- works fine
  • Pull from local repo to local repo -- works fine
  • Clone the remote repo to the local machine -- works fine
  • git fsck and git gc on both server and client repos
  • Push to pre-existing remote repo -- hangs writing objects at 11%
  • Create empty remote repo and push to that -- hangs writing objects at 2%

可以设置一个 env 变量,使 git 生成调试信息。那里没有什么用处。

我和研究中心里的人谈了很久,我试着去勾引它。我们一无所获。有谁能帮我弄清楚出了什么问题吗?

谢谢!

更新: 根据某人的建议, 我做了一个 < code> storcece - F , 它会卡在子进程的一个选择上 。 我提供整个跟踪, 但书桌交换没有上传的途径 。 总之, 这里有相关的部分 :

[pid 14414] getsockopt(3, SOL_SOCKET, SO_RCVBUF, [87872], [4]) = 0^M
[pid 14414] select(7, [3 4], [3], NULL, NULL) = 2 (in [4], out [3])^M
[pid 14414] read(4,  <unfinished ...>^M
[pid 14433] <... write resumed> )       = 8192^M
[pid 14433] write(1, "26236237265234
332W26271.250271W34250N34*341247R21177\Dq232721127025"..., 8192) = 8192^M
[pid 14433] write(1, "Y343}z36731y321)254236na274347*253247264d252133642433312422363222U3246"..., 8192 <unfinished ...>^M
[pid 14414] <... read resumed> "t277177276361377327U361Ref347300273255}E3632277312p356F335U345336250273"..., 16384) = 16384^M
[pid 14414] write(3, "210y
202303`222m216177x 354216Y322n232l27323721435232
261r31134735623626"..., 16432) = 16432^M
[pid 14414] getsockopt(3, SOL_SOCKET, SO_RCVBUF, [87872], [4]) = 0^M
[pid 14414] select(7, [3], [3], NULL, NULL) = 1 (out [3])^M
[pid 14414] write(3, "v26735533257332330326233260;223212z33321321 1207366"f25337305924206C4"..., 5504) = 5504^M
[pid 14414] getsockopt(3, SOL_SOCKET, SO_RCVBUF, [87872], [4]) = 0^M
[pid 14414] select(7, [3], [], NULL, NULL <unfinished ...>^M
[pid 14433] <... write resumed> )       = ? ERESTARTSYS (To be restarted if SA_RESTART is set)^M
[pid 14433] --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_value={int=1, ptr=0x1}} ---^M
[pid 14433] rt_sigreturn()              = 1^M
[pid 14433] write(1, "Y343}z36731y321)254236na274347*253247264d252133642433312422363222U3246"..., 8192) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)^M
[pid 14433] --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_value={int=1, ptr=0x1}} ---^M
[pid 14433] rt_sigreturn()              = 1^M
[pid 14433] write(1, "Y343}z36731y321)254236na274347*253247264d252133642433312422363222U3246"..., 8192) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)^M
[pid 14433] --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_value={int=1, ptr=0x1}} ---^M
[pid 14433] rt_sigreturn()              = 1^M
[pid 14433] write(1, "Y343}z36731y321)254236na274347*253247264d252133642433312422363222U3246"..., 8192) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)^M
[pid 14433] --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_value={int=1, ptr=0x1}} ---^M
[pid 14433] rt_sigreturn()              = 1^M
最佳回答

问题就是一个问题。最近的一个版本打破了某种东西,在大量转账时它就会停顿下来。有一个工作替代办法。

修正是要在 sshd_ config 中设置“ TcpRcvBufPolll no ” 。

http://forums.gendo.org/viewtop-p-7036250.html

问题回答

服务器上有什么问题吗?

之后,我检查无线码(df-i)。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签