gitlab改ip

gitlab改ip后无法clone,无法push

[root@HADOOP-215 imtools]# git push -u origin master -vv
Pushing to git@10.7.5.2:hean/imtools.git
Access denied.
fatal: The remote end hung up unexpectedly

一开始只改了git/gitlab/config/gitlab.yml中的host,依然不行。在 git/gitlab-shell/gitlab-shell.log中看到如下日志

[root@HADOOP-220 gitlab-shell]# tail -f gitlab-shell.log 
W, [2015-04-13T16:44:22.524025 #2572]  WARN -- : gitlab-shell: Access denied for git command <git-upload-pack 'hean/imtools.git'> by user with key key-2.
E, [2015-04-13T16:44:27.806501 #2583] ERROR -- : API call <GET http://10.7.5.6//api/v3/internal/allowed?action=git-upload-pack&ref=_any&project=hean%2Fimtools&forced_push=false&key_id=2> failed: 404 => <<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/v3/internal/allowed was not found on this server.</p>
</body></html>
>.

编辑git/gitlab-shell/config.yml,修改gitlab_url为新的ip

# Url to gitlab instance. Used for api calls. Should end with a slash.
gitlab_url: "http://10.7.5.2/"

 

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注