google-cloud-platform - gcloud 崩溃(属性错误): 'NoneType' object has no attribute 'revisionTemplate'

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

我正在研究 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

最佳答案

要解决此问题,请更新 gcloud使用 gcloud components update 更新最新版本

关于google-cloud-platform - gcloud 崩溃(属性错误): 'NoneType' object has no attribute 'revisionTemplate' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57031471/

相关文章:

.net - 在 Windows Azure 上部署 MPI 应用程序

git - 使用 gcloud init 时出错

jenkins - 使用脚本 : Non-interactive gcloud auth login? 对 Google 容器服务进行身份验证

php - Firebase 错误 : Credentials fetcher does not implement Google\Auth\UpdateMetadataInterface

google-app-engine - 如何将在 App Engine 中运行的应用程序的 TLS 版本升级到 > 1.2

javascript - HTML/css/Javascript云幻灯片

.net - 云上的非 ASP.NET

python - 通过 `firebase` 和 `gcloud` 启动 firestore 模拟器的区别?

kubernetes - 从 GCP 快照创建的磁盘不会在 kubernetes 中调整大小

google-cloud-platform - 谷歌云,网址映射(负载均衡),减少更改生效时间