Gitlab:在新安装上克隆(通过ssh)失败,原因是“;远端意外挂断”;

Gitlab:在新安装上克隆(通过ssh)失败,原因是“;远端意外挂断”;,gitlab,Gitlab,在新的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-vTgit@www.my.gitlab.eu有效。当 sudo-u git-H/home/git/gitlab shell/bin/check

在新的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-vTgit@www.my.gitlab.eu有效。

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时遇到以下错误:

无法从主机名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地址,它就可以工作了。

关闭selinux

setenforce 0
在/etc/SELINUX/config中将SELINUX设置为permissive


然后向上投票回答:

检查您的帐户权限。只有所有者才能在主分支中提交。如果您的帐户类型为Developer,您需要创建新的分支机构,并且作为所有者的成员将合并您的分支机构和主分支机构。

为什么不加评论地进行向下投票?我已经有了确切的问题,这解决了它。可能帮不上忙,可能帮不了别人。还是我错了?