Push / Clone Issues (New to Git)
Created by: HarriKwokTest
Here's the situation. I have configured Gitlab with Nginx on OEL 6.3 The output of bundle exec rake gitlab:check RAILS_ENV=production and bundle exec rake gitlab:env:info RAILS_ENV=production seem to look good.
I'm able to Clone via HTTPS Push via SSH I'm not able to Clone via SSH Push via HTTPS (I am able to push with [email protected])
I've been working on this and scouring forums only to fix minor things like the buffer size but can't seem to resolve this. Please look at the following to see if this can be resolved. Thanks
git@eegit01:~/gitlab> 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.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: ... Administrator / amers test ... ok Administrator / isysback ... ok Administrator / https ... ok Administrator / funfun ... ok Administrator / pewpew ... ok Administrator / harri ... repository is empty 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 users with access to your GitLab server (limit: 100):
... ... ...
Checking LDAP ... 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 namespace: ... Administrator / amers test ... yes Administrator / isysback ... yes Administrator / https ... yes Administrator / funfun ... yes Administrator / pewpew ... yes Administrator / harri ... yes Projects have satellites? ... Administrator / amers test ... yes Administrator / isysback ... yes Administrator / https ... yes Administrator / funfun ... yes Administrator / pewpew ... yes Administrator / harri ... can't create, repository is empty Redis version >= 2.0.0? ... yes Your git bin path is "/usr/bin/git" Git version >= 1.7.10 ? ... yes (1.8.5)
Checking GitLab ... Finished
git@eegit01:~/gitlab> bundle exec rake gitlab:env:info RAILS_ENV=production
System information System: OracleServer 6.3 Current User: git Using RVM: no Ruby Version: 2.0.0p353 Gem Version: 2.0.14 Bundler Version:1.5.3 Rake Version: 10.1.0
GitLab information Version: 6.4.3 Revision: 31736266 Directory: /home/git/gitlab DB Adapter: mysql2 URL: https://eegit01.domain.com HTTP Clone URL: https://eegit01.domain.com/some-project.git SSH Clone URL: [email protected]:some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 1.8.0 Repositories: /home/git/repositories/ Hooks: /home/git/gitlab-shell/hooks/ Git: /usr/bin/git git@eegit01:~/gitlab>
eegit01:/home/git/del/clone/funfun # git config --list user.name=GitLab user.email=[email protected] core.autocrlf=input core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true remote.origin.url=https://eegit01.domain.com/root/funfun.git remote.origin.fetch=+refs/heads/:refs/remotes/origin/ branch.master.remote=origin branch.master.merge=refs/heads/master eegit01:/home/git/del/clone/funfun # git push -u origin master Username for 'https://eegit01.domain.com': ldapid Password for 'https://[email protected]': Counting objects: 4, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 286 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date eeit02:/home/git/del/clone/funfun #
eegit01:/home/git/del/clone/funfun # git remote add directpath /home/git/repositories/root/funfun.git eegit01:/home/git/del/clone/funfun # git push -u deirectpath master fatal: 'deirectpath' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. eegit01:/home/git/del/clone/funfun # git push -u directpath master Counting objects: 4, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 286 bytes | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To /home/git/repositories/root/funfun.git cc4a65f..9ebca69 master -> master Branch master set up to track remote branch master from directpath. eegit01:/home/git/del/clone/funfun #
eegit01:/home/git/del/clone/funfun # git remote add sshpath [email protected]:root/funfun.git eegit01:/home/git/del/clone/funfun # git push -u sshpath master
[email protected]'s password:
fatal: 'root/funfun.git' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. eegit01:/home/git/del/clone/funfun #
eegit01:/home/git/del/clone # git clone [email protected]:root/funfun.git Cloning into 'funfun'...
[email protected]'s password:
fatal: 'root/funfun.git' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
eegit01:/home/git/del/clone # git clone https://eegit01.domain.com/root/funfun.git Cloning into 'funfun'... Username for 'https://eegit01.domain.com': ldapid Password for 'https://[email protected]': remote: Counting objects: 404, done. remote: Compressing objects: 100% (204/204), done. remote: Total 404 (delta 153), reused 400 (delta 152) Receiving objects: 100% (404/404), 40.68 MiB | 18.44 MiB/s, done. Resolving deltas: 100% (153/153), done. Checking connectivity... done. eegit01:/home/git/del/clone #