Ste*_*ano 5 git post hang git-fetch bonobo
看似随机,我们的本地存储库不再能够从Bonobo服务器获取。当我们尝试在本地获取时,最大的远程回购(大约4GB)会在不同的时间和不同的人发生。起初只是每隔几个月,但现在频率越来越高,并且今天同一时间发生了很多本地存储库。目前,我们正在通过移动工作.git文件夹来解决该问题。
它会快速打印一些POST git-upload-pack (gzip X to Y bytes),然后挂半小时到一个小时。
如果我从对象目录中删除了一个打包文件,它会抱怨丢失的东西,然后开始正确地进行提取,但仅限于此git-upload-pack。
我已经尝试过repack并且gc以各种方式都没有效果。我尝试将服务器和客户端上的git从1.8.4升级到1.9。
cloneing也有同样的问题,但是升级Bonobo可以解决这个问题,即使它与git的版本相同。昨天一个新克隆的回购正在运行,但今天却存在相同的问题。
有趣的是,我们里面有很多dll和pdb。它已经使用了一年,并且是使用git-svn从SVN存储库中导入的。
这是痕迹
$ GIT_TRACE=1 git fetch -v
trace: built-in: git 'fetch' '-v'
trace: run_command: 'git-remote-https' 'origin' 'https://xxx
/yyy.git'
trace: run_command: '"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore
/git-credential-winstore.exe" get'
trace: run_command: '"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore
/git-credential-winstore.exe" store'
trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet'
trace: run_command: 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--in
clude-tag' '--thin' 'https://xxx/yyy.git/'
trace: built-in: git 'fetch-pack' '--stateless-rpc' '--stdin' '--lock-pack' '--i
nclude-tag' '--thin' 'https://xxx/yyy.git/'
POST git-upload-pack (gzip 2057 to 1096 bytes)
POST git-upload-pack (gzip 2307 to 1222 bytes)
POST git-upload-pack (gzip 3657 to 1914 bytes)
POST git-upload-pack (gzip 6207 to 3192 bytes)
POST git-upload-pack (gzip 12607 to 6374 bytes)
Run Code Online (Sandbox Code Playgroud)
谷歌搜索显示有些人有此问题,但没有提及(升级bo黑猩猩等)起作用。
git在内部使用curl,因此请使用以下配置设置进行调试:
客户端配置:
git config --global http.postBuffer 524288000
Run Code Online (Sandbox Code Playgroud)
客户端环境变量:
服务器配置:
<requestLimits maxAllowedContentLength=[期望尺寸] >中web.config; 大小可能是1073741824<httpRuntime maxRequestLength=[期望尺寸] >中web.config; 尝试值1024000此外,以下设置可以自动中止慢速传输:
如果HTTP传输速度小于GIT_HTTP_LOW_SPEED_LIMIT的时间超过GIT_HTTP_LOW_SPEED_TIME,则传输将中止。
参考文献
| 归档时间: |
|
| 查看次数: |
5485 次 |
| 最近记录: |