'Download as archive' returns JSON instead of archives

Hey there!

So far, I really love to use GitLab, thank you for this great piece of software but currently, I’m confronted with a problem. I installed the most recent omnibus version using an external nginx web server on an Ubuntu 14.04.03 server. Everytime I try to download a repo branch as archive with the ‘Download as’ button I do not get an archive but a pure JSON page instead. So, it is actually the same issue which is also described here: https://gitlab.com/gitlab-org/gitlab-ce/issues/3165.

A hint/help how to solve this or what I may be missing would be really appreciated. Thanks in advance.

Actually, I figured out that the problem must be related to the configuration of the external nginx server, because it seems to work when I temporary switch back to the integrated one. Any ideas?

Okay, I got it.

The problem has been caused by a misconfigured external nginx web server.

  • At first, I installed an advanced nginx version with apt-get install nginx-extras which already comes with all necessary mime-types needed by GitLab.
  • Next, I compared the autogenerated nginx configs which are located at /var/opt/gitlab/nginx/conf with the configs of the external nginx web server and adapted the gzip settings properly.
  • Now, everything works as it should.

Solved.

1 Like