Skip to content

git clone "error: RPC failed; curl 56 Failure when receiving data from the peer"  #5265

@Balkoth

Description

@Balkoth
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options

git version 2.47.0.windows.2
cpu: x86_64
built from commit: 1f8a83cba6e88fad4b881885e64cfb89458e3653
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.10.1
OpenSSL: OpenSSL 3.2.3 3 Sep 2024
zlib: 1.3.1
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.19045.5011]
(c) Microsoft Corporation. Alle Rechte vorbehalten.
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: VisualStudioCode
Custom Editor Path: 
Default Branch Option:  
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: ConHost
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Enabled
Enable FSMonitor: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Repository is hosted on a Server with git-http-backend.exe

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Bash/CMD

git clone https://server.company.de/Repository.git
  • What did you expect to occur after running these commands?

Cloning without errors.

  • What actually happened instead?
Cloning into 'Repository'...
remote: Enumerating objects: 19174, done.
remote: Counting objects: 100% (19174/19174), done.
remote: Compressing objects: 100% (2168/2168), done.
error: RPC failed; curl 56 Failure when receiving data from the peer
remote: Total 19174 (delta 18267), reused 17491 (delta 16998), pack-reused 0 (from 0)
Receiving objects: 100% (19174/19174), 6.83 MiB | 4.74 MiB/s, done.
Resolving deltas: 100% (18267/18267), done.
Updating files: 100% (2589/2589), done.

I don't know where to start because the error message is unhelpful.

Randomly setting

   [http]
       postBuffer = 524288000

on the client and server has had no effect.

Setting GIT_HTTP_MAX_REQUEST_BUFFER to 100M from default 10M has no effect.

GIT_CURL_VERBOSE=1 does not reveal any helpful information to me.

A shallow clone works without error:

$ git clone --depth=1 https://server.company.de/Repository.git
Cloning into 'Repository'...
remote: Enumerating objects: 2630, done.
remote: Counting objects: 100% (2630/2630), done.
remote: Compressing objects: 100% (2294/2294), done.
remote: Total 2630 (delta 2369), reused 388 (delta 334), pack-reused 0 (from 0)
Receiving objects: 100% (2630/2630), 1.48 MiB | 21.72 MiB/s, done.
Resolving deltas: 100% (2369/2369), done.
Updating files: 100% (2589/2589), done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions