2017-02-17 50 views
2

我正試圖在Google App Engine上部署我的projet。它以前工作成功,但從昨天開始,我無法部署它。GAE部署結果出錯

我得到以下錯誤:

File upload done. 
Updating service [default]...failed.            
ERROR: (gcloud.app.deploy) Error Response: [13] The system encountered a fatal error 

當查看日誌文件,我得到如下:

2017-02-17 10:15:51,710 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:15:56,876 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:02,173 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:07,352 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:12,654 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:17,817 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:23,119 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:28,296 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:33,475 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:38,650 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s. 
2017-02-17 10:16:43,838 DEBUG root   Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] complete. Result: { 
    "metadata": { 
     "target": "apps/my-project/services/default/versions/20170217t100612", 
     "method": "google.appengine.v1.Versions.CreateVersion", 
     "user": "[email protected]", 
     "insertTime": "2017-02-17T09:06:34.800Z", 
     "ephemeralMessage": "Creating new version configuration in service \"20170217t100612\".", 
     "endTime": "2017-02-17T09:16:43.099Z", 
     "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1" 
    }, 
    "done": true, 
    "name": "apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae", 
    "error": { 
     "message": "The system encountered a fatal error", 
     "code": 13 
    } 
} 
2017-02-17 10:16:43,838 DEBUG root   (gcloud.app.deploy) Error Response: [13] The system encountered a fatal error 
Traceback (most recent call last): 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 742, in Execute 
    resources = args.calliope_command.Run(cli=self, args=args) 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 739, in Run 
    resources = command_instance.Run(args) 
    File "/opt/google-cloud-sdk/lib/surface/app/deploy.py", line 59, in Run 
    return deploy_util.RunDeploy(args) 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 413, in RunDeploy 
    all_services) 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 255, in Deploy 
    endpoints_info) 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 141, in DeployService 
    operation) 
    File "/opt/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 142, in WaitForOperation 
    encoding.MessageToPyValue(completed_operation.error))) 
OperationError: Error Response: [13] The system encountered a fatal error 
2017-02-17 10:16:43,841 ERROR root   (gcloud.app.deploy) Error Response: [13] The system encountered a fatal error 
2017-02-17 10:16:44,726 DEBUG root   Metrics reporting process started... 

有很多像「2017-02-17 10:15:51,710 DEBUG root Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s.」類似的生產線。

當我一起來看看在GAE Web控制檯上的「活動」選項卡,這裏是我所看到的:

enter image description here

對不起它在法國。它寫道:

10:16 - Successful operation : create a version of AppEngine 
10:06 - Create a version of AppEngine 

所以我懷疑部署工作,但花了很多時間來部署(10分鐘)。你也可以看到,我所有的嘗試都需要10分鐘才能成功完成。

出了什麼問題?

+0

部署的版本是否行爲正常(即部署實際上是否成功)?你能否檢查活動日誌以前的成功部署的實際持續時間沒有出現這個問題? –

回答

1

最近google-cloud-sdk issue 1443(相同的症狀,據我可以告訴):

我們從後端日誌,應用程序實際上是 成功部署,但它檢查該部分懷疑如果應用程序是 準備服務實際上是返回一個錯誤的否定,因此, 返回您收到的錯誤消息。然後卡在這個 不準確的狀態。我已將 問題的內部跟蹤編號添加到此報告中。

您可以嘗試在嘗試部署之前和之後向該應用程序/服務發出請求, ?假設是這個請求應該對健康檢查提供積極的響應。如果在令人不安的部署期間收到此 ,則可能會觸發 部署,以在檢查版本是否爲 準備好投放時返回肯定結果。

和解決方法的建議的工作:

按照您的要求:我期間和之後 部署之前發出的請求。部署成功。 'gcloud app deploy' 正常返回沒有任何錯誤報告我測試了GAE應用程序和 確實在GAE項目中運行的代碼是新部署的 版本。

+0

謝謝你,所以如果我錯了,那麼問題(從我的理解中,糾正我)是Google的部署應用程序。我只需要等待一個修復程序(或者如果它已經完成,就更新它)? –

+0

是的,這是一個問題。仍處於接受狀態。您可以「星」它,當事情發生變化時,您會收到電子郵件更新,包括何時可以使用修復程序。同時,您可以嘗試使用該解決方法,或者僅依靠活動日誌(和/或您自己的檢查)來確認部署是否成功。 –

+0

好,非常感謝你:) –