GitLab: impossible de lire à partir d'un dépôt distant
J'ai créé mon projet et ajouté ma clé ssh (à la fois sur webinterface), mais quand j'essaie de faire quelque chose pour les pensions de titres, j'obtiens cette erreur: "impossible de lire à partir du référentiel". Cela pourrait être dû au fait que l' .git-projet-le fichier n'existe pas dans le dossier /home/git/repositories/[groupe]/dossier.
Le gitlab-vérifier retourne:
[Group] /[Project] ... can't create, repository is empty
D'erreur en appuyant sur le référentiel
git remote add origin [email protected]:[groupe]/[projet].git
git push -u de l'origine de maître
fatal: '/home/git/repositories/[group]/[project].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.
Ce qui pourrait avoir causé l'erreur
ls -ld /home/git/repositories/[groupe]/[projet].git
File not found.
Pourquoi le fichier n'est pas créé?
Infos sur ma configuration
ls -ld /home//home/git/
drwxr-xr-x 3 root root 4096 Aug 28 15:04 /home/
drwxr-xr-x 8 git git 4096 Aug 31 11:33 /home/git/
ll /home/git
drwxr-xr-x 8 git git 4096 Aug 31 11:33 ./
drwxr-xr-x 3 root root 4096 Aug 28 15:04 ../
-rw-r--r-- 1 git git 220 Aug 28 15:04 .bash_logout
-rw-r--r-- 1 git git 3637 Aug 28 15:04 .bashrc
drwx------ 2 git git 4096 Aug 29 19:52 .cache/
-rw-r--r-- 1 git git 88 Aug 31 11:33 .gitconfig
drwxr-xr-x 16 git git 4096 Aug 29 15:32 gitlab/
drwxr-xr-x 2 git git 4096 Aug 28 15:09 gitlab-satellites/
drwxr-xr-x 8 git git 4096 Aug 29 19:51 gitlab-shell/
-rw------- 1 git git 13 Aug 29 15:36 .mysql_history
-rw-r--r-- 1 git git 675 Aug 28 15:04 .profile
drwxrws--- 5 git git 4096 Aug 29 16:15 repositories/
drwx------ 2 git git 4096 Aug 31 11:47 .ssh/
-rw------- 1 git git 3453 Aug 29 16:03 .viminfo
sudo -u git -H bundle exec rake gitlab:env:info
RAILS_ENV=production
System information
System: Ubuntu 13.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.1.0
GitLab information
Version: 6.0.0
Revision: 6c1c284
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://myserver.com
HTTP Clone URL: http://myserver.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.7.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
sudo -u git -H bundle exec rake gitlab:vérifier
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.0 ? ... OK (1.7.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: ...
[Group] /[Project] ... repository is empty
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? ...
[Group] /[Project] ... 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.1)
Checking GitLab ... Finished
ssh -T [email protected]
Welcome to GitLab, Christian Hammer!
cat /home/git/.ssh/authorized_keys
command="/home/git/gitlab-shell/bin/gitlab-shell key-2",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [key] [email]
OriginalL'auteur Christian Hammer | 2013-08-31
Vous devez vous connecter pour publier un commentaire.
(Re)commencer sidekiq résolu le problème:
OriginalL'auteur Christian Hammer
À partir de l'information que vous avez donnée, il n'est pas en mesure de créer. Veuillez vérifier ce qui existe à l'intérieur de dépôts/[groupe] répertoire.
Si votre dépôt est un dépôt nu (un qui n'a pas de répertoire de travail), alors il s'agit d'une convention d'utilisation d'un nom comme [projet.git].
OriginalL'auteur Shunya
J'ai eu le même problème. Mais pour moi, le redémarrage de sidekiq n'a pas le résoudre. Donc, je laisse une petite solution pour le même message d'erreur. - Je gérer le serveur gitlab est en cours d'exécution sur, j'ai donc créé une clé pour l'accès ssh à distance (
gitlab-server.pub
) et un autre (gitlab-repo.pub
) pour le référentiel. Dans le gitlab interface j'ai téléchargégitlab-repo.pub
mais j'ai oublié git de dire que l'on à utiliser après la mise à jour~/.ssh/config
comme ceci tout fonctionneOriginalL'auteur theDrifter