Http 502 error on push of large commit (500+MB)

Summary

When I try to push a commit of 551.66 MB to my own GitLab server I repeatedly get this error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway

Please note I have changed the unicorn timeout to 6000 seconds, and this upload takes about a quarter of that

Steps to reproduce

  1. Download KiCads 3d model library
  2. Push it to a remote repo on a private GitLab server of HTTP

What is the current bug behavior?

Compression works, writing works, but right after writing is done it 502s

Counting objects: 11094, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (11093/11093), done.
Writing objects: 100% (11094/11094), 551.66 MiB | 586.00 KiB/s, done.
Total 11094 (delta 7968), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway
Everything up-to-date

What is the expected correct behavior?

should just push hopefully

Relevant logs and/or screenshots

This is all I see right off the bat, unsure if it will help

Started GET "/KiCAD-Libraries/core-kicad-3d-models.git/info/refs?service=git-receive-pack" for 65.60.182.212 at 201$
Processing by Gitlab::RequestForgeryProtection::Controller#index as */*
  Parameters: {"service"=>"git-receive-pack"}
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Processing by Gitlab::RequestForgeryProtection::Controller#index as */*
  Parameters: {"service"=>"git-receive-pack"}
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-receive-pack", "namespace_id"=>"KiCAD-Libraries", "project_id"=>"core-kicad-3d-model$
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 115ms (Views: 12.3ms | ActiveRecord: 8.3ms | Elasticsearch: 0.0ms)
Started GET "/KiCAD-Libraries/core-kicad-3d-models.git/info/refs?service=git-receive-pack" for 65.60.182.212 at 201$
Processing by Gitlab::RequestForgeryProtection::Controller#index as */*
  Parameters: {"service"=>"git-receive-pack"}
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Processing by Gitlab::RequestForgeryProtection::Controller#index as */*
  Parameters: {"service"=>"git-receive-pack"}
Completed 200 OK in 0ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-receive-pack", "namespace_id"=>"KiCAD-Libraries", "project_id"=>"core-kicad-3d-model$
Completed 200 OK in 372ms (Views: 0.5ms | ActiveRecord: 19.6ms | Elasticsearch: 0.0ms)
Started POST "/KiCAD-Libraries/core-kicad-3d-models.git/git-receive-pack" for 65.60.182.212 at 2019-03-20 18:35:45 $
Processing by Gitlab::RequestForgeryProtection::Controller#index as application/x-git-receive-pack-result
Can't verify CSRF token authenticity

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Ubuntu 16.04 Proxy: no Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.18.0 Sidekiq Version:5.1.3 Go Version: unknown

GitLab information Version: 11.3.0-ee Revision: 4e822ac Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.8 URL: http://git.sssprojects.org HTTP Clone URL: http://git.sssprojects.org/some-group/some-project.git SSH Clone URL: git@git.sssprojects.org:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: no Using Omniauth: no

GitLab Shell Version: 8.3.3 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Assignee Loading
Time tracking Loading