2017-02-17 108 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

好,非常感谢你:) –