2014-11-05 35 views
0

我的GCE git repo工作正常,然後我試着玩appcfg.py update,並且由於文件過多(沒有簽入git的文件)而失敗。GAE回購爲什麼會掛?

當我再次推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 

回答

1

this other question回答,這個問題是因爲大小文件(或總大小)比預期的大,並生成一個錯誤。

在GAE中,最多可以將10,000個文件上傳到您的應用程序。這似乎不是原因,除非你已經有了9601。

也許你可以按照說明the other question並設法增加http.postBuffer的大小:

我發現,問題可能是較大的文件。我有一個更新 即使我已經成功推動到 點,但不會推動。世界上只有一個在提交的文件,但它正好是 1.6M

所以我增加了以下配置變化

git config http.postBuffer 524288000

0

增加HTTP postbuffer尺寸解決我的問題。

爲了解決這個問題,你必須從你嘗試提交的git克隆文件夾的路徑,然後執行下面的命令。

git config http.postBuffer 324244000