Error 502 while creating a Merge Request

I use gitlab 8.5.5, and I get the error 502 when I try to create a merge request.

The destination repo is empty (only one file), while the source repo is big (sources of the Linux Kernel).

Is there any configuration trick to fix that issue?