Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error clone project gitlab with https

Tags:

git

https

gitlab

I've a problem when i try to clone my Gitlab project with the protocol "Https". With the git protocol everything works fine.

The error:

Cloning into 'test'...
fatal: https://XXXX.XXXX.XXXX.XXXX/user.name/test.git/info/refs?service=git-upload-pack
not found: did you run git update-server-info on the server?

I've tried many solutions but the error is still here.

Somebody can help me?

Thank's for your help and have a nice day!

like image 571
Florent Avatar asked Feb 12 '13 10:02

Florent


People also ask

What is the difference between clone and download in GitLab?

When you download the repo it just gives you all the source files with no . git so you dont have the repo. When you clone you get a copy of the history and it is a functional git repo.


1 Answers

My Problem was the Apache configuration file. My example configuration

<VirtualHost ip:80>
  ServerName git.domain.tld
  Redirect permanent / https://git.domain.tld/
</VirtualHost>

<VirtualHost ip:443>
  ServerName git.domain.tld
  DocumentRoot /home/git/gitlab/public

  <Location />
    ProxyPassReverse http://127.0.0.1:8080
    ProxyPassReverse http://git.domain.tld
  </Location>

  RewriteEngine on
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
  RequestHeader set X_FORWARDED_PROTO 'https'
</VirtualHost>

Source: https://github.com/gitlabhq/gitlab-recipes/tree/master/web-server/apache

like image 137
JohannesM Avatar answered Oct 24 '22 17:10

JohannesM