【问题标题】:gcloud crashed (AttributeError): 'NoneType' object has no attribute 'revisionTemplate'gcloud 崩溃(AttributeError):“NoneType”对象没有属性“revisionTemplate”
【发布时间】:2019-11-23 16:01:50
【问题描述】:

我正在开发 Cloud Run,它似乎还处于测试阶段,无法重新部署,如下所示。如果我从 GCP 控制台中删除服务,然后将相同的 Docker 部署为新服务,它会起作用。我找不到设置修订模板的方法。

我运行此命令以使用 gcloud 部署 Cloud Run 服务。

gcloud beta run deploy v2-cms --image gcr.io/my-project/v2-cms --quiet

那么,这样说就失败了。

X Deploying...                                                                                                            
  . Creating Revision...                                                                                                  
  . Routing traffic...                                                                                                    
Deployment failed                                                                                                         
ERROR: gcloud crashed (AttributeError): 'NoneType' object has no attribute 'revisionTemplate'

If you would like to report this issue, please run the following command:
  gcloud feedback

To check gcloud for common problems, please run the following command:
  gcloud info --run-diagnostics

【问题讨论】:

  • 您使用的是什么版本的 CLI? gcloud version。当前版本是 253.0.0。我认为您有旧版本的 CLI。对于 Windows,打开提升的提示符并运行 gcloud components update。对于 Linux 使用 sudo 运行。
  • 我使用的 gcloud 版本有点旧。一旦我得到最新更新,它就可以工作。非常感谢!
  • 这似乎是一个错误。如果您可以可靠地重现此问题,请将步骤发送至 ahmetb{@]google\.com

标签: google-cloud-platform cloud gcloud google-cloud-run


【解决方案1】:

要解决此问题,请将gcloud 更新为gcloud components update 的最新版本

【讨论】:

    【解决方案2】:

    确保 GCloud https://cloud.google.com/ai-platform/training/docs/runtime-version-list 仍然支持您的本地 Tensorflow 版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-31
      • 2020-08-24
      • 1970-01-01
      • 1970-01-01
      • 2019-11-23
      • 1970-01-01
      • 2019-01-01
      • 2021-12-26
      相关资源
      最近更新 更多