2017-09-14 279 views
2

無法部署我的應用程序,因爲我今天早上開始獲取低於錯誤的錯誤。 我試圖gcloud info --run-diagnosticsgcloud components reinstall沒有太大的幫助。gcloud應用程序部署中的gcloud崩潰(SSLHandshakeError)

我嘗試使用舊Google App Engine Launcher的Windows部署,但面臨着同樣的錯誤。 早些時候它工作到昨天晚上(IST)使用gcloud。請幫忙!

我對最新gcloud SDK及其所有組件更新。我使用Win10。我也嘗試重新啓動筆記本電腦。

C:\gaurav\coding\python\myapp\myapp\dist>gcloud app deploy --project=myproject --version 1 --verbosity=info ./app.yaml 
INFO: Refreshing access_token 
ERROR: gcloud crashed (SSLHandshakeError): [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) 

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 

C:\gaurav\coding\python\myapp\myapp\dist> 

診斷輸出。

C:\gaurav\coding\python\myapp\myapp\dist> gcloud info --run-diagnostics 
Network diagnostic detects and fixes local network connection issues. 
Checking network connection...done. 
ERROR: Reachability Check failed. 
    Cannot reach https://accounts.google.com (SSLHandshakeError) 
    Cannot reach https://cloudresourcemanager.googleapis.com/v1beta1/projects (SSLHandshakeError) 
    Cannot reach https://www.googleapis.com/auth/cloud-platform (SSLHandshakeError) 
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)? n 

ERROR: Network diagnostic (0/1 checks) failed. 


C:\gaurav\coding\python\myapp\myapp\dist> 

雖然gcloud info --run-diagnostics抱怨說三個URL不可達。我可以從網頁瀏覽器打開它們。

回答

2

最近GAE和GCloud SDK版本中存在的一個問題是存在無效的SSH證書,例如,請參閱Google App Engine SSL Certificate Errorissue 38338974

您可以嘗試在上述文章中使用我建議的解決方案,並用有效的替換您的SDK的證書文件(必須爲gcloud SDK找到好的文件,我的答案是針對GAE SDK)。

威力還能夠使用gcloud config命令來設置corecustom_ca_certs_file配置屬性指向一個文件,最新的證書,如果你有一個。我沒有嘗試,YMMV。

相關問題