Jump to content
IPS Community Suite 简体中文
Sign in to follow this  
ipscn

error: unable to rewind rpc post data - try increasing http.postBuffer

Recommended Posts

本文记录将项目提交到局域网内的 git 服务器上时遇到的一个问题的解决方案。

提交一个大点儿的 repo 时,遇到如下错误

error: unable to rewind rpc post data - try increasing http.postBuffer

加大 git 的 postBuffer, 这里改为 50MB,应据实际情况更改

 git config http.postBuffer 524288000

全局设置也相应的加大

git config --global http.postBuffer 52428800

然后重试,遇到 git 服务器上的 Nginx 返回的如下错误

efrror: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

调整服务器的 Nginx 设置

把 client_max_body_size 设置为 50M,重载 Nginx, 再次提交,问题解决了。

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×