Can’t clone via displayed SSH or HTTP URL
Created by: GilHoggarth
Possibly connected to https://github.com/gitlabhq/gitlabhq/issues/3686, though have tried and failed with its resolution.
On http://(ip address)/(group)/(project) webpage, the displayed download URLs are:
- (user)@(ip address):(group)/(project).git
- http://(ip address)/(group)/(project).git
Neither of these can be used to download a project. However, if I correct the URL with the repo path, projects are successfully cloned. The correction would be:
- (user)@(ip address)/(repo path)/(group)/(project).git
- http://(ip address)/(repo path)/(group)/(project).git
Details:
- Using gitlab v 5.1.0 be39106a
- gitlab at /home/user/gitlab/
- repo at /var/local/repositories/ (not a symlink, on same mount)
- ssh –T user@ip_address hangs (without ‘-T’ works fine.)
- /home/user/gitlab-shell/bin/check
Check GitLab AP access: OK Check directories and files: /var/local/repositories: OK /home/user/.ssh/authorized_keys: OK
-
bundle exec rake gitlab:check RAILS_ENV=production
Checking Environment ... Git configured for gitlab user? ... yes Has python2? ... yes python2 is supported version? ... yes Checking Environment ... Finished Checking Gitlab Shell ... GitLab Shell version? ... FAIL. Please update gitlab-shell to v1.3.0 Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by gitlab:gitlab? ... yes Repo base access is drwxrws---? ... yes post-receive hook up-to-date? ... yes post-receive hooks in repos are links: ... External_software / monitrix ... 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? ... no Try fixing it: Redownload the init script For more information see: doc/install/installation.md in section "Install Init Script" Please fix the error above and rerun the checks. Projects have satellites? ... External_software / monitrix ... yes Redis version >= 2.0.0? ... yes Checking GitLab ... Finished
- .ssh/authorized_keys starts with ‘command=/home/user/gitlab …’ etc., ran
bundle exec rake gitlab:shell:setup RAILS_ENV=production
for this, before file same as after file.