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 不足導(dǎo)致的总棵,因為原來出現(xiàn)過這個錯誤,但是已經(jīng)配置過了改含,不應(yīng)該還有問題
http {
include mime.types;
include conf.d/*.conf; #包含多個配置文件
default_type application/octet-stream;
client_max_body_size 100M;
}
百度發(fā)現(xiàn)很多人提供的是如下解決方案情龄,但是仍然有問題
git config --global http.postBuffer 157286400
后來在第二層nginx錯誤日志里發(fā)現(xiàn)可能是大文件導(dǎo)致的
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
查看后發(fā)現(xiàn)有一個日志文件26g,清空后就好了
————————————————
希望后人珍惜時間,少走彎路骤视,享受生活鞍爱。
VKOOY