Bug #5645
openRhodecode returns 400 Bad request on huge mercurial repos
0%
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
Updated by Marcin Kuzminski [CTO] about 4 years ago
This could be related to the issues with NGINX or Apache rather then RhodeCode
Updated by Oleg Schelykalnov about 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