【发布时间】: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