Project

General

Profile

Actions

Bug #5645

open

Rhodecode returns 400 Bad request on huge mercurial repos

Added by Oleg Schelykalnov almost 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
04.12.2020
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

We have a big repository with size over 8500 commits.

First we started to get 400 Bad request on cloning in command cmd=getbundle. I've fixed it with enabling httppostargs as supposed here https://bugzilla.mozilla.org/show_bug.cgi?id=1350285 This changed queries from GET to POST and allowed to clone repo.

Next when Jenkins tried to pull pull-request's repo it continued to fail with the same error on GET query.

I've tried to raise gunicorn limits but it doesn't help also I didn't found where gunicorn writes error log so I could understand why it return 400.

limit_request_line=8190
limit_request_fields=32768
limit_request_field_size=0
Actions #1

Updated by Marcin Kuzminski [CTO] almost 4 years ago

This could be related to the issues with NGINX or Apache rather then RhodeCode

Actions #2

Updated by Oleg Schelykalnov almost 4 years ago

In that case NGINX or Apache log that in error.log but 400 was logger even in community.log.

I solved it by setting in gunicorn_conf.py

limit_request_line = 0
limit_request_fields = 32768
limit_request_field_size = 0
Actions

Also available in: Atom PDF