就在最近,我的暂存服务器无法执行 git pull
或 git fetch
。
git pull origin master
运行根本没有任何效果,没有给出错误消息,没有文件更改,它只是返回到提示符。它曾经有效(几周前),所以我不确定在此期间发生了什么变化。 Remote 绝对正确。
经过大量搜索后,我将其缩小为潜在的 curl 问题,但我正在努力寻找解决方案。
curl https://www.google.co.uk -v
给我:
* About to connect() to www.google.co.uk port 443 (#0)
* Trying 216.58.208.99... connected
* Connected to www.google.co.uk (216.58.208.99) port 443 (#0)
* Initializing NSS with certpath: none
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
Illegal instruction (core dumped)
我已经检查过 ca-bundle.crt 存在于该位置,但老实说,这远远超出了我的专业领域。我已经以我的普通用户和 root 身份尝试过这个。
- CentOS 6.8
- WHM 56.0
- curl 7.19.7-52.el6
有什么想法我接下来应该尝试什么吗?
最佳答案
我也遇到了同样的问题...
有一个临时解决方案。
导出 NSS_DISABLE_HW_GCM=1
有关详细信息,请参阅 https://bugs.centos.org/view.php?id=10930和 https://gryzli.info/2016/05/28/centos-6-curl-ssl-illegal-instruction-error/
关于git 无声地失败,curl https 因非法指令而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37879665/