Git 为什么GAE repo会被绞死?
我的GCE git repo工作正常,然后我尝试使用Git 为什么GAE repo会被绞死?,git,google-app-engine,google-compute-engine,Git,Google App Engine,Google Compute Engine,我的GCE git repo工作正常,然后我尝试使用appcfg.py update,但由于文件太多(未签入git的文件)而失败 当我再次推git时,它挂起,然后说RPC调用失败。输出如下: Pushing to https://source.developers.google.com/p/my-project-name/ Counting objects: 660, done. Delta compression using up to 4 threads. Compressing objec
appcfg.py update
,但由于文件太多(未签入git的文件)而失败
当我再次推git时,它挂起,然后说RPC调用失败。输出如下:
Pushing to https://source.developers.google.com/p/my-project-name/
Counting objects: 660, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (595/595), done.
POST git-receive-pack (chunked)
Writing objects: 100% (660/660), 1.30 MiB | 650.00 KiB/s, done.
Total 660 (delta 96), reused 10 (delta 3)
error: RPC failed; result=22, HTTP code = 502
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
更新
现在,输出表明RPC故障略有不同:
Pushing to https://source.developers.google.com/p/<redacted>/
Counting objects: 660, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (595/595), done.
POST git-receive-pack (chunked)
Writing objects: 100% (660/660), 1.30 MiB | 934.00 KiB/s, done.
Total 660 (delta 96), reused 10 (delta 3)
Unable to rewind rpc post data - try increasing http.postBuffer
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
推送至https://source.developers.google.com/p//
计数对象:660,完成。
增量压缩最多使用4个线程。
压缩对象:100%(595/595),完成。
后git接收包(分块)
写入对象:100%(660/660),1.30 MiB | 934.00 KiB/s,完成。
总计660(增量96),重复使用10(增量3)
无法倒带rpc post数据-请尝试增加http.postBuffer
错误:RPC失败;结果=56,HTTP代码=0
致命:远程端意外挂起
致命:远程端意外挂起
一切都是最新的
如中所述,问题是因为文件大小(或总大小)大于预期值,并生成错误
在GAE中,最多可以上载10000个文件到应用程序。这似乎不是原因,除非你已经有9601了
可能您可以按照中的说明尝试增加http.postBuffer的大小:
我发现问题可能是文件太大。我有一个更新
即使我成功地推到了那一步,那也不会推
指向提交中只有一个文件,但碰巧是
160万
因此,我添加了以下配置更改
git config http.postBuffer 524288000
增加http后缓冲区大小解决了我的问题 要解决这个问题,您必须转到要提交的git克隆文件夹的路径,然后执行下面的命令 git config http.postBuffer 324244000