Unable to clone via http
Created by: Squirtukuk
Hi, I am currently experiencing an issue with the http clone function of gitlab. I am able to SSH clone just fine.
When cloning it asks for a username and password. Any username or password I use comes back with authentication failed. SSH clone of the same repo works fine.
Am I doing something stupid or maybe something is misconfigured?
If you need any thing else to help troubleshoot, let me know!
Cheers,
Simon
Command
git clone http://gitlab.<server_name>/pica/fvcom-py.git
Cloning into 'fvcom-py'...
Username for 'http://gitlab.<server_name>':
Password for 'http://gitlab.<server_name>':
fatal: Authentication failed for 'http://gitlab.<server_name>/pica/fvcom-py.git/'
Error logs
tail /home/git/gitlab/log/production.log
Started GET "/pica/fvcom-py.git/info/refs?service=git-upload-pack?service=git-upload-pack" for 127.0.0.1 at 2014-03-20 12:00:42 +0000
Started GET "/pica/fvcom-py.git/info/refs?service=git-upload-pack?service=git-upload-pack" for 127.0.0.1 at 2014-03-20 12:00:48 +0000
Started GET "/pica/fvcom-py.git/info/refs?service=git-upload-pack?service=git-upload-pack" for 127.0.0.1 at 2014-03-20 12:00:48 +0000
tail /var/log/nginx/gitlab_acces.log
<My_IP_Address> - root [20/Mar/2014:12:00:48 +0000] "GET /pica/fvcom-py.git/info/refs?service=git-upload-pack?service=git-upload-pack HTTP/1.1" 401 0 "-" "git/1.8.3.1"
SSH Successful
git clone git@gitlab.<server_name>:pica/fvcom-py.git
Cloning into 'fvcom-py'...
X11 forwarding request failed on channel 0
remote: Counting objects: 1038, done.
remote: Compressing objects: 100% (450/450), done.
remote: Total 1038 (delta 656), reused 937 (delta 585)
Receiving objects: 100% (1038/1038), 1.53 MiB | 0 bytes/s, done.
Resolving deltas: 100% (656/656), done.
Checking out files: 100% (73/73), done.
Environment
bundle exec rake gitlab:check RAILS_ENV=production
Digest::Digest is deprecated; use Digest
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.7.9 ? ... OK (1.8.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
update hook up-to-date? ... yes
update hooks in repos are links: ...
Lee / TestProject-ledm ... ok
Administrator / Administrator ... ok
Momme / PML Python tools ... ok
Jorn / fabm-ersem ... ok
Pierre / fvcom-toolbox ... ok
Pierre / fvcom-py ... ok
Pierre / roughness_paper ... repository is empty
Pierre / pml-box ... ok
Pierre / POLPRED ... ok
Pierre / pml-liverpool-bay ... ok
Pierre / pml-qics ... ok
Pierre / dotfiles ... repository is empty
Pierre / fvcom-hector ... ok
Pierre / mike-shelf ... repository is empty
Pierre / pml-flowbec ... ok
Pierre / pml-irish-sea ... ok
Pierre / pml-shelf ... ok
Pierre / pml-wavehub ... ok
SSB-GOTM-ERSEM / SSB-GOTM ... ok
SSB-GOTM-ERSEM / SSB-ERSEM ... ok
James / opec-tools ... ok
James / SSB-ERSEM ... ok
James / SSB-GOTM ... ok
Pierre / pml-ukoa ... ok
Lee / limov-toolkit ... ok
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.10
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... Digest::Digest is deprecated; use Digest
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 namespace: ...
Lee / TestProject-ledm ... yes
Administrator / Administrator ... yes
Momme / PML Python tools ... yes
Jorn / fabm-ersem ... yes
Pierre / fvcom-toolbox ... yes
Pierre / fvcom-py ... yes
Pierre / roughness_paper ... yes
Pierre / pml-box ... yes
Pierre / POLPRED ... yes
Pierre / pml-liverpool-bay ... yes
Pierre / pml-qics ... yes
Pierre / dotfiles ... yes
Pierre / fvcom-hector ... yes
Pierre / mike-shelf ... yes
Pierre / pml-flowbec ... yes
Pierre / pml-irish-sea ... yes
Pierre / pml-shelf ... yes
Pierre / pml-wavehub ... yes
SSB-GOTM-ERSEM / SSB-GOTM ... yes
SSB-GOTM-ERSEM / SSB-ERSEM ... yes
James / opec-tools ... yes
James / SSB-ERSEM ... yes
James / SSB-GOTM ... yes
Pierre / pml-ukoa ... yes
Lee / limov-toolkit ... yes
Projects have satellites? ...
Lee / TestProject-ledm ... yes
Administrator / Administrator ... yes
Momme / PML Python tools ... yes
Jorn / fabm-ersem ... yes
Pierre / fvcom-toolbox ... yes
Pierre / fvcom-py ... yes
Pierre / roughness_paper ... can't create, repository is empty
Pierre / pml-box ... yes
Pierre / POLPRED ... yes
Pierre / pml-liverpool-bay ... yes
Pierre / pml-qics ... yes
Pierre / dotfiles ... can't create, repository is empty
Pierre / fvcom-hector ... yes
Pierre / mike-shelf ... can't create, repository is empty
Pierre / pml-flowbec ... yes
Pierre / pml-irish-sea ... yes
Pierre / pml-shelf ... yes
Pierre / pml-wavehub ... yes
SSB-GOTM-ERSEM / SSB-GOTM ... yes
SSB-GOTM-ERSEM / SSB-ERSEM ... yes
James / opec-tools ... yes
James / SSB-ERSEM ... yes
James / SSB-GOTM ... yes
Pierre / pml-ukoa ... yes
Lee / limov-toolkit ... yes
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
bundle exec rake gitlab:env:info RAILS_ENV=production
Digest::Digest is deprecated; use Digest
System information
System: CentOS 6.5
Current User: git
Using RVM: no
Ruby Version: 2.1.0p0
Gem Version: 2.2.0
Bundler Version:1.5.1
Rake Version: 10.1.0
GitLab information
Version: 6.5.1
Revision: 6f6f158
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://gitlab.<server_name>
HTTP Clone URL: http://gitlab.<server_name>/some-project.git
SSH Clone URL: git@gitlab.<server_name>:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.8.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git