【问题标题】:ERROR: gcloud crashed (ServerNotFoundError): Unable to find the server at www.googleapis.com错误:gcloud 崩溃(ServerNotFoundError):无法在 www.googleapis.com 找到服务器
【发布时间】:2020-11-26 04:58:49
【问题描述】:

我正在尝试使用以下命令登录云 sdk:gcloud auth login,并在浏览器中选择我的 google 帐户。单击允许后,在终端中显示:

ERROR: gcloud crashed (ServerNotFoundError): Unable to find the server at www.googleapis.com

If you would like to report this issue, please run the following command:
gcloud feedback

To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics

当我运行命令 gcloud info --run-diagnostics 时,它也会因错误而停止:

ERROR: Reachability Check failed.
Cannot reach https://www.googleapis.com/auth/cloud-platform (ServerNotFoundError)
Network connection problems may be due to proxy or firewall settings.

我的配置是默认的,没有任何修改。
我可以在很长一段时间内毫无问题地登录到 cloud sdk。
我在 Windows 10 上。
我尝试使用 cloud sdk shell 和 windows 终端以管理员而不是管理员身份登录。

如何解决这个错误?

更新: 我运行tracert -4 www.googleapis.com-6 命令,结果如下:

Unable to resolve target system name www.googleapis.com.

我在家工作,我不知道网络代理是什么,我可能不小心使用了一个。

【问题讨论】:

  • 您所在位置遇到网络问题。执行从您的桌面到 www.googleapis.com 的跟踪路由。在 Windows 上运行此命令:tracert -4 www.googleapis.com。将-4 替换为-6。这可能会帮助您找出网络故障发生的位置。 Linux 也有类似的命令。使用结果和有关您的网络的更多详细信息更新您的问题,例如您是否在家工作、您的办公室、国家/地区、网络代理的使用等。
  • 我更新了你的结果
  • 您的计算机存在 DNS 问题。您使用的是什么 DNS 服务器?你在哪个国家?命令ipconfig /all 将显示您的网络配置。
  • 我去上班了,现在我回来了,它正在工作。也许服务器因维护而关闭或其他原因

标签: google-cloud-platform google-cloud-sdk


【解决方案1】:

您可能已经启用了 gcloud 代理,使用-> gcloud config list 来获取代理设置

要取消设置代理使用:gcloud config unset proxy/[params] 其中参数是地址、端口等。

【讨论】:

  • 一次也可以检查https_proxy变量的值。有时用于设置代理。
【解决方案2】:

您需要先使用此命令登录您的 gcloud SDK

gcloud auth login

它将在浏览器中打开一个谷歌注册页面。选择您的帐户,然后您将在命令行中确认您已通过身份验证。然后尝试你想做的事情。

【讨论】:

    【解决方案3】:

    我在连接到 VPN 时遇到了同样的问题。 从 VPN 断开 并运行以下命令,它工作。 gcloud auth 登录

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-29
      • 2019-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-29
      • 1970-01-01
      • 2018-09-13
      相关资源
      最近更新 更多