gitea / gogsタイムズRPCは、プッシュの問題に操作を失敗しました

オリジナル投稿:https://www.chenxublog.com/2019/05/26/gitea-gogs-push-rpc-failed.html

トランプ最近、輸出管理に従事し、GitHubには、上記のGitHubの上でそのプロジェクトのすべてをミラーリングするgiteaを構築するために自分で、自分のコードのうちのいずれかの問題を防ぐために、対応する規定を更新します

百Mサイズの倉庫を押すときには、このエラーを報告しました:

git.exe push --progress "2" master:master

Enumerating objects: 768, done.
Counting objects: 100% (768/768), done.
Delta compression using up to 4 threads
Compressing objects: 100% (455/455), done.
Writing objects: 100% (768/768), 57.69 MiB | 84.16 MiB/s, done.
Total 768 (delta 316), reused 708 (delta 290)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
Everything up-to-date


git did not exit cleanly (exit code 1) (1938 ms @ 2019/5/26 22:08:16)

ビング検索、オンライン一般的な解決策は、サイズhttp.postBuffer、ない効果を変更することです

その後、GitHubの上で、私はこれを見つけた:https://github.com/go-gitea/gitea/issues/5805#issuecomment-477523202

nginxのは、単純にサイズ制限は(デフォルト)、あなたは大きな変化を使用することができ小さすぎるアップロードされています。

server
{
    listen 80;
    listen 443 ssl http2;
    server_name git.papapoi.com;
    client_max_body_size 100M; # Push large objects to gitea
    index index.php index.html index.htm default.php default.htm default.html;
    root /www/wwwroot/git.papapoi.com;
    
    #其他设置.....
}

問題の完全な解決策

おすすめ

転載: www.cnblogs.com/chenxuuu/p/11434025.html