红联Linux门户
Linux帮助

GitLab: Failed to authorize your Git request: inte

发布时间:2016-04-29 10:03:54来源:linux网站作者:ordiy

在局域网的Ubuntu虚拟机上安装了一个Gitlab,由于路由原因导致IP发生了变化,今天重新配置了gitlab.yml文件中的IP信息。但是遇到了clone的时候出现了GitLab: Failed to authorize your Git request: internal API unreachable .在搜索上仔细找了找发现有一个gitlab-shell下面有一个config.yml文件中的gitlab-url中设置问题。


1.引发原因: IP路由发生变化,需要重新配置gitlab上面的IP设置。配置完gitlab.yml文件的信息以后,gitlab启动也没什么问题。开始进行Clone操作.


2.在Gitlab进行clone时遇到如下的提示错误(我蒙了)

pingxin@T_chenpx MINGW64 /e/git_code/test
$ git clone git@192.168.1.242:plateformGroup/WinSkyPlatform.git
Cloning into 'WinSkyPlatform'...
GitLab: Failed to authorize your Git request: internal API unreachable
fatal: Could not read from remote repository.


3.问题定位

3.1、开始以为是我的key错了,重新生成一下,发现不是这个原因。

3.2、stackworkflow上有一片个issus给我了提示,说是配置信息错了。开始仔细检查在gitlab-shell下的config.yml文件中看到了,将其中的gitlab_url修改一为当前机器的IP,

GitLab: Failed to authorize your Git request: inte

3.3、问题还在继续

需要修改 gitlab.yml 文件中的 gitURL。如下图所示:

GitLab: Failed to authorize your Git request: inte

本文永久更新地址:http://www.linuxdiyf.com/linux/20191.html