GAE部署会导致错误 [英] GAE deploying results in an error

查看:84
本文介绍了GAE部署会导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试在Google App Engine上部署我的projet。它曾经成功,但从昨天开始,我无法部署它。



我得到以下错误:

 完成文件上传。 
更新服务[默认] ...失败。
错误:(gcloud.app.deploy)错误响应:[13]系统遇到致命错误

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

  2017-02-17 10:15:51,710 DEBUG根操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。 
2017-02-17 10:15:56,876 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:02,173 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:07,352 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:12,654 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:17,817 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:23,119 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:28,296 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:33,475 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:38,650 DEBUG root操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5秒。
2017-02-17 10:16:43,838 DEBUG根操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]完成。结果:{
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 :在服务中创建新版本配置\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:系统遇到致命错误,
code:13
}
}
2017-02-17 10:16:43,838 DEBUG root(gcloud.app.deploy)错误响应:[13]系统遇到致命错误
Traceback(最近一次调用最后一次):
文件/ opt / google-cloud-sdk / lib / googl ecloudsdk / calliope / cli.py,第742行,执行
resources = args.calliope_command.Run(cli = self,args = args)
文件/ opt / google-cloud-sdk / lib /googlecloudsdk/calliope/backend.py,第739行,运行
resources = command_instance.Run(args)
文件/ opt / google-cloud-sdk / lib / surface / app / deploy。 py,第59行,在Run
中返回deploy_util.RunDeploy(args)
文件/opt/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py,第413行,在RunDeploy
all_services)
文件/opt/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py,第255行,部署
endpoints_info)
在DeployService
操作中,将文件/opt/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py,第141行)
文件/ opt / google-cloud-sdk /lib/googlecloudsdk/api_lib/app/operations_util.py,第142行,在WaitForOperation
encoding.MessageToPyValue(completed_operation.error)))
OperationError:Error Respons e:[13]系统遇到致命错误
2017-02-17 10:16:43,841错误root(gcloud.app.deploy)错误响应:[13]系统遇到致命错误
2017-02-17 10:16:44,726 DEBUG根指标报告过程已开始......

很多类似的行如 2017-02-17 10:15:51,710 DEBUG根操作[apps / my-project / operations / 4aced3ef-a018-4913-9a5b-b3f8f13ed4ae]不完整。等待5s。



当我看一下GAE Web控制台上的Activity选项卡时,我看到:





对不起,这是法文版。 / p>

  10:16  - 成功操作:创建AppEngine版本
10:06 - 创建AppEngine版本

所以我怀疑部署是否正常,但花了很多时间来部署(10分钟)。可以看到,在我的所有尝试中,总是需要10分钟才能成功完成。



有什么不对?

解决方案

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


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



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


blockquote>

解决方法建议工作:


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



I'm trying to deploy my projet on Google App Engine. It previously worked successfully but since yesterday, I can't deploy it.

I get the following error :

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

When looking at the log file, I get the following :

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...

There is a lot of similar line like "2017-02-17 10:15:51,710 DEBUG root Operation [apps/my-project/operations/4aced3ef-a018-4913-9a5b-b3f8f13ed4ae] not complete. Waiting 5s.".

When I take a look at the "Activity" tab on the GAE web console, here's what I see :

Sorry it's in French. It's written :

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

So I suspect the deployment worked, but took a lot of time to be deployed (10 minutes). Also you can see that it always take 10 minutes to be successfully done, on all my attempts.

What is wrong?

解决方案

From recent google-cloud-sdk issue 1443 (same symptoms as far as I can tell):

We suspect from the backend logs that the application is actually deploying successfully but that part that checks if the application is ready to serve is in fact returning a false negative and thus, returning the error message you received. It is then stuck in this inaccurate state. I've added the internal tracking number of that issue to this report as well.

Can you try issuing requests to that application/service before, during and after attempting to deploy? The hypothesis is that this request should provide a positive response to a health check. If this is received during the troubling deployment, it may trigger the deployment to returning a positive when checking if the version is ready to serve.

And the workaround suggestion worked:

As per your request: I issued requests before, during and after deployment. The deployment was successful. 'gcloud app deploy' returned normally without any errors reported I tested the GAE app and indeed the code running in the GAE project is the newly deployed version.

这篇关于GAE部署会导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆