在全新的gitlab安装(6.0.1)中推送到新的存储库失败,错误为
Access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.但是ssh -vT git@www.my.gitlab.eu是有效的。
发布于 2013-09-11 04:11:43
什么时候
sudo -u git -H /home/git/gitlab shell/bin/check
我得到了:
Check GitLab API access: FAILED. code: 503
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK在gitlab-shell.log中,我发现了一个html响应,它说:
错误
无法检索请求的URL
尝试检索URL时遇到以下错误:http://my.gitlab.eu//api/v3/internal/check
无法从主机名my.gitlab.eu确定IP地址
DNS服务器返回:
名称错误:域名不存在。这意味着缓存无法解析URL中显示的主机名。检查地址是否正确。
您的缓存管理员是admin@example.com。
我编辑了gitlab-shell的配置文件
/home/git/gitlab-shell# sudo -u git -H editor config.yml像这样
# Url to gitlab instance. Used for api calls. Should end with a slash.
#gitlab_url: "http://my.gitlab.eu/"
gitlab_url: "http://123.xxx.xxx.xx"尽管注释中有提示,但末尾斜杠显然会导致api调用中出现双斜杠。在我的例子中,dns无法解决。所以现在我使用ip地址,它就可以工作了。
发布于 2014-09-23 05:56:55
关闭selinux。
setenforce 0在/etc/ SELINUX /config中将selinux设置为permissive。
发布于 2015-09-11 19:39:06
检查您的帐户权限。只有所有者才能在主分支中提交。如果您的帐户类型为Developer,您需要创建新的分支,并且所有者成员将合并您的分支与主分支。
https://stackoverflow.com/questions/18727678
复制相似问题