ERROR: gcloud crashed (ConnectionError):…
- User
ERROR: gcloud crashed (ConnectionError): SOCKSHTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x000001FD904697C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝 ,无法连接。'))
- Assistant
This error message suggests that there is a connection issue preventing
gcloudfrom establishing a connection withaccounts.google.com. The error codeWinError 10061typically indicates that the target computer actively refused the connection.Here are a few steps you can try to troubleshoot and resolve the issue:
-
Check your internet connection: Ensure that you have a stable internet connection and can access other websites without any problems.
-
Proxy settings: If you are behind a proxy server, make sure your proxy settings are correctly configured in
gcloudor your system. Check if any firewall or security software is blocking the connection. -
Retry the command: Sometimes, this error can occur due to temporary network issues. Retry the command after a few minutes or try running it from a different network.
-
Disable VPN: If you are using a VPN or any other network routing software, try disabling it and then try the command again.
-
- User
ERROR: gcloud crashed (ConnectionError): SOCKSHTTPSConnectionPool(host=‘accounts.google.com’, port=443): Max retries exceeded with url: /o/oauth2/token (Caused by NewConnectionError(‘<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x000001FD904697C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝 ,无法连接。’))如何解决
- Assistant
这个错误信息表明,在与
accounts.google.com建立连接时遇到了问题,无法成功连接。错误代码WinError 10061通常表示目标计算机主动拒绝连接。以下是您可以尝试的几个解决方法:
-
检查网络连接:确保您具有稳定的互联网连接,能够正常访问其他网站。
-
代理设置:如果您在代理服务器后面,请确保在
gcloud或您的系统中正确配置代理设置。检查是否有任何防火墙或安全软件阻止了连接。 -
重试命令:有时,此错误可能是由于临时网络问题导致的。等待几分钟后重试命令,或尝试从其他网络运行命令。
-
禁用VPN:如果您正在使用VPN或其他网络路由软件,请尝试禁用它,然后再次尝试运行命令。
-
更新
gcloud:通过运行gcloud components update命令确保您使用的是最新版本的gcloud。过时的版本有时会导致连接问题。
如果以上方法都无法解决问题,建议您联系谷歌云支持团队寻求进一步的帮助。他们将能够根据您的设置和环境提供更具体的指导。
-