git - Openshift Origin 安全 git 克隆错误

标签 git openshift-origin

尝试使用与高级安装说明密切相关的简单 byo runbook 设置来尝试 openshift origin V3。但是,我的构建很难从任何 git 存储库克隆,甚至是公共(public)的 github 存储库。

HTTPS:

F0609 05:01:49.810021       1 builder.go:204] Error: build error: fatal: unable to access 'https://github.com/blongden/phpinfo.git/': Unable to communicate securely with peer: requested domain name does not match the server's certificate.

SSH:

I0609 05:10:41.228300       1 source.go:197] Downloading "git@github.com:blongden/phpinfo.git" ...
F0609 05:10:41.867643       1 builder.go:204] Error: build error: Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

我在我的主服务器上手动克隆 repo 没有问题。

任何智慧将不胜感激。

最佳答案

删除 /etc/sysconfig/network-scripts/etc/resolv.conf 文件中的所有 searchdomain 条目解决了这个问题。

这是通过使用 DHCP 寻址在本地设置上进行测试发现的,而不是在我最初的问题中使用主机手动分配的 IP,它工作正常,这有助于缩小问题的范围,以解决两种环境之间的网络差异。

关于git - Openshift Origin 安全 git 克隆错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37717359/

相关文章:

mysql - 打开移位 V3 : creation of mysql pod fails

macos - 在 docker 版本 1.12.0 的 mac 10.11.6 上运行 openshift origin

git - 我怎样才能阻止关于做 git commit --amend 的对话

svn - 如何实现源控管理互通?

git - git stash stack 是否被推送到远程仓库?

kubernetes - 如何调试 "ImagePullBackOff"?

openshift-origin - 无法从 OpenShift 源 pod 解析 github.com

windows - 为什么 "Git help <command>"没有像它说的那样在我的浏览器中启动 html 帮助?

git - 提供带有密码的 git URL,包括 "@"符号

javascript - 在 openshift 上托管时,WordPress(Redux 框架主题)中样式表和 Javascript 的路径无效