Project

General

Profile

Actions

Support #5618

open

Getting HTTP 502 Bad Gateway when trying to push (or clone) on a slow network

Added by Claude Chausse almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
27.05.2020
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

When we try to push (sometimes it happen on clone) on a network that is slow (not sure if is it is related to bandwidth or latency), we have issues and the operation fails. Usually the error we get is HTTP 502 Bad Gateway. The problem is systematic on some network (ex: people in Argentina or California).

My Rhodecode server (which is running version 4.13.3) is sitting behind an Apache frontend which is used as the Proxy and is providing the Secure HTTPS channel

I included the apache configuration (related to the rhodecode virtualHost) and the rhodecode.ini

I tried to use some trick that I read on some forum like tweaking the timeouts of play with the keepalive settings but it did not help

basically I never could resolved this issue that we started having a few years ago and this is causing big frustration for people working from remote location where we have to setup an intermediate server for them to use and have to synchronize them.


Files

apache2.conf (1.25 KB) apache2.conf Claude Chausse, 27.05.2020 19:04
rhodecode.ini (23.1 KB) rhodecode.ini Claude Chausse, 27.05.2020 19:05
Actions #1

Updated by Marcin Kuzminski [CTO] almost 4 years ago

This could be related to Gunicorn timeouts/keeplive. Here are the new defaults and settings we use in latest releases:

https://code.rhodecode.com/rhodecode-enterprise-ce/files/09801de9b9f4917a12f60841c81d768776080475/configs/production.ini#L74-99

Before we used to set those via gunicorn_conf.py (please check this, not sure how it was on 4.13 this release isn't supported anymore)
502 reported by Apache is most likely RhodeCode timeouts not Apache

Actions

Also available in: Atom PDF