我在 Google App Engine 上创建了一个帐户,然后通过 gcloud init 安装了 google-cloud-sdk,并收到以下错误:
Pick configuration to use:
[1] Re-initialize this configuration [a] with new settings
[2] Create a new configuration
[3] Switch to and re-initialize existing configuration: [default]
Please enter your numeric choice: 1
Your current configuration has been set to: [a]
You can skip diagnostics next time by using the following flag:
gcloud init --skip-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.
ERROR: Reachability Check failed.
Cannot reach https://www.google.com (ResponseNotReady)
Cannot reach https://accounts.google.com (ResponseNotReady)
Cannot reach
https://cloudresourcemanager.googleapis.com/v1beta1/projects
(ResponseNotReady)
Cannot reach https://www.googleapis.com/auth/cloud-platform
(ResponseNotReady)
Network connection problems may be due to proxy or firewall settings.
Do you have a network proxy you would like to set in gcloud (Y/n)? Y
Select the proxy type:
[1] HTTP
[2] HTTP_NO_TUNNEL
[3] SOCKS4
[4] SOCKS5
Please enter your numeric choice: 1
Enter the proxy host address: XXX
Enter the proxy port: XXX
Is your proxy authenticated (y/N)? n
Cloud SDK proxy properties set.
Rechecking network connection...done.
ERROR: Reachability Check still does not pass.
Cannot reach https://www.google.com (ResponseNotReady)
Cannot reach https://accounts.google.com (ResponseNotReady)
Cannot reach
https://cloudresourcemanager.googleapis.com/v1beta1/projects
(ResponseNotReady)
Cannot reach https://www.googleapis.com/auth/cloud-platform
(ResponseNotReady)
Cannot reach
https://dl.google.com/dl/cloudsdk/channels/rapid/components-2.json
(ResponseNotReady)
Current effective Cloud SDK network proxy settings:
type = http
host = XXX
port = XXX
username = None
password = None
What would you like to do?
[1] Change Cloud SDK network proxy properties
[2] Clear all gcloud proxy properties
[3] Exit
Please enter your numeric choice:
我在中国,但我可以使用代理(在shadowsocks2.3中设置)在我的浏览器中解锁谷歌或类似谷歌应用程序引擎的网站。我尝试在google cloud SDK中设置网络代理,IP地址和端口与shadowsocks2.3中使用的完全一样,但仍然不起作用。而且我的项目列表无法访问。确切的问题是什么?提示或解释都很感激。提前谢谢了!
您需要配置 gcloud cli 工具才能使用代理。
https://cloud.google.com/sdk/docs/proxy-settings https://cloud.google.com/sdk/docs/proxy-settings
就我而言,我使用 Shadow-socks 作为代理,所以我这样做了:
gcloud config set proxy/type socks5
gcloud config set proxy/address 127.0.0.1
gcloud config set proxy/port 1086
它有效。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)