Gitlab:在全新安装时克隆(通过ssh)失败,"远程端意外挂断"

pab*_*abo 7 gitlab

在新的gitlab安装(6.0.1)中推送到新的repo失败了

Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

但ssh -vT git@www.my.gitlab.eu有效.

pab*_*abo 8

什么时候

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
Run Code Online (Sandbox Code Playgroud)

在gitlab-shell.log中,我发现了一个html响应,其中说:

错误

所请求的网址无法检索

尝试检索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
Run Code Online (Sandbox Code Playgroud)

像这样

# 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"
Run Code Online (Sandbox Code Playgroud)

尽管评论中有暗示,但最终的斜线在api跟注中显然会出现双斜线.就我而言,dns无法解决.所以现在我使用ip地址,它的工作原理.