Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform 当运行gcloud命令时,我得到;错误:可达性检查失败。”;_Google Cloud Platform_Gcloud - Fatal编程技术网

Google cloud platform 当运行gcloud命令时,我得到;错误:可达性检查失败。”;

Google cloud platform 当运行gcloud命令时,我得到;错误:可达性检查失败。”;,google-cloud-platform,gcloud,Google Cloud Platform,Gcloud,我已将CI Runner中的gcloud版本升级为最新版本,现在每次运行gcloud命令时都会出现此错误: $ $GCLOUD info --run-diagnostics Network diagnostic detects and fixes local network connection issues. Checking network connection... done. ERROR: Reachability Check failed. Cannot reach https

我已将CI Runner中的
gcloud
版本升级为最新版本,现在每次运行
gcloud
命令时都会出现此错误:

$ $GCLOUD info --run-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...
done.
ERROR: Reachability Check failed.
    Cannot reach https://www.google.com (SSLHandshakeError)
    Cannot reach https://accounts.google.com (SSLHandshakeError)
    Cannot reach https://cloudresourcemanager.googleapis.com/v1beta1/projects (SSLHandshakeError)
    Cannot reach https://www.googleapis.com/auth/cloud-platform (SSLHandshakeError)
    Cannot reach https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json (SSLHandshakeError)
Network connection problems may be due to proxy or firewall settings.
它以前工作得很好。我在GitLab上的debian docker容器中运行这个。
cloudsdk
从这里下载
https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
并且固定的版本是:
284.0.0


当我运行
$GCLOUD config set auth/disable\u ssl\u validation True
时,它会工作。我在网上到处找了,但没有找到任何有用的东西。有些人建议在
cacerts.txt
文件中添加一些内容,但我没有发现任何有效的内容。

您能检查一下443端口上是否允许通信吗?未被防火墙规则阻止?允许到443 https服务器的流量<代码>openssl s_客户端-connect stackoverflow.com:443工作这不是防火墙问题。这个问题看起来像是代理问题。通过
config set auth/disable\u ssl\u validation
可以克服这一点,这意味着这是一个CA证书问题。然而,我不知道解决办法。找到安装
gcloud
的位置:
哪个gcloud
。然后从该目录检查
cacert.pem
文件,确保它们是最新的。另请查看
custom\u ca\u certs\u文件
:您是如何升级
gcloud
工具的?使用?@Juancki No,我们只是下载了最新的sdk并锁定了最新的版本。我们在CI跑步者中看到了这个问题。