0

I try to setup Gitlab LFS support. It's working fine for repositories cloned with HTTPS, but with SSH I always get a 404 for the LFS URLs.

The property lfs.url is set to https://gitlab-host/user/project.git/gitlab-lfs

If I debug it with pry I see that the problem is that @env['HTTP_X_SENDFILE_TYPE'].to_s is not set in function check_download_sendfile_header? in /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/lfs/response.rb

I tought it might be a problem that I am using Apache, installed the mod_xsendfile and activated it in the proxy directive, but that did not help either.

Has anyone any idea what could be the problem with LFS in a SSH cloned repo?

I'm using Gitlab version is 8.7.5 installed with omnibus.

OlivierBlanvillain
  • 7,701
  • 4
  • 32
  • 51
Bastian Ballmann
  • 361
  • 3
  • 10

2 Answers2

0

Has anyone any idea what could be the problem with LFS in a SSH cloned repo?

It's not yet implemented.

OlivierBlanvillain
  • 7,701
  • 4
  • 32
  • 51
0

Make sure you've set the GITLAB_HOST variable to your domain name because it will default to localhost and the git lfs push/pull will not work.

rivanov
  • 1,214
  • 18
  • 19