Sourcetree技巧之:gite提交HTTP 500 curl 22 The requested URL returned error: 500

Total 11 (delta 7), reused 0 (delta 0)
error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

一开始我以为是因为nginx的client_max_body_size 不足导致的,因为原来出现过这个错误,但是已经配置过了,不应该还有问题

http {
    include       mime.types;
    include       conf.d/*.conf; #包含多个配置文件
    default_type  application/octet-stream;
    client_max_body_size 100M;
}

百度发现很多人提供的是如下解决方案,但是仍然有问题

git config --global http.postBuffer 157286400

后来在第二层nginx错误日志里发现可能是大文件导致的


2023/05/06 09:21:56 [alert] 30890#0: *5580828 write() to "/usr/local/nginx/logs/access.log" failed (28: No space left on device) while logging request, client: xxx.xxx.xx.xxx, server: xx.xxx.xxxxxx.com, request: "GET /xxxx/xxx-xxxx.git/info/refs?service=git-upload-pack HTTP/1.0", upstream: "http://192.168.0.126:3000/xxx/xxx-xxxxx.git/info/refs?service=git-upload-pack", host: "xxx.xxx.xxxxxxx.com"

ll -h

查看后发现有一个日志文件26g,清空后就好了


————————————————

希望后人珍惜时间,少走弯路,享受生活。


VKOOY

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容