Gcloud无法检测到网络连接 [英] Gcloud cannot detect network connection
问题描述
我在ESXi服务器上具有Internet连接,并且我想将所有内容复制到GCP存储.但是Gcloud无法验证.看来它无法访问糟糕的登录服务器.
I have internet connection on the ESXi server and I want to copy everything to GCP storage. But Gcloud couldn't authenticate. It looks like it can't reach the gloud login servers.
如果esxi提供程序已阻止GCP IP,我不是,但是有什么方法可以验证吗?我们知道它尝试连接哪个IP或DNS地址吗?
I'm not if the esxi provider has blocked GCP IP's but is there a way I can verify? Do we know which IP or DNS address it tries to connect?
这可能是一个不同的问题吗?我尝试禁用ipv6,希望它能正常工作.
Could this be a different issue? I tried disable ipv6 and was hoping it would work.
./gcloud init --skip-diagnostics
ERROR: There was a problem with web authentication.
ERROR: (gcloud.auth.login) Could not reach the login server. A potential cause of this could be because you are behind a proxy. Please set the environment variables HTTPS_PROXY and HTTP_PROXY to the address of the proxy in the format "protocol://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
推荐答案
您可能会从以下位置获得更多信息:
You might get more information from:
gcloud info --run-diagnostics
您是否在代理后面运行?如果是这样,则需要为gcloud设置代理设置: https://cloud.google.com/sdk/docs/proxy-settings
Are you running behind a proxy? If so, you need to set proxy settings for gcloud: https://cloud.google.com/sdk/docs/proxy-settings
这篇关于Gcloud无法检测到网络连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!