diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-05 00:07:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-05 00:07:50 +0000 |
commit | 54cbcea92909e69248abc9e6b92c7d14db3308a5 (patch) | |
tree | 1276f1c57b5ab1064db7197c2d28a8837d68d02d /doc/topics/git | |
parent | 71221554dd9ddf30f73035c89f78164e001aa96d (diff) | |
download | gitlab-ce-54cbcea92909e69248abc9e6b92c7d14db3308a5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/topics/git')
-rw-r--r-- | doc/topics/git/troubleshooting_git.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/topics/git/troubleshooting_git.md b/doc/topics/git/troubleshooting_git.md index 5391f6e5ad6..d4d559c9483 100644 --- a/doc/topics/git/troubleshooting_git.md +++ b/doc/topics/git/troubleshooting_git.md @@ -130,5 +130,25 @@ remote: Calculating new repository size... (cancelled after 729ms) This could be used to further investigate what operation is performing poorly and provide GitLab with more information on how to improve the service. +## `git clone` over HTTP fails with `transfer closed with outstanding read data remaining` error + +If the buffer size is lower than what is allowed in the request, the action will fail with an error similar to the one below: + +```text +error: RPC failed; curl 18 transfer closed with outstanding read data remaining +fatal: The remote end hung up unexpectedly +fatal: early EOF +fatal: index-pack failed +``` + +This can be fixed by increasing the existing `http.postBuffer` value to one greater than the repository size. For example, if `git clone` fails when cloning a 500M repository, the solution will be to set `http.postBuffer` to `524288000` so that the request only starts buffering after the first 524288000 bytes. + +NOTE: **Note:** +The default value of `http.postBuffer`, 1 MiB, is applied if the setting is not configured. + +```sh +git config http.postBuffer 524288000 +``` + [SSH troubleshooting]: ../../ssh/README.md#troubleshooting "SSH Troubleshooting" [Broken-Pipe]: https://stackoverflow.com/questions/19120120/broken-pipe-when-pushing-to-git-repository/36971469#36971469 "StackOverflow: 'Broken pipe when pushing to Git repository'" |