Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4766

Closed
Open
Created Aug 13, 2013 by Administrator@rootOwner

Unable to clone by http (cloning by ssh works well)

Created by: kbaylosis

I'm running Gitlab 5.4 and recently tried to do a git clone by http from my server. I found out that it doesn't work even though cloning by ssh works well.

Here is the error:

git clone http://myservername/gitlab/myrepo.git
Cloning into '<repo>'...
remote: Not Found
fatal: repository 'http://<myservername>/gitlab/<repo>.git/' not found
And here is the production.log output (no errors produced)
Started GET "/gitlab/<repo>.git/info/refs?service=git-upload-pack" for xx.xx.xx.xx at 2013-08-13 02:24:46 +0000

Configurations:

My setup is gitlab over apache2, and configured under a suburl.
Server version: Apache/2.2.22 (Ubuntu)
Server built:   Jul 12 2013 13:37:10
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.4.0 ? ... OK (1.5.0)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ... 

... < all repos are ok > ...

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ... 

... < all repos have > ...

Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.3)

Checking GitLab ... Finished
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System:     Ubuntu 12.04
Current User:   git
Using RVM:  no
Ruby Version:   2.0.0p247
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.0.4

GitLab information
Version:    5.4.0
Revision:   e8d77e2
Directory:  /home/git/gitlab
DB Adapter: mysql2
URL:        http://<myservername>/gitlab
HTTP Clone URL: http://<myservername>/gitlab/some-project.git
SSH Clone URL:  git@<myservername>:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.5.0
Repositories:   /home/git/repositories/
Hooks:      /home/git/gitlab-shell/hooks/
Git:        /usr/bin/git
/etc/apache2/conf.d/gitlab
Alias /gitlab "/var/www/gitlab"
SetEnv RAILS_RELATIVE_URL_ROOT "/gitlab"

<Directory "/var/www/gitlab">
        Options -MultiViews
        PassengerAppRoot "/home/git/gitlab"
</Directory>
/etc/apache2/httpd.conf
LoadModule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.10/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.10
PassengerDefaultRuby /usr/local/bin/ruby
/etc/apache2/sites-available/default
<VirtualHost *:80>
        ServerAdmin admin@<myservername>

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
                Allow from all
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>
Assignee
Assign to
Time tracking