One-Click App (GitLab CE) - "Github Push Error: RPC failed; result=22, HTTP code = 413"

February 18, 2016 823 views
One-Click Install Apps Git Apache Nginx Ubuntu

Was having this same issue with the DigitalOcean one click install of GitLab CE. It seems the fix is related to either Apache or Nginx. (Unsure what's installed by the one-click installer.)

DigitalOcean recommended via Twitter to come here for help with resolving this due to the lack of any kind of tutorial on fixing this problem.

Can anyone help?

2 Answers

The DigitalOcean GitLab One-Click image uses GitLab's "omnibus" installer which bundles it's own copy of Nginx. You can insert custom Nginx settings, by editing /etc/gitlab/gitlab.rb If you wanted to increase the client_max_body_size add this line:

nginx['client_max_body_size'] = '50m'

For the change to take effect, you must then run: sudo gitlab-ctl reconfigure

For more information on customizing GitLab's Nginx configuration, see the upstream documentation.

Hey there,
I read over that stack overflow and you want to take a look at the solution for Nginx that was proposed in the top answer. I'll copy it below:

Just load your nginx.conf and add client_max_body_size 50m; ( changing the value to your needs ) in the http block.

Reload nginx to accept the new config by executing sudo service nginx reload and try again to push your commit over http.

DigitalOcean TechOps

  • Problem there is finding the nginx.conf in the one click install. (There was no /etc/nginx folder.)

    @asb 's answer below seems to be the answer. Made the edit and will see if it solves my initial Git problem.

Have another answer? Share your knowledge.