【问题标题】:Gcloud cannot detect network connectionGcloud 无法检测到网络连接
【发布时间】:2021-05-26 14:05:58
【问题描述】:

我在 ESXi 服务器上有互联网连接,我想将所有内容复制到 GCP 存储。但 Gcloud 无法进行身份验证。好像无法访问 gloud 登录服务器。

如果 esxi 提供商阻止了 GCP IP,我不会,但有什么方法可以验证吗?我们是否知道它尝试连接的 IP 或 DNS 地址?

这可能是一个不同的问题吗?我尝试禁用 ipv6 并希望它会起作用。

./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

【问题讨论】:

  • 这是网络问题。一切都取决于您的网络配置/架构。尝试 ping 一个 Google api(例如ping storage.googleapis.com
  • 我可以 ping storage.googleapis.com。但是有些东西阻止 gcloud 进行身份验证
  • 你能执行nslookup www.google.com吗? curl https://www.google.com?
  • 是的 nslookup 工作正常。没有 curl 但我使用 wget 拉 google.com 索引页。
  • 嗯,DNS、ICMP 和 HTTPS 都可以访问。奇怪的是您的 gcloud init 不起作用。也许是因为您有代理,但我无法帮助您!

标签: google-cloud-platform gcloud gsutil esxi


【解决方案1】:

您可能会从以下渠道获得更多信息:

gcloud info --run-diagnostics

您是否在代理后面运行?如果是这样,您需要为 gcloud 设置代理设置:https://cloud.google.com/sdk/docs/proxy-settings

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 1970-01-01
    • 2010-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多