GAE部署导致错误

时间:2017-02-17 09:28:40

标签: google-app-engine

我试图在Google App Engine上部署我的项目。它以前工作成功但从昨天开始,我无法部署它。

我收到以下错误:

test

查看日志文件时,我得到以下内容:

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": "user@gmail.com", "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... "。

当我看一下"活动" GAE Web控制台上的标签,这就是我所看到的:

enter image description here

对不起它用法语。它写了:

2017-02-17 10:15:51,710 DEBUG    root            Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s.

所以我怀疑部署工作,但花了很多时间部署(10分钟)。您还可以看到,在我所有的尝试中,成功完成总是需要10分钟。

有什么问题?

1 个答案:

答案 0 :(得分:1)

从最近的google-cloud-sdk issue 1443(据我所知的相同症状):

  

我们怀疑后端日志中的应用程序实际上是   成功部署,但该部分检查应用程序是否   准备服务实际上是一个假阴性,因此,   返回您收到的错误消息。然后它被困在这里   不准确的状态。我已经添加了内部跟踪号码   也是这个报告的问题。

     

您之前是否可以尝试向该应用程序/服务发出请求,   在尝试部署期间和之后?假设就是这个   请求应对健康检查提供积极的回应。如果这   在令人不安的部署期间收到,它可能会触发   部署在检查版本是否时返回肯定   准备好了。

解决方案建议有效:

  

根据您的要求:我在之前,期间和之后发出了请求   部署。部署成功。 ' gcloud app deploy'   正常返回没有任何错误报告我测试了GAE应用程序和   事实上,GAE项目中运行的代码是新部署的   版本