4
votes

I'm working on Cloud Run, which seems to be beta yet, preventing from redeploying as shown below. It works if I delete the service from GCP console, then deploy the same Docker as a new service. I could not find a way to to set revisionTemplate.

I run this command to deploy a Cloud Run service using gcloud.

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

Then, it fails saying like this.

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
2
What version of the CLI are you using? gcloud version. The current version is 253.0.0. I think you have an old version of the CLI. For Windows open an elevated prompt and run gcloud components update. For Linux run with sudo.John Hanley
The gcloud I use was a bit old version. It works once I got it updated latest. Thanks a lot!Takash Futada
This appears to be a bug. If you can reliably reproduce this, please send the steps to ahmetb{@]google\.comAhmet Alp Balkan

2 Answers

7
votes

To fix this issue, please update gcloud to ite latest version with gcloud components update

0
votes

Make sure that your local Tensorflow version is still supported by GCloud https://cloud.google.com/ai-platform/training/docs/runtime-version-list