GIT in OpenShift Build fails with "fatal: index-pack failed"

Solution Verified - Updated -

Issue

  • When running a build on OpenShift Container Platform, the git clone command fails with the following error:

    Cloning "ssh://git@git.example.com:8888/myexample/example.git" ...
    error: Connection to git.example.com closed by remote host.
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    
  • git clone fails for a large repository (>10GB) with fatal: index-pack failed and fatal: early EOF.

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content