Crime scene
When using git to push the local code to the remote warehouse, the push fails (using the HTTP protocol). The error message is as follows:
$ git push
Enumerating objects: 3383, done.
Counting objects: 100% (3383/3383), done.
Delta compression using up to 8 threads
Compressing objects: 100% (1216/1216), done.
Writing objects: 100% (3383/3383), 6.96 MiB | 81.92 MiB/s, done.
Total 3383 (delta 2303), reused 3007 (delta 2034), pack-reused 0
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
Solution:
The data size of this push is 17m.
1. To solve the problem from the perspective of GIT, you can add the size of http.postBuffer
git config http.postBuffer 524288000
2. Because my Gitlab service is using Nginx as a domain proxy, it is possible that the client_max_body_size of nginx is limited and can be adjusted as follows.
client_max_body_size 1024m;
Read More:
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- How to Solve Git clone Error: error: RPC failed; result=35, HTTP code = 0
- [How to Solve] Git Push stuck in ‘writing objects’
- Git error: unpack failed: error Missing tree [How to Solve]
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Git Clone RPC failed;curl 18 transfer closed with outstanding read data remaining
- Common configuration methods of nginx
- CentOS Yum error: cannot retrieve repository metadata (repomd.xml) for repository:
- Vector series in actual C + +_ To_ fit()
- [Solved] error: RPC failed; result=35, HTTP code = 0
- Github Clone Failed SSL_ERROR_SYSCALL in connection to github.com:443
- [Solved] Gitlab Error: gitlab-ctl reconfigure Error: STDERR: initdb: error: invalid locale settings; check LANG and L
- [Solved] Git Clone Failed Error: 4069 bytes of body are still expected
- Git Error Resolution: errno:10054 Time out
- [Solved] gnutls_handshake() failed: The TLS connection was non-properly terminated
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- Push to origin/Master was rejected [How to Solve]
- Solve git upload file error [rejected] master -> master (fetch first) error: failed to push some refs to ‘
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]