title: error: git-upload-pack died of signal 13
body: <p>I have a GitLab server (6.7.2) in Mac OS X 10.9.2, with git 1.9.2. There are two repositories. One can be cloned successfully, but the other fails as</p>
  
  <pre><code>$ git clone http://*/gamil/gamil.git
  Cloning into 'gamil'...
  remote: Counting objects: 426, done.
  remote: Compressing objects: 100% (375/375), done.
  fatal: The remote end hung up unexpectedly
  fatal: early EOF
  fatal: index-pack failed
  </code></pre>
  
  <p>And I checked <code>unicorn.stderr.log</code> in GitLab and found</p>
  
  <pre><code>I, [2014-04-21T23:03:58.761225 #4929]  INFO -- : master process ready
  I, [2014-04-21T23:03:58.764556 #4940]  INFO -- : worker=0 ready
  I, [2014-04-21T23:03:58.766098 #4941]  INFO -- : worker=1 ready
  error: git-upload-pack died of signal 13
  </code></pre>
  
  <p>What does this error come from? How to fix it? Thanks in advance!</p>
  
  <p><strong>EDIT 1</strong>:</p>
  
  <p>I checked the repository:</p>
  
  <pre><code>$ git fsck
  Checking object directories: 100% (256/256), done.
  Checking objects: 100% (426/426), done.
  </code></pre>
  
  <p>So it seems everything is fine, but can't clone into local computer.</p>
  
  <p><strong>EDIT 2</strong>:</p>
  
  <p>I have updated GitLab to 6.8 with no luck.</p>
  
  <p><strong>EDIT 3</strong>:</p>
  
  <p>I can clone the problematic repository through <code>ssh</code> protocol` as</p>
  
  <pre><code>$ git clone dongli@&lt;...&gt;:gamil
  Cloning into 'gamil'...
  remote: Counting objects: 426, done.
  remote: Compressing objects: 100% (317/317), done.
  remote: Total 426 (delta 89), reused 426 (delta 89)
  Receiving objects: 100% (426/426), 821.19 KiB | 0 bytes/s, done.
  Resolving deltas: 100% (89/89), done.
  Checking connectivity... done.
  </code></pre>
  
  <p><strong>EDIT 4</strong>:</p>
  
  <p>I checked the timeout in <code>unicorn.rb</code>:</p>
  
  <pre><code># nuke workers after 30 seconds instead of 60 seconds (the default)
  timeout 300
  </code></pre>
  
  <p>and the configuration for <code>nginx</code>:</p>
  
  <pre><code># if a file, which is not found in the root folder is requested,
  # then the proxy pass the request to the upsteam (gitlab unicorn)
  location @gitlab {
    proxy_read_timeout 300; # Some requests take more than 30 seconds.
    proxy_connect_timeout 300; # Some requests take more than 30 seconds.
    proxy_redirect     off;
  
    proxy_set_header   X-Forwarded-Proto $scheme;
    proxy_set_header   Host              $http_host;
    proxy_set_header   X-Real-IP         $remote_addr;
    proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
  
    proxy_pass http://gitlab;
  }
  </code></pre>
  
  <p><strong>EDIT 5</strong></p>
  
  <p>I have uploaded the repository to GitHub, and the clone is OK:</p>
  
  <pre><code>$ git clone https://github.com/dongli/GAMIL.git 1
  Cloning into '1'...
  remote: Counting objects: 355, done.
  remote: Compressing objects: 100% (308/308), done.
  remote: Total 355 (delta 35), reused 355 (delta 35)
  Receiving objects: 100% (355/355), 809.75 KiB | 244.00 KiB/s, done.
  Resolving deltas: 100% (35/35), done.
  Checking connectivity... done.
  </code></pre>
  
  <p>So the repository is GOOD.</p>