错误:gitosis.serve.main:拒绝存储库读取访问

时间:2014-04-13 13:06:16

标签: git gitosis

Gitosis配置:

[gitosis]
loglevel = DEBUG

[group gitosis-admin]
writable = gitosis-admin
members = root.server

[group testgroup]
writable = testproj1
members = Anastasia@ANASTASIA-PC

我的日志,当我调用clone命令时:

myuser@mydomain /d/www
$ git clone git@5.9.30.109:repositories/testproj1
Cloning into 'testproj1'...
DEBUG:gitosis.serve.main:Got command "git-upload-pack 'repositories/testproj1'"
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
itable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
iteable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 're
adonly' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
ERROR:gitosis.serve.main:Repository read access denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Whyyyy? :(

我该如何发布。

我已经更改了更新后的权利。

1 个答案:

答案 0 :(得分:0)

usuallly的ssh密钥未正确添加到myuser repo的keydir文件夹时,会出现此错误gitosis-admin

  • 格式不正确
  • 多行而不是一行
  • 或keydir文件夹中添加的公钥未正确命名为' myuser.pub' (如this answer

另一个可以链接到gitosis.conf格式问题(如in this comment

无论哪种方式,gitolite比gitosis更容易维护和更新(参见" How do programs like gitolite work?")。