【问题标题】:Timeout error when deploying applications to Google App Engine将应用程序部署到 Google App Engine 时出现超时错误
【发布时间】:2019-07-12 13:46:29
【问题描述】:

我正在尝试通过 Bitbucket Pipelines 部署到 Google App Engine(灵活环境)。我遇到的错误如下:

更新服务 [默认](这可能需要几分钟)...⠹DEBUG:操作 [apps/[PROJECT ID]/operations/{}] 未完成。正在等待重试。

此消息将继续打印,直到最终超时并且我收到以下错误:

错误:(gcloud.app.deploy) 错误响应:[4] 等待应用基础架构恢复正常时超时。

这似乎是一个相当近期的问题。几周前,这个部署(使用相同的配置)运行良好。

下面是我尝试通过 gcloud app deploy 部署的 app.yaml 文件:

runtime: python
entrypoint: gunicorn -b :$PORT main:app --timeout 60000
env: flex 
threadsafe: true

automatic_scaling:
  min_num_instances: 1
  max_num_instances: 4
  cpu_utilization:
    target_utilization: 0.75

runtime_config:
python_version: 2

对于这个问题的任何帮助将不胜感激。提前谢谢你。

【问题讨论】:

  • 请通过SO post查看此解决方案。原始发帖人解决了他的问题。

标签: google-app-engine google-cloud-messaging google-app-engine-python bitbucket-pipelines


【解决方案1】:

此问题已在此处找到的公共问题跟踪器中得到解答:[1]。在那里,您可以找到问题的常见原因列表,例如服务帐户缺少权限,您可以在 Cloud Console [2] 上修复这些权限,或者关闭并重新打开受影响的 API/服务。

[1] 具有相同问题的公共问题跟踪器: https://issuetracker.google.com/119488754#comment3

[2] 向服务帐户授予角色:https://cloud.google.com/iam/docs/granting-roles-to-service-accounts

【讨论】:

    猜你喜欢
    • 2011-07-11
    • 1970-01-01
    • 2017-11-27
    • 1970-01-01
    • 2017-12-28
    • 2020-01-13
    • 2023-03-10
    • 2020-08-31
    • 1970-01-01
    相关资源
    最近更新 更多